Lines Matching refs:substream

12 static int snd_pcm_ioctl_delay_compat(struct snd_pcm_substream *substream,  in snd_pcm_ioctl_delay_compat()  argument
18 err = snd_pcm_delay(substream, &delay); in snd_pcm_ioctl_delay_compat()
26 static int snd_pcm_ioctl_rewind_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_rewind_compat() argument
34 err = snd_pcm_rewind(substream, frames); in snd_pcm_ioctl_rewind_compat()
40 static int snd_pcm_ioctl_forward_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_forward_compat() argument
48 err = snd_pcm_forward(substream, frames); in snd_pcm_ioctl_forward_compat()
86 static int snd_pcm_ioctl_sw_params_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_sw_params_compat() argument
110 boundary = recalculate_boundary(substream->runtime); in snd_pcm_ioctl_sw_params_compat()
112 params.silence_size = substream->runtime->boundary; in snd_pcm_ioctl_sw_params_compat()
113 err = snd_pcm_sw_params(substream, &params); in snd_pcm_ioctl_sw_params_compat()
128 static int snd_pcm_ioctl_channel_info_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_channel_info_compat() argument
139 err = snd_pcm_channel_info(substream, &info); in snd_pcm_ioctl_channel_info_compat()
152 static int snd_pcm_channel_info_user(struct snd_pcm_substream *substream,
181 static int snd_pcm_status_user_compat64(struct snd_pcm_substream *substream, in snd_pcm_status_user_compat64() argument
199 err = snd_pcm_status64(substream, &status); in snd_pcm_status_user_compat64()
234 static int snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_hw_params_compat() argument
242 runtime = substream->runtime; in snd_pcm_ioctl_hw_params_compat()
257 err = snd_pcm_hw_refine(substream, data); in snd_pcm_ioctl_hw_params_compat()
260 err = fixup_unreferenced_params(substream, data); in snd_pcm_ioctl_hw_params_compat()
262 err = snd_pcm_hw_params(substream, data); in snd_pcm_ioctl_hw_params_compat()
291 static int snd_pcm_ioctl_xferi_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_xferi_compat() argument
298 if (! substream->runtime) in snd_pcm_ioctl_xferi_compat()
300 if (substream->stream != dir) in snd_pcm_ioctl_xferi_compat()
302 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xferi_compat()
310 err = snd_pcm_lib_write(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
312 err = snd_pcm_lib_read(substream, compat_ptr(buf), frames); in snd_pcm_ioctl_xferi_compat()
335 static int snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream *substream, in snd_pcm_ioctl_xfern_compat() argument
344 if (! substream->runtime) in snd_pcm_ioctl_xfern_compat()
346 if (substream->stream != dir) in snd_pcm_ioctl_xfern_compat()
348 if (substream->runtime->state == SNDRV_PCM_STATE_OPEN) in snd_pcm_ioctl_xfern_compat()
351 ch = substream->runtime->channels; in snd_pcm_ioctl_xfern_compat()
371 err = snd_pcm_lib_writev(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
373 err = snd_pcm_lib_readv(substream, bufs, frames); in snd_pcm_ioctl_xfern_compat()
415 static int snd_pcm_ioctl_sync_ptr_x32(struct snd_pcm_substream *substream, in snd_pcm_ioctl_sync_ptr_x32() argument
418 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_ioctl_sync_ptr_x32()
435 err = snd_pcm_hwsync(substream); in snd_pcm_ioctl_sync_ptr_x32()
444 snd_pcm_stream_lock_irq(substream); in snd_pcm_ioctl_sync_ptr_x32()
459 snd_pcm_stream_unlock_irq(substream); in snd_pcm_ioctl_sync_ptr_x32()
461 snd_pcm_dma_buffer_sync(substream, SNDRV_DMA_SYNC_DEVICE); in snd_pcm_ioctl_sync_ptr_x32()
499 static int snd_pcm_ioctl_sync_ptr_buggy(struct snd_pcm_substream *substream, in snd_pcm_ioctl_sync_ptr_buggy() argument
502 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_ioctl_sync_ptr_buggy()
518 err = snd_pcm_hwsync(substream); in snd_pcm_ioctl_sync_ptr_buggy()
522 snd_pcm_stream_lock_irq(substream); in snd_pcm_ioctl_sync_ptr_buggy()
524 err = pcm_lib_apply_appl_ptr(substream, sync_cp->appl_ptr); in snd_pcm_ioctl_sync_ptr_buggy()
526 snd_pcm_stream_unlock_irq(substream); in snd_pcm_ioctl_sync_ptr_buggy()
541 snd_pcm_stream_unlock_irq(substream); in snd_pcm_ioctl_sync_ptr_buggy()
543 snd_pcm_dma_buffer_sync(substream, SNDRV_DMA_SYNC_DEVICE); in snd_pcm_ioctl_sync_ptr_buggy()
576 struct snd_pcm_substream *substream; in snd_pcm_ioctl_compat() local
582 substream = pcm_file->substream; in snd_pcm_ioctl_compat()
583 if (! substream) in snd_pcm_ioctl_compat()
612 return snd_pcm_common_ioctl(file, substream, cmd, argp); in snd_pcm_ioctl_compat()
616 return snd_pcm_ioctl_sync_ptr_x32(substream, argp); in snd_pcm_ioctl_compat()
618 return snd_pcm_ioctl_sync_ptr_buggy(substream, argp); in snd_pcm_ioctl_compat()
620 return snd_pcm_ioctl_hw_params_compat(substream, 1, argp); in snd_pcm_ioctl_compat()
622 return snd_pcm_ioctl_hw_params_compat(substream, 0, argp); in snd_pcm_ioctl_compat()
624 return snd_pcm_ioctl_sw_params_compat(substream, argp); in snd_pcm_ioctl_compat()
626 return snd_pcm_status_user32(substream, argp, false); in snd_pcm_ioctl_compat()
628 return snd_pcm_status_user32(substream, argp, true); in snd_pcm_ioctl_compat()
630 return snd_pcm_ioctl_channel_info_compat(substream, argp); in snd_pcm_ioctl_compat()
632 return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp); in snd_pcm_ioctl_compat()
634 return snd_pcm_ioctl_xferi_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp); in snd_pcm_ioctl_compat()
636 return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_PLAYBACK, argp); in snd_pcm_ioctl_compat()
638 return snd_pcm_ioctl_xfern_compat(substream, SNDRV_PCM_STREAM_CAPTURE, argp); in snd_pcm_ioctl_compat()
640 return snd_pcm_ioctl_delay_compat(substream, argp); in snd_pcm_ioctl_compat()
642 return snd_pcm_ioctl_rewind_compat(substream, argp); in snd_pcm_ioctl_compat()
644 return snd_pcm_ioctl_forward_compat(substream, argp); in snd_pcm_ioctl_compat()
646 return snd_pcm_status_user_compat64(substream, argp, false); in snd_pcm_ioctl_compat()
648 return snd_pcm_status_user_compat64(substream, argp, true); in snd_pcm_ioctl_compat()
651 return snd_pcm_ioctl_channel_info_x32(substream, argp); in snd_pcm_ioctl_compat()