Lines Matching refs:alsa_sub
118 struct snd_pcm_substream *alsa_sub)
120 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
122 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK)
124 else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE)
386 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub)
388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
390 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
398 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
403 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) {
416 sub->instance = alsa_sub;
422 static int usb6fire_pcm_close(struct snd_pcm_substream *alsa_sub)
424 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
425 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
449 static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub)
451 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
452 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
453 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
494 static int usb6fire_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd)
496 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
497 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
526 struct snd_pcm_substream *alsa_sub)
528 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
529 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);