From 93ca81a03c5dce801dbbfd0bda6d35598241e18b Mon Sep 17 00:00:00 2001 From: Ajay Prathi Date: Fri, 3 Jul 2020 15:12:22 +0530 Subject: [PATCH] msm: sps: Assign proper BAM destination values Fix NOC error caused due to incorrect BAM destination value. Assign correct destination and destination pipe index values to peer BAM. Change-Id: Ifc8f0c308cc388924dce3e32709dad47fc69bf70 Signed-off-by: Ajay Prathi --- drivers/platform/msm/sps/sps_bam.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/platform/msm/sps/sps_bam.c b/drivers/platform/msm/sps/sps_bam.c index 68f4e3e91c90..3a8ccbdea296 100644 --- a/drivers/platform/msm/sps/sps_bam.c +++ b/drivers/platform/msm/sps/sps_bam.c @@ -899,14 +899,12 @@ int sps_bam_pipe_connect(struct sps_pipe *bam_pipe, peer_bam->props.phys_addr; } if (!(bam_pipe->connect.options & SPS_O_DUMMY_PEER)) { - hw_params.peer_phys_addr = - bam_pipe->connect.destination; - hw_params.peer_pipe = - bam_pipe->connect.dest_pipe_index; + hw_params.peer_pipe = other_pipe->pipe_index; } else { hw_params.peer_phys_addr = bam_pipe->connect.destination; - hw_params.peer_pipe = other_pipe->pipe_index; + hw_params.peer_pipe = + bam_pipe->connect.dest_pipe_index; hw_params.dummy_peer = true; } /* Verify FIFO buffers are allocated for BAM-to-BAM pipes */