Lines Matching refs:audio_client

67 	struct audio_client *audio_client;  member
185 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
195 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
204 q6asm_read(prtd->audio_client, prtd->stream_id); in event_handler()
226 if (!prtd || !prtd->audio_client) { in q6asm_dai_prepare()
237 q6asm_cmd(prtd->audio_client, prtd->stream_id, CMD_CLOSE); in q6asm_dai_prepare()
239 prtd->audio_client); in q6asm_dai_prepare()
244 ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client, in q6asm_dai_prepare()
256 ret = q6asm_open_write(prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
260 ret = q6asm_open_read(prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
270 prtd->session_id = q6asm_get_session_id(prtd->audio_client); in q6asm_dai_prepare()
280 prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
284 ret = q6asm_enc_cfg_blk_pcm_format_support(prtd->audio_client, in q6asm_dai_prepare()
292 q6asm_read(prtd->audio_client, prtd->stream_id); in q6asm_dai_prepare()
303 q6asm_cmd(prtd->audio_client, prtd->stream_id, CMD_CLOSE); in q6asm_dai_prepare()
305 q6asm_unmap_memory_regions(substream->stream, prtd->audio_client); in q6asm_dai_prepare()
306 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_prepare()
307 prtd->audio_client = NULL; in q6asm_dai_prepare()
323 ret = q6asm_run_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_trigger()
328 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_trigger()
333 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_trigger()
369 prtd->audio_client = q6asm_audio_client_alloc(dev, in q6asm_dai_open()
372 if (IS_ERR(prtd->audio_client)) { in q6asm_dai_open()
374 ret = PTR_ERR(prtd->audio_client); in q6asm_dai_open()
439 if (prtd->audio_client) { in q6asm_dai_close()
441 q6asm_cmd(prtd->audio_client, prtd->stream_id, in q6asm_dai_close()
445 prtd->audio_client); in q6asm_dai_close()
446 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_close()
447 prtd->audio_client = NULL; in q6asm_dai_close()
505 q6asm_stream_remove_initial_silence(prtd->audio_client, in compress_event_handler()
509 q6asm_write_async(prtd->audio_client, prtd->stream_id, in compress_event_handler()
525 q6asm_cmd_nowait(prtd->audio_client, in compress_event_handler()
568 q6asm_stream_remove_trailing_silence(prtd->audio_client, in compress_event_handler()
573 q6asm_write_async(prtd->audio_client, prtd->stream_id, in compress_event_handler()
580 q6asm_cmd_nowait(prtd->audio_client, in compress_event_handler()
617 prtd->audio_client = q6asm_audio_client_alloc(dev, in q6asm_dai_compr_open()
620 if (IS_ERR(prtd->audio_client)) { in q6asm_dai_compr_open()
622 ret = PTR_ERR(prtd->audio_client); in q6asm_dai_compr_open()
647 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_open()
661 if (prtd->audio_client) { in q6asm_dai_compr_free()
663 q6asm_cmd(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_free()
666 q6asm_cmd(prtd->audio_client, in q6asm_dai_compr_free()
674 prtd->audio_client); in q6asm_dai_compr_free()
675 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_free()
676 prtd->audio_client = NULL; in q6asm_dai_compr_free()
723 ret = q6asm_stream_media_format_block_flac(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
784 prtd->audio_client, stream_id, in __q6asm_dai_compr_set_codec_params()
788 prtd->audio_client, stream_id, in __q6asm_dai_compr_set_codec_params()
821 ret = q6asm_stream_media_format_block_alac(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
846 ret = q6asm_stream_media_format_block_ape(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
878 if (!prtd || !prtd->audio_client) { in q6asm_dai_compr_set_params()
889 ret = q6asm_open_write(prtd->audio_client, prtd->stream_id, params->codec.id, in q6asm_dai_compr_set_params()
895 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_set_params()
896 prtd->audio_client = NULL; in q6asm_dai_compr_set_params()
901 prtd->session_id = q6asm_get_session_id(prtd->audio_client); in q6asm_dai_compr_set_params()
917 ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->phys, in q6asm_dai_compr_set_params()
946 ret = q6asm_open_write(prtd->audio_client, in q6asm_dai_compr_set_metadata()
964 ret = q6asm_stream_remove_initial_silence(prtd->audio_client, in q6asm_dai_compr_set_metadata()
991 ret = q6asm_run_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
996 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
1001 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
1098 q6asm_write_async(prtd->audio_client, prtd->stream_id, in q6asm_compr_copy()