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