Lines Matching full:graph
45 /* Container graph Position */
300 /* Graph Position */ in apm_populate_container_config()
598 int audioreach_graph_send_cmd_sync(struct q6apm_graph *graph, struct gpr_pkt *pkt, in audioreach_graph_send_cmd_sync() argument
602 return audioreach_send_cmd_sync(graph->dev, NULL, &graph->result, &graph->lock, in audioreach_graph_send_cmd_sync()
603 graph->port, &graph->cmd_wait, pkt, rsp_opcode); in audioreach_graph_send_cmd_sync()
607 static int audioreach_display_port_set_media_format(struct q6apm_graph *graph, in audioreach_display_port_set_media_format() argument
666 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_display_port_set_media_format()
674 static int audioreach_codec_dma_set_media_format(struct q6apm_graph *graph, in audioreach_codec_dma_set_media_format() argument
744 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_codec_dma_set_media_format()
751 int audioreach_send_u32_param(struct q6apm_graph *graph, struct audioreach_module *module, in audioreach_send_u32_param() argument
778 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_send_u32_param()
786 static int audioreach_sal_limiter_enable(struct q6apm_graph *graph, in audioreach_sal_limiter_enable() argument
789 return audioreach_send_u32_param(graph, module, PARAM_ID_SAL_LIMITER_ENABLE, enable); in audioreach_sal_limiter_enable()
792 static int audioreach_sal_set_media_format(struct q6apm_graph *graph, in audioreach_sal_set_media_format() argument
796 return audioreach_send_u32_param(graph, module, PARAM_ID_SAL_OUTPUT_CFG, cfg->bit_width); in audioreach_sal_set_media_format()
799 static int audioreach_module_enable(struct q6apm_graph *graph, in audioreach_module_enable() argument
803 return audioreach_send_u32_param(graph, module, PARAM_ID_MODULE_ENABLE, enable); in audioreach_module_enable()
806 static int audioreach_gapless_set_media_format(struct q6apm_graph *graph, in audioreach_gapless_set_media_format() argument
810 return audioreach_send_u32_param(graph, module, PARAM_ID_EARLY_EOS_DELAY, in audioreach_gapless_set_media_format()
814 static int audioreach_mfc_set_media_format(struct q6apm_graph *graph, in audioreach_mfc_set_media_format() argument
849 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_mfc_set_media_format()
911 int audioreach_compr_set_param(struct q6apm_graph *graph, struct audioreach_module_config *mcfg) in audioreach_compr_set_param() argument
920 iid = q6apm_graph_get_rx_shmem_module_iid(graph); in audioreach_compr_set_param()
922 0, graph->port->id, iid); in audioreach_compr_set_param()
935 rc = gpr_send_port_pkt(graph->port, pkt); in audioreach_compr_set_param()
942 static int audioreach_i2s_set_media_format(struct q6apm_graph *graph, in audioreach_i2s_set_media_format() argument
1011 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_i2s_set_media_format()
1018 static int audioreach_logging_set_media_format(struct q6apm_graph *graph, in audioreach_logging_set_media_format() argument
1046 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_logging_set_media_format()
1053 static int audioreach_pcm_set_media_format(struct q6apm_graph *graph, in audioreach_pcm_set_media_format() argument
1065 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_pcm_set_media_format()
1097 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_pcm_set_media_format()
1104 static int audioreach_shmem_set_media_format(struct q6apm_graph *graph, in audioreach_shmem_set_media_format() argument
1117 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_shmem_set_media_format()
1124 graph->port->id, module->instance_id); in audioreach_shmem_set_media_format()
1161 rc = audioreach_graph_send_cmd_sync(graph, pkt, 0); in audioreach_shmem_set_media_format()
1200 static int audioreach_gain_set(struct q6apm_graph *graph, struct audioreach_module *module) in audioreach_gain_set() argument
1222 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_gain_set()
1229 int audioreach_set_media_format(struct q6apm_graph *graph, struct audioreach_module *module, in audioreach_set_media_format() argument
1236 rc = audioreach_module_enable(graph, module, true); in audioreach_set_media_format()
1238 rc = audioreach_logging_set_media_format(graph, module); in audioreach_set_media_format()
1245 rc = audioreach_pcm_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1248 rc = audioreach_display_port_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1252 rc = audioreach_i2s_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1255 rc = audioreach_shmem_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1258 rc = audioreach_gain_set(graph, module); in audioreach_set_media_format()
1262 rc = audioreach_codec_dma_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1265 rc = audioreach_sal_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1267 rc = audioreach_sal_limiter_enable(graph, module, true); in audioreach_set_media_format()
1270 rc = audioreach_mfc_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1273 rc = audioreach_gapless_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1283 void audioreach_graph_free_buf(struct q6apm_graph *graph) in audioreach_graph_free_buf() argument
1287 mutex_lock(&graph->lock); in audioreach_graph_free_buf()
1288 port = &graph->rx_data; in audioreach_graph_free_buf()
1293 port = &graph->tx_data; in audioreach_graph_free_buf()
1297 mutex_unlock(&graph->lock); in audioreach_graph_free_buf()
1301 int audioreach_map_memory_regions(struct q6apm_graph *graph, unsigned int dir, size_t period_sz, in audioreach_map_memory_regions() argument
1313 data = &graph->rx_data; in audioreach_map_memory_regions()
1315 data = &graph->tx_data; in audioreach_map_memory_regions()
1331 graph->port->id); in audioreach_map_memory_regions()
1344 mutex_lock(&graph->lock); in audioreach_map_memory_regions()
1355 mutex_unlock(&graph->lock); in audioreach_map_memory_regions()
1357 rc = audioreach_graph_send_cmd_sync(graph, pkt, APM_CMD_RSP_SHARED_MEM_MAP_REGIONS); in audioreach_map_memory_regions()
1365 int audioreach_shared_memory_send_eos(struct q6apm_graph *graph) in audioreach_shared_memory_send_eos() argument
1371 iid = q6apm_graph_get_rx_shmem_module_iid(graph); in audioreach_shared_memory_send_eos()
1373 graph->port->id, iid); in audioreach_shared_memory_send_eos()
1381 rc = gpr_send_port_pkt(graph->port, pkt); in audioreach_shared_memory_send_eos()