Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Commit

Permalink
msm: sps: Assign proper BAM destination values
Browse files Browse the repository at this point in the history
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 <aprathi@codeaurora.org>
  • Loading branch information
Ajay Prathi authored and Gerrit - the friendly Code Review server committed Jul 31, 2020
1 parent ebbf4da commit 93ca81a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/platform/msm/sps/sps_bam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 93ca81a

Please sign in to comment.