|
@@ -101,7 +101,9 @@ struct snd_pcm_sw_params32 {
|
|
u32 silence_threshold;
|
|
u32 silence_threshold;
|
|
u32 silence_size;
|
|
u32 silence_size;
|
|
u32 boundary;
|
|
u32 boundary;
|
|
- unsigned char reserved[64];
|
|
|
|
|
|
+ u32 proto;
|
|
|
|
+ u32 tstamp_type;
|
|
|
|
+ unsigned char reserved[56];
|
|
};
|
|
};
|
|
|
|
|
|
/* recalcuate the boundary within 32bit */
|
|
/* recalcuate the boundary within 32bit */
|
|
@@ -133,7 +135,9 @@ static int snd_pcm_ioctl_sw_params_compat(struct snd_pcm_substream *substream,
|
|
get_user(params.start_threshold, &src->start_threshold) ||
|
|
get_user(params.start_threshold, &src->start_threshold) ||
|
|
get_user(params.stop_threshold, &src->stop_threshold) ||
|
|
get_user(params.stop_threshold, &src->stop_threshold) ||
|
|
get_user(params.silence_threshold, &src->silence_threshold) ||
|
|
get_user(params.silence_threshold, &src->silence_threshold) ||
|
|
- get_user(params.silence_size, &src->silence_size))
|
|
|
|
|
|
+ get_user(params.silence_size, &src->silence_size) ||
|
|
|
|
+ get_user(params.tstamp_type, &src->tstamp_type) ||
|
|
|
|
+ get_user(params.proto, &src->proto))
|
|
return -EFAULT;
|
|
return -EFAULT;
|
|
/*
|
|
/*
|
|
* Check silent_size parameter. Since we have 64bit boundary,
|
|
* Check silent_size parameter. Since we have 64bit boundary,
|