Lines Matching full:graph
75 struct q6apm_graph *graph; member
138 q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in event_handler()
147 q6apm_read(prtd->graph); in event_handler()
202 q6apm_write_async(prtd->graph, in event_handler_compr()
208 audioreach_shared_memory_send_eos(prtd->graph); in event_handler_compr()
232 if (!prtd || !prtd->graph) { in q6apm_dai_prepare()
246 q6apm_graph_stop(prtd->graph); in q6apm_dai_prepare()
247 q6apm_unmap_memory_regions(prtd->graph, substream->stream); in q6apm_dai_prepare()
253 ret = q6apm_graph_media_format_shmem(prtd->graph, &cfg); in q6apm_dai_prepare()
259 ret = q6apm_graph_media_format_pcm(prtd->graph, &cfg); in q6apm_dai_prepare()
263 ret = q6apm_map_memory_regions(prtd->graph, substream->stream, prtd->phys, in q6apm_dai_prepare()
271 ret = q6apm_graph_prepare(prtd->graph); in q6apm_dai_prepare()
273 dev_err(dev, "Failed to prepare Graph %d\n", ret); in q6apm_dai_prepare()
277 ret = q6apm_graph_start(prtd->graph); in q6apm_dai_prepare()
279 dev_err(dev, "Failed to Start Graph %d\n", ret); in q6apm_dai_prepare()
285 /* Queue the buffers for Capture ONLY after graph is started */ in q6apm_dai_prepare()
287 q6apm_read(prtd->graph); in q6apm_dai_prepare()
291 /* Now that graph as been prepared and started update the internal state accordingly */ in q6apm_dai_prepare()
310 ret = q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in q6apm_dai_trigger()
352 prtd->graph = q6apm_graph_open(dev, event_handler, prtd, graph_id); in q6apm_dai_open()
353 if (IS_ERR(prtd->graph)) { in q6apm_dai_open()
355 ret = PTR_ERR(prtd->graph); in q6apm_dai_open()
412 if (prtd->state) { /* only stop graph that is started */ in q6apm_dai_close()
413 q6apm_graph_stop(prtd->graph); in q6apm_dai_close()
414 q6apm_unmap_memory_regions(prtd->graph, substream->stream); in q6apm_dai_close()
417 q6apm_graph_close(prtd->graph); in q6apm_dai_close()
418 prtd->graph = NULL; in q6apm_dai_close()
496 prtd->graph = q6apm_graph_open(dev, event_handler_compr, prtd, graph_id); in q6apm_dai_compr_open()
497 if (IS_ERR(prtd->graph)) { in q6apm_dai_compr_open()
498 ret = PTR_ERR(prtd->graph); in q6apm_dai_compr_open()
518 q6apm_enable_compress_module(dev, prtd->graph, true); in q6apm_dai_compr_open()
528 q6apm_graph_stop(prtd->graph); in q6apm_dai_compr_free()
529 q6apm_unmap_memory_regions(prtd->graph, SNDRV_PCM_STREAM_PLAYBACK); in q6apm_dai_compr_free()
530 q6apm_graph_close(prtd->graph); in q6apm_dai_compr_free()
532 prtd->graph = NULL; in q6apm_dai_compr_free()
598 ret = q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, NO_TIMESTAMP); in q6apm_dai_compr_trigger()
660 ret = q6apm_set_real_module_id(component->dev, prtd->graph, codec->id); in q6apm_dai_compr_set_params()
673 ret = q6apm_graph_media_format_shmem(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
677 ret = q6apm_graph_media_format_pcm(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
681 ret = q6apm_map_memory_regions(prtd->graph, SNDRV_PCM_STREAM_PLAYBACK, in q6apm_dai_compr_set_params()
687 ret = q6apm_graph_prepare(prtd->graph); in q6apm_dai_compr_set_params()
691 ret = q6apm_graph_start(prtd->graph); in q6apm_dai_compr_set_params()
703 ret = audioreach_compr_set_param(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
722 q6apm_remove_trailing_silence(component->dev, prtd->graph, in q6apm_dai_compr_set_metadata()
726 q6apm_remove_initial_silence(component->dev, prtd->graph, in q6apm_dai_compr_set_metadata()
807 q6apm_write_async(prtd->graph, bytes_to_write, 0, 0, wflags); in q6apm_compr_copy()