Lines Matching refs:audio_client
66 struct audio_client *audio_client; member
190 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
200 q6asm_write_async(prtd->audio_client, prtd->stream_id, in event_handler()
209 q6asm_read(prtd->audio_client, prtd->stream_id); in event_handler()
231 if (!prtd || !prtd->audio_client) { in q6asm_dai_prepare()
242 q6asm_cmd(prtd->audio_client, prtd->stream_id, CMD_CLOSE); in q6asm_dai_prepare()
244 prtd->audio_client); in q6asm_dai_prepare()
249 ret = q6asm_map_memory_regions(substream->stream, prtd->audio_client, in q6asm_dai_prepare()
261 ret = q6asm_open_write(prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
265 ret = q6asm_open_read(prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
275 prtd->session_id = q6asm_get_session_id(prtd->audio_client); in q6asm_dai_prepare()
285 prtd->audio_client, prtd->stream_id, in q6asm_dai_prepare()
289 ret = q6asm_enc_cfg_blk_pcm_format_support(prtd->audio_client, in q6asm_dai_prepare()
297 q6asm_read(prtd->audio_client, prtd->stream_id); in q6asm_dai_prepare()
308 q6asm_cmd(prtd->audio_client, prtd->stream_id, CMD_CLOSE); in q6asm_dai_prepare()
310 q6asm_unmap_memory_regions(substream->stream, prtd->audio_client); in q6asm_dai_prepare()
311 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_prepare()
312 prtd->audio_client = NULL; in q6asm_dai_prepare()
328 ret = q6asm_run_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()
338 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_trigger()
374 prtd->audio_client = q6asm_audio_client_alloc(dev, in q6asm_dai_open()
377 if (IS_ERR(prtd->audio_client)) { in q6asm_dai_open()
379 ret = PTR_ERR(prtd->audio_client); in q6asm_dai_open()
449 if (prtd->audio_client) { in q6asm_dai_close()
451 q6asm_cmd(prtd->audio_client, prtd->stream_id, in q6asm_dai_close()
455 prtd->audio_client); in q6asm_dai_close()
456 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_close()
457 prtd->audio_client = NULL; in q6asm_dai_close()
515 q6asm_stream_remove_initial_silence(prtd->audio_client, in compress_event_handler()
519 q6asm_write_async(prtd->audio_client, prtd->stream_id, in compress_event_handler()
535 q6asm_cmd_nowait(prtd->audio_client, in compress_event_handler()
578 q6asm_stream_remove_trailing_silence(prtd->audio_client, in compress_event_handler()
583 q6asm_write_async(prtd->audio_client, prtd->stream_id, in compress_event_handler()
590 q6asm_cmd_nowait(prtd->audio_client, in compress_event_handler()
627 prtd->audio_client = q6asm_audio_client_alloc(dev, in q6asm_dai_compr_open()
630 if (IS_ERR(prtd->audio_client)) { in q6asm_dai_compr_open()
632 ret = PTR_ERR(prtd->audio_client); in q6asm_dai_compr_open()
657 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_open()
671 if (prtd->audio_client) { in q6asm_dai_compr_free()
673 q6asm_cmd(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_free()
676 q6asm_cmd(prtd->audio_client, in q6asm_dai_compr_free()
684 prtd->audio_client); in q6asm_dai_compr_free()
685 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_free()
686 prtd->audio_client = NULL; in q6asm_dai_compr_free()
733 ret = q6asm_stream_media_format_block_flac(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
794 prtd->audio_client, stream_id, in __q6asm_dai_compr_set_codec_params()
798 prtd->audio_client, stream_id, in __q6asm_dai_compr_set_codec_params()
831 ret = q6asm_stream_media_format_block_alac(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
856 ret = q6asm_stream_media_format_block_ape(prtd->audio_client, in __q6asm_dai_compr_set_codec_params()
888 if (!prtd || !prtd->audio_client) { in q6asm_dai_compr_set_params()
899 ret = q6asm_open_write(prtd->audio_client, prtd->stream_id, params->codec.id, in q6asm_dai_compr_set_params()
905 q6asm_audio_client_free(prtd->audio_client); in q6asm_dai_compr_set_params()
906 prtd->audio_client = NULL; in q6asm_dai_compr_set_params()
911 prtd->session_id = q6asm_get_session_id(prtd->audio_client); in q6asm_dai_compr_set_params()
927 ret = q6asm_map_memory_regions(dir, prtd->audio_client, prtd->phys, in q6asm_dai_compr_set_params()
956 ret = q6asm_open_write(prtd->audio_client, in q6asm_dai_compr_set_metadata()
974 ret = q6asm_stream_remove_initial_silence(prtd->audio_client, in q6asm_dai_compr_set_metadata()
1001 ret = q6asm_run_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
1006 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
1011 ret = q6asm_cmd_nowait(prtd->audio_client, prtd->stream_id, in q6asm_dai_compr_trigger()
1108 q6asm_write_async(prtd->audio_client, prtd->stream_id, in q6asm_compr_copy()