Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d55dd7f authored by Yan He's avatar Yan He Committed by Gerrit - the friendly Code Review server
Browse files

msm: sps: correct a bug in descriptor number calculation



Correct a bug in the calculation of the number of descriptors in
the descriptor FIFO.

Change-Id: I9a985b1d0b7e4b105222f6562437f884aa77fa2a
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent ac38dd94
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1499,7 +1499,7 @@ int sps_bam_pipe_transfer(struct sps_bam *dev,
	if (!pipe->sys.ack_xfers && pipe->polled) {
		sps_bam_pipe_get_unused_desc_num(dev, pipe_index,
					&count);
		count = pipe->desc_size - count - 1;
		count = pipe->desc_size / sizeof(struct sps_iovec) - count - 1;
	} else
		sps_bam_get_free_count(dev, pipe_index, &count);