Lines Matching full:graph

77 	struct q6apm_graph *graph;  member
142 q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in event_handler()
151 q6apm_read(prtd->graph); in event_handler()
206 q6apm_write_async(prtd->graph, in event_handler_compr()
212 audioreach_shared_memory_send_eos(prtd->graph); in event_handler_compr()
236 if (!prtd || !prtd->graph) { in q6apm_dai_prepare()
249 q6apm_graph_stop(prtd->graph); in q6apm_dai_prepare()
250 q6apm_unmap_memory_regions(prtd->graph, substream->stream); in q6apm_dai_prepare()
256 ret = q6apm_graph_media_format_shmem(prtd->graph, &cfg); in q6apm_dai_prepare()
262 ret = q6apm_graph_media_format_pcm(prtd->graph, &cfg); in q6apm_dai_prepare()
266 ret = q6apm_map_memory_regions(prtd->graph, substream->stream, prtd->phys, in q6apm_dai_prepare()
274 ret = q6apm_graph_prepare(prtd->graph); in q6apm_dai_prepare()
276 dev_err(dev, "Failed to prepare Graph %d\n", ret); in q6apm_dai_prepare()
280 ret = q6apm_graph_start(prtd->graph); in q6apm_dai_prepare()
282 dev_err(dev, "Failed to Start Graph %d\n", ret); in q6apm_dai_prepare()
288 /* Queue the buffers for Capture ONLY after graph is started */ in q6apm_dai_prepare()
290 q6apm_read(prtd->graph); in q6apm_dai_prepare()
294 /* Now that graph as been prepared and started update the internal state accordingly */ in q6apm_dai_prepare()
313 ret = q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, 0); in q6apm_dai_trigger()
355 prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler, prtd, graph_id); in q6apm_dai_open()
356 if (IS_ERR(prtd->graph)) { in q6apm_dai_open()
358 ret = PTR_ERR(prtd->graph); in q6apm_dai_open()
415 if (prtd->state) { /* only stop graph that is started */ in q6apm_dai_close()
416 q6apm_graph_stop(prtd->graph); in q6apm_dai_close()
417 q6apm_unmap_memory_regions(prtd->graph, substream->stream); in q6apm_dai_close()
420 q6apm_graph_close(prtd->graph); in q6apm_dai_close()
421 prtd->graph = NULL; in q6apm_dai_close()
499 prtd->graph = q6apm_graph_open(dev, (q6apm_cb)event_handler_compr, prtd, graph_id); in q6apm_dai_compr_open()
500 if (IS_ERR(prtd->graph)) { in q6apm_dai_compr_open()
501 ret = PTR_ERR(prtd->graph); in q6apm_dai_compr_open()
521 q6apm_enable_compress_module(dev, prtd->graph, true); in q6apm_dai_compr_open()
531 q6apm_graph_stop(prtd->graph); in q6apm_dai_compr_free()
532 q6apm_unmap_memory_regions(prtd->graph, SNDRV_PCM_STREAM_PLAYBACK); in q6apm_dai_compr_free()
533 q6apm_graph_close(prtd->graph); in q6apm_dai_compr_free()
535 prtd->graph = NULL; in q6apm_dai_compr_free()
601 ret = q6apm_write_async(prtd->graph, prtd->pcm_count, 0, 0, NO_TIMESTAMP); in q6apm_dai_compr_trigger()
663 ret = q6apm_set_real_module_id(component->dev, prtd->graph, codec->id); in q6apm_dai_compr_set_params()
674 ret = q6apm_graph_media_format_shmem(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
678 ret = q6apm_graph_media_format_pcm(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
682 ret = q6apm_map_memory_regions(prtd->graph, SNDRV_PCM_STREAM_PLAYBACK, in q6apm_dai_compr_set_params()
688 ret = q6apm_graph_prepare(prtd->graph); in q6apm_dai_compr_set_params()
692 ret = q6apm_graph_start(prtd->graph); in q6apm_dai_compr_set_params()
704 ret = audioreach_compr_set_param(prtd->graph, &cfg); in q6apm_dai_compr_set_params()
724 q6apm_remove_trailing_silence(component->dev, prtd->graph, in q6apm_dai_compr_set_metadata()
729 q6apm_remove_initial_silence(component->dev, prtd->graph, in q6apm_dai_compr_set_metadata()
810 q6apm_write_async(prtd->graph, bytes_to_write, 0, 0, wflags); in q6apm_compr_copy()