Lines Matching refs:subs

526 static int vx_pcm_playback_open(struct snd_pcm_substream *subs)  in vx_pcm_playback_open()  argument
528 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_open()
529 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_open()
537 audio = subs->pcm->device * 2; in vx_pcm_playback_open()
553 pipe->substream = subs; in vx_pcm_playback_open()
570 static int vx_pcm_playback_close(struct snd_pcm_substream *subs) in vx_pcm_playback_close() argument
572 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_close()
575 if (! subs->runtime->private_data) in vx_pcm_playback_close()
578 pipe = subs->runtime->private_data; in vx_pcm_playback_close()
691 struct snd_pcm_substream *subs, in vx_pcm_playback_transfer() argument
695 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_transfer()
711 struct snd_pcm_substream *subs, in vx_pcm_playback_update() argument
715 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_update()
722 snd_pcm_period_elapsed(subs); in vx_pcm_playback_update()
730 static int vx_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in vx_pcm_trigger() argument
732 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_trigger()
733 struct vx_pipe *pipe = subs->runtime->private_data; in vx_pcm_trigger()
743 vx_pcm_playback_transfer(chip, subs, pipe, 2); in vx_pcm_trigger()
783 static snd_pcm_uframes_t vx_pcm_playback_pointer(struct snd_pcm_substream *subs) in vx_pcm_playback_pointer() argument
785 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_pointer()
793 static int vx_pcm_hw_params(struct snd_pcm_substream *subs, in vx_pcm_hw_params() argument
797 (subs, params_buffer_bytes(hw_params)); in vx_pcm_hw_params()
803 static int vx_pcm_hw_free(struct snd_pcm_substream *subs) in vx_pcm_hw_free() argument
805 return snd_pcm_lib_free_vmalloc_buffer(subs); in vx_pcm_hw_free()
811 static int vx_pcm_prepare(struct snd_pcm_substream *subs) in vx_pcm_prepare() argument
813 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_prepare()
814 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_prepare()
917 static int vx_pcm_capture_open(struct snd_pcm_substream *subs) in vx_pcm_capture_open() argument
919 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_open()
920 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_capture_open()
929 audio = subs->pcm->device * 2; in vx_pcm_capture_open()
935 pipe->substream = subs; in vx_pcm_capture_open()
976 static int vx_pcm_capture_close(struct snd_pcm_substream *subs) in vx_pcm_capture_close() argument
978 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_capture_close()
982 if (! subs->runtime->private_data) in vx_pcm_capture_close()
984 pipe = subs->runtime->private_data; in vx_pcm_capture_close()
1012 static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substream *subs, in vx_pcm_capture_update() argument
1016 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_update()
1073 snd_pcm_period_elapsed(subs); in vx_pcm_capture_update()
1086 static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs) in vx_pcm_capture_pointer() argument
1088 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_pointer()