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_hw_params(struct snd_pcm_substream *alsa_sub, in usb6fire_pcm_hw_params() argument
452 return snd_pcm_lib_alloc_vmalloc_buffer(alsa_sub, in usb6fire_pcm_hw_params()
456 static int usb6fire_pcm_hw_free(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_hw_free() argument
458 return snd_pcm_lib_free_vmalloc_buffer(alsa_sub); in usb6fire_pcm_hw_free()
461 static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_prepare() argument
463 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_prepare()
464 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_prepare()
465 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_prepare()
506 static int usb6fire_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd) in usb6fire_pcm_trigger() argument
508 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_trigger()
509 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_trigger()
538 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_pointer() argument
540 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_pointer()
541 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_pointer()