Lines Matching full:graph
45 /* Container graph Position */
299 /* Graph Position */ in apm_populate_container_config()
597 int audioreach_graph_send_cmd_sync(struct q6apm_graph *graph, struct gpr_pkt *pkt, in audioreach_graph_send_cmd_sync() argument
601 return audioreach_send_cmd_sync(graph->dev, NULL, &graph->result, &graph->lock, in audioreach_graph_send_cmd_sync()
602 graph->port, &graph->cmd_wait, pkt, rsp_opcode); in audioreach_graph_send_cmd_sync()
606 static int audioreach_display_port_set_media_format(struct q6apm_graph *graph, in audioreach_display_port_set_media_format() argument
665 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_display_port_set_media_format()
673 static int audioreach_codec_dma_set_media_format(struct q6apm_graph *graph, in audioreach_codec_dma_set_media_format() argument
743 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_codec_dma_set_media_format()
750 int audioreach_send_u32_param(struct q6apm_graph *graph, struct audioreach_module *module, in audioreach_send_u32_param() argument
777 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_send_u32_param()
785 static int audioreach_sal_limiter_enable(struct q6apm_graph *graph, in audioreach_sal_limiter_enable() argument
788 return audioreach_send_u32_param(graph, module, PARAM_ID_SAL_LIMITER_ENABLE, enable); in audioreach_sal_limiter_enable()
791 static int audioreach_sal_set_media_format(struct q6apm_graph *graph, in audioreach_sal_set_media_format() argument
795 return audioreach_send_u32_param(graph, module, PARAM_ID_SAL_OUTPUT_CFG, cfg->bit_width); in audioreach_sal_set_media_format()
798 static int audioreach_module_enable(struct q6apm_graph *graph, in audioreach_module_enable() argument
802 return audioreach_send_u32_param(graph, module, PARAM_ID_MODULE_ENABLE, enable); in audioreach_module_enable()
805 static int audioreach_gapless_set_media_format(struct q6apm_graph *graph, in audioreach_gapless_set_media_format() argument
809 return audioreach_send_u32_param(graph, module, PARAM_ID_EARLY_EOS_DELAY, in audioreach_gapless_set_media_format()
813 static int audioreach_mfc_set_media_format(struct q6apm_graph *graph, in audioreach_mfc_set_media_format() argument
858 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_mfc_set_media_format()
923 int audioreach_compr_set_param(struct q6apm_graph *graph, struct audioreach_module_config *mcfg) in audioreach_compr_set_param() argument
932 iid = q6apm_graph_get_rx_shmem_module_iid(graph); in audioreach_compr_set_param()
934 0, graph->port->id, iid); in audioreach_compr_set_param()
947 rc = gpr_send_port_pkt(graph->port, pkt); in audioreach_compr_set_param()
954 static int audioreach_i2s_set_media_format(struct q6apm_graph *graph, in audioreach_i2s_set_media_format() argument
1023 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_i2s_set_media_format()
1030 static int audioreach_logging_set_media_format(struct q6apm_graph *graph, in audioreach_logging_set_media_format() argument
1058 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_logging_set_media_format()
1065 static int audioreach_pcm_set_media_format(struct q6apm_graph *graph, in audioreach_pcm_set_media_format() argument
1077 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_pcm_set_media_format()
1111 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_pcm_set_media_format()
1118 static int audioreach_shmem_set_media_format(struct q6apm_graph *graph, in audioreach_shmem_set_media_format() argument
1131 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_shmem_set_media_format()
1138 graph->port->id, module->instance_id); in audioreach_shmem_set_media_format()
1177 rc = audioreach_graph_send_cmd_sync(graph, pkt, 0); in audioreach_shmem_set_media_format()
1216 static int audioreach_gain_set(struct q6apm_graph *graph, struct audioreach_module *module) in audioreach_gain_set() argument
1238 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_gain_set()
1245 int audioreach_set_media_format(struct q6apm_graph *graph, struct audioreach_module *module, in audioreach_set_media_format() argument
1252 rc = audioreach_module_enable(graph, module, true); in audioreach_set_media_format()
1254 rc = audioreach_logging_set_media_format(graph, module); in audioreach_set_media_format()
1261 rc = audioreach_pcm_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1264 rc = audioreach_display_port_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1268 rc = audioreach_i2s_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1271 rc = audioreach_shmem_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1274 rc = audioreach_gain_set(graph, module); in audioreach_set_media_format()
1278 rc = audioreach_codec_dma_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1281 rc = audioreach_sal_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1283 rc = audioreach_sal_limiter_enable(graph, module, true); in audioreach_set_media_format()
1286 rc = audioreach_mfc_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1289 rc = audioreach_gapless_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1299 void audioreach_graph_free_buf(struct q6apm_graph *graph) in audioreach_graph_free_buf() argument
1303 mutex_lock(&graph->lock); in audioreach_graph_free_buf()
1304 port = &graph->rx_data; in audioreach_graph_free_buf()
1309 port = &graph->tx_data; in audioreach_graph_free_buf()
1313 mutex_unlock(&graph->lock); in audioreach_graph_free_buf()
1317 int audioreach_map_memory_regions(struct q6apm_graph *graph, unsigned int dir, size_t period_sz, in audioreach_map_memory_regions() argument
1329 data = &graph->rx_data; in audioreach_map_memory_regions()
1331 data = &graph->tx_data; in audioreach_map_memory_regions()
1347 graph->port->id); in audioreach_map_memory_regions()
1360 mutex_lock(&graph->lock); in audioreach_map_memory_regions()
1371 mutex_unlock(&graph->lock); in audioreach_map_memory_regions()
1373 rc = audioreach_graph_send_cmd_sync(graph, pkt, APM_CMD_RSP_SHARED_MEM_MAP_REGIONS); in audioreach_map_memory_regions()
1381 int audioreach_shared_memory_send_eos(struct q6apm_graph *graph) in audioreach_shared_memory_send_eos() argument
1387 iid = q6apm_graph_get_rx_shmem_module_iid(graph); in audioreach_shared_memory_send_eos()
1389 graph->port->id, iid); in audioreach_shared_memory_send_eos()
1397 rc = gpr_send_port_pkt(graph->port, pkt); in audioreach_shared_memory_send_eos()