Lines Matching refs:graph

612 int audioreach_graph_send_cmd_sync(struct q6apm_graph *graph, struct gpr_pkt *pkt,  in audioreach_graph_send_cmd_sync()  argument
616 return audioreach_send_cmd_sync(graph->dev, NULL, &graph->result, &graph->lock, in audioreach_graph_send_cmd_sync()
617 graph->port, &graph->cmd_wait, pkt, rsp_opcode); in audioreach_graph_send_cmd_sync()
622 static int audioreach_codec_dma_set_media_format(struct q6apm_graph *graph, in audioreach_codec_dma_set_media_format() argument
692 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_codec_dma_set_media_format()
699 static int audioreach_i2s_set_media_format(struct q6apm_graph *graph, in audioreach_i2s_set_media_format() argument
768 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_i2s_set_media_format()
775 static int audioreach_logging_set_media_format(struct q6apm_graph *graph, in audioreach_logging_set_media_format() argument
803 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_logging_set_media_format()
810 static int audioreach_pcm_set_media_format(struct q6apm_graph *graph, in audioreach_pcm_set_media_format() argument
822 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_pcm_set_media_format()
861 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_pcm_set_media_format()
868 static int audioreach_shmem_set_media_format(struct q6apm_graph *graph, in audioreach_shmem_set_media_format() argument
881 dev_err(graph->dev, "Error: Invalid channels (%d)!\n", num_channels); in audioreach_shmem_set_media_format()
888 graph->port->id, module->instance_id); in audioreach_shmem_set_media_format()
923 rc = audioreach_graph_send_cmd_sync(graph, pkt, 0); in audioreach_shmem_set_media_format()
962 static int audioreach_gain_set(struct q6apm_graph *graph, struct audioreach_module *module) in audioreach_gain_set() argument
984 rc = q6apm_send_cmd_sync(graph->apm, pkt, 0); in audioreach_gain_set()
991 int audioreach_set_media_format(struct q6apm_graph *graph, struct audioreach_module *module, in audioreach_set_media_format() argument
998 rc = audioreach_logging_set_media_format(graph, module); in audioreach_set_media_format()
1003 rc = audioreach_pcm_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1007 rc = audioreach_i2s_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1010 rc = audioreach_shmem_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1013 rc = audioreach_gain_set(graph, module); in audioreach_set_media_format()
1017 rc = audioreach_codec_dma_set_media_format(graph, module, cfg); in audioreach_set_media_format()
1027 void audioreach_graph_free_buf(struct q6apm_graph *graph) in audioreach_graph_free_buf() argument
1031 mutex_lock(&graph->lock); in audioreach_graph_free_buf()
1032 port = &graph->rx_data; in audioreach_graph_free_buf()
1037 port = &graph->tx_data; in audioreach_graph_free_buf()
1041 mutex_unlock(&graph->lock); in audioreach_graph_free_buf()
1045 int audioreach_map_memory_regions(struct q6apm_graph *graph, unsigned int dir, size_t period_sz, in audioreach_map_memory_regions() argument
1057 data = &graph->rx_data; in audioreach_map_memory_regions()
1059 data = &graph->tx_data; in audioreach_map_memory_regions()
1075 graph->port->id); in audioreach_map_memory_regions()
1088 mutex_lock(&graph->lock); in audioreach_map_memory_regions()
1099 mutex_unlock(&graph->lock); in audioreach_map_memory_regions()
1101 rc = audioreach_graph_send_cmd_sync(graph, pkt, APM_CMD_RSP_SHARED_MEM_MAP_REGIONS); in audioreach_map_memory_regions()
1109 int audioreach_shared_memory_send_eos(struct q6apm_graph *graph) in audioreach_shared_memory_send_eos() argument
1115 iid = q6apm_graph_get_rx_shmem_module_iid(graph); in audioreach_shared_memory_send_eos()
1117 graph->port->id, iid); in audioreach_shared_memory_send_eos()
1125 rc = gpr_send_port_pkt(graph->port, pkt); in audioreach_shared_memory_send_eos()