Skip to content

Commit 525fa5f

Browse files
Srinivas Kandagatlabroonie
authored andcommitted
ASoC: qcom: audioreach: use cached shared memory module IID
audioreach currently calls q6apm_graph_get_rx_shmem_module_iid() to get the shared memory module IID. The graph already caches this value in graph->shm_iid, so use it directly in audioreach_compr_set_param() and audioreach_shared_memory_send_eos(). This prepares for removing the helper in a later patch. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20260528185806.6316-2-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e43ffb6 commit 525fa5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sound/soc/qcom/qdsp6/audioreach.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ int audioreach_compr_set_param(struct q6apm_graph *graph,
955955
struct media_format *header;
956956
int rc;
957957
void *p;
958-
int iid = q6apm_graph_get_rx_shmem_module_iid(graph);
958+
int iid = graph->shm_iid;
959959
int payload_size = sizeof(struct apm_sh_module_media_fmt_cmd);
960960

961961
struct gpr_pkt *pkt __free(kfree) = audioreach_alloc_cmd_pkt(payload_size,
@@ -1404,7 +1404,7 @@ EXPORT_SYMBOL_GPL(audioreach_graph_free_buf);
14041404
int audioreach_shared_memory_send_eos(struct q6apm_graph *graph)
14051405
{
14061406
struct data_cmd_wr_sh_mem_ep_eos *eos;
1407-
int iid = q6apm_graph_get_rx_shmem_module_iid(graph);
1407+
int iid = graph->shm_iid;
14081408
struct gpr_pkt *pkt __free(kfree) = audioreach_alloc_cmd_pkt(sizeof(*eos),
14091409
DATA_CMD_WR_SH_MEM_EP_EOS, 0, graph->port->id, iid);
14101410
if (IS_ERR(pkt))

0 commit comments

Comments
 (0)