Lines Matching defs: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)
388 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub)
390 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
392 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
400 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) {
405 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) {
417 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);
447 static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub)
449 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
450 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
451 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime;
487 static int usb6fire_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd)
489 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
490 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);
515 struct snd_pcm_substream *alsa_sub)
517 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub);
518 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub);