Lines Matching refs:subs
512 static int vx_pcm_playback_open(struct snd_pcm_substream *subs) in vx_pcm_playback_open() argument
514 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_open()
515 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_open()
523 audio = subs->pcm->device * 2; in vx_pcm_playback_open()
538 pipe->substream = subs; in vx_pcm_playback_open()
555 static int vx_pcm_playback_close(struct snd_pcm_substream *subs) in vx_pcm_playback_close() argument
557 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_playback_close()
560 if (! subs->runtime->private_data) in vx_pcm_playback_close()
563 pipe = subs->runtime->private_data; in vx_pcm_playback_close()
676 struct snd_pcm_substream *subs, in vx_pcm_playback_transfer() argument
680 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_transfer()
697 struct snd_pcm_substream *subs, in vx_pcm_playback_update() argument
701 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_update()
709 snd_pcm_period_elapsed(subs); in vx_pcm_playback_update()
717 static int vx_pcm_trigger(struct snd_pcm_substream *subs, int cmd) in vx_pcm_trigger() argument
719 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_trigger()
720 struct vx_pipe *pipe = subs->runtime->private_data; in vx_pcm_trigger()
730 vx_pcm_playback_transfer(chip, subs, pipe, 2); in vx_pcm_trigger()
772 static snd_pcm_uframes_t vx_pcm_playback_pointer(struct snd_pcm_substream *subs) in vx_pcm_playback_pointer() argument
774 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_playback_pointer()
782 static int vx_pcm_prepare(struct snd_pcm_substream *subs) in vx_pcm_prepare() argument
784 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_prepare()
785 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_prepare()
886 static int vx_pcm_capture_open(struct snd_pcm_substream *subs) in vx_pcm_capture_open() argument
888 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_open()
889 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_capture_open()
898 audio = subs->pcm->device * 2; in vx_pcm_capture_open()
904 pipe->substream = subs; in vx_pcm_capture_open()
945 static int vx_pcm_capture_close(struct snd_pcm_substream *subs) in vx_pcm_capture_close() argument
947 struct vx_core *chip = snd_pcm_substream_chip(subs); in vx_pcm_capture_close()
951 if (! subs->runtime->private_data) in vx_pcm_capture_close()
953 pipe = subs->runtime->private_data; in vx_pcm_capture_close()
981 static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substream *subs, in vx_pcm_capture_update() argument
985 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_update()
1044 snd_pcm_period_elapsed(subs); in vx_pcm_capture_update()
1057 static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs) in vx_pcm_capture_pointer() argument
1059 struct snd_pcm_runtime *runtime = subs->runtime; in vx_pcm_capture_pointer()