Lines Matching refs:alsa_sub

172 						      *alsa_sub)  in hiface_pcm_get_substream()
174 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream()
177 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()
351 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub) in hiface_pcm_open() argument
353 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_open()
355 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open()
364 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_open()
379 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0, in hiface_pcm_open()
388 sub->instance = alsa_sub; in hiface_pcm_open()
394 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub) in hiface_pcm_close() argument
396 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_close()
397 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_close()
418 static int hiface_pcm_hw_params(struct snd_pcm_substream *alsa_sub, in hiface_pcm_hw_params() argument
421 return snd_pcm_lib_alloc_vmalloc_buffer(alsa_sub, in hiface_pcm_hw_params()
425 static int hiface_pcm_hw_free(struct snd_pcm_substream *alsa_sub) in hiface_pcm_hw_free() argument
427 return snd_pcm_lib_free_vmalloc_buffer(alsa_sub); in hiface_pcm_hw_free()
430 static int hiface_pcm_prepare(struct snd_pcm_substream *alsa_sub) in hiface_pcm_prepare() argument
432 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_prepare()
433 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_prepare()
434 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_prepare()
466 static int hiface_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd) in hiface_pcm_trigger() argument
468 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_trigger()
469 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_trigger()
496 static snd_pcm_uframes_t hiface_pcm_pointer(struct snd_pcm_substream *alsa_sub) in hiface_pcm_pointer() argument
498 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_pointer()
499 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_pointer()
509 return bytes_to_frames(alsa_sub->runtime, dma_offset); in hiface_pcm_pointer()