Lines Matching refs:alsa_sub
176 *alsa_sub) in hiface_pcm_get_substream()
178 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream()
181 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()
355 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub) in hiface_pcm_open() argument
357 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_open()
359 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open()
368 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_open()
383 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0, in hiface_pcm_open()
392 sub->instance = alsa_sub; in hiface_pcm_open()
398 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub) in hiface_pcm_close() argument
400 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_close()
401 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_close()
422 static int hiface_pcm_hw_params(struct snd_pcm_substream *alsa_sub, in hiface_pcm_hw_params() argument
425 return snd_pcm_lib_alloc_vmalloc_buffer(alsa_sub, in hiface_pcm_hw_params()
429 static int hiface_pcm_hw_free(struct snd_pcm_substream *alsa_sub) in hiface_pcm_hw_free() argument
431 return snd_pcm_lib_free_vmalloc_buffer(alsa_sub); in hiface_pcm_hw_free()
434 static int hiface_pcm_prepare(struct snd_pcm_substream *alsa_sub) in hiface_pcm_prepare() argument
436 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_prepare()
437 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_prepare()
438 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_prepare()
470 static int hiface_pcm_trigger(struct snd_pcm_substream *alsa_sub, int cmd) in hiface_pcm_trigger() argument
472 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_trigger()
473 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_trigger()
500 static snd_pcm_uframes_t hiface_pcm_pointer(struct snd_pcm_substream *alsa_sub) in hiface_pcm_pointer() argument
502 struct pcm_substream *sub = hiface_pcm_get_substream(alsa_sub); in hiface_pcm_pointer()
503 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_pointer()
513 return bytes_to_frames(alsa_sub->runtime, dma_offset); in hiface_pcm_pointer()