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

Commit 339f9353 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: sps: correct a bug in descriptor number calculation"

parents 3c809744 9d55dd7f
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);