Lines Matching refs:alsa_sub
122 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_get_substream() argument
124 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_get_substream()
126 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in usb6fire_pcm_get_substream()
128 else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) in usb6fire_pcm_get_substream()
390 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_open() argument
392 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_open()
394 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_open()
402 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) { in usb6fire_pcm_open()
407 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) { in usb6fire_pcm_open()
420 sub->instance = alsa_sub; in usb6fire_pcm_open()
426 static int usb6fire_pcm_close(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_close() argument
428 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_close()
429 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_close()
453 static int usb6fire_pcm_hw_params(struct snd_pcm_substream *alsa_sub, in usb6fire_pcm_hw_params() argument
456 return snd_pcm_lib_alloc_vmalloc_buffer(alsa_sub, in usb6fire_pcm_hw_params()
460 static int usb6fire_pcm_hw_free(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_hw_free() argument
462 return snd_pcm_lib_free_vmalloc_buffer(alsa_sub); in usb6fire_pcm_hw_free()
465 static int usb6fire_pcm_prepare(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_prepare() argument
467 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_prepare()
468 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_prepare()
469 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_prepare()
510 static int usb6fire_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd) in usb6fire_pcm_trigger() argument
512 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_trigger()
513 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_trigger()
542 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_pointer() argument
544 struct pcm_substream *sub = usb6fire_pcm_get_substream(alsa_sub); in usb6fire_pcm_pointer()
545 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_pointer()