Lines Matching refs:subs
510 static int vx_pcm_playback_open(struct snd_pcm_substream *subs)
512 struct snd_pcm_runtime *runtime = subs->runtime;
513 struct vx_core *chip = snd_pcm_substream_chip(subs);
521 audio = subs->pcm->device * 2;
536 pipe->substream = subs;
553 static int vx_pcm_playback_close(struct snd_pcm_substream *subs)
555 struct vx_core *chip = snd_pcm_substream_chip(subs);
558 if (! subs->runtime->private_data)
561 pipe = subs->runtime->private_data;
598 * @subs: substream
674 struct snd_pcm_substream *subs,
678 struct snd_pcm_runtime *runtime = subs->runtime;
694 struct snd_pcm_substream *subs,
698 struct snd_pcm_runtime *runtime = subs->runtime;
705 snd_pcm_period_elapsed(subs);
713 static int vx_pcm_trigger(struct snd_pcm_substream *subs, int cmd)
715 struct vx_core *chip = snd_pcm_substream_chip(subs);
716 struct vx_pipe *pipe = subs->runtime->private_data;
726 vx_pcm_playback_transfer(chip, subs, pipe, 2);
766 static snd_pcm_uframes_t vx_pcm_playback_pointer(struct snd_pcm_substream *subs)
768 struct snd_pcm_runtime *runtime = subs->runtime;
776 static int vx_pcm_prepare(struct snd_pcm_substream *subs)
778 struct vx_core *chip = snd_pcm_substream_chip(subs);
779 struct snd_pcm_runtime *runtime = subs->runtime;
877 static int vx_pcm_capture_open(struct snd_pcm_substream *subs)
879 struct snd_pcm_runtime *runtime = subs->runtime;
880 struct vx_core *chip = snd_pcm_substream_chip(subs);
889 audio = subs->pcm->device * 2;
895 pipe->substream = subs;
936 static int vx_pcm_capture_close(struct snd_pcm_substream *subs)
938 struct vx_core *chip = snd_pcm_substream_chip(subs);
942 if (! subs->runtime->private_data)
944 pipe = subs->runtime->private_data;
972 static void vx_pcm_capture_update(struct vx_core *chip, struct snd_pcm_substream *subs,
976 struct snd_pcm_runtime *runtime = subs->runtime;
1035 snd_pcm_period_elapsed(subs);
1048 static snd_pcm_uframes_t vx_pcm_capture_pointer(struct snd_pcm_substream *subs)
1050 struct snd_pcm_runtime *runtime = subs->runtime;