Lines Matching refs:subs

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