[Sound-open-firmware] [PATCH] comp: mixer: fix buffer position update

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Sep 7 00:44:06 CEST 2017


Buffer pointers were being updated twice. Fix.

Signed-off-by: Liam Girdwood <liam.r.girdwood at linux.intel.com>
---
 src/audio/mixer.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/audio/mixer.c b/src/audio/mixer.c
index 3f1f1ed..a4dea4d 100644
--- a/src/audio/mixer.c
+++ b/src/audio/mixer.c
@@ -73,13 +73,6 @@ static void mix_n(struct comp_dev *dev, struct comp_buffer *sink,
 		dest[i] = (val[0] >> (num_sources >> 1));
 		dest[i + 1] = (val[1] >> (num_sources >> 1));
 	}
-
-	/* update R/W pointers */
-	sink->w_ptr = dest + count;
-	for (j = 0; j < num_sources; j++) {
-		src = sources[j]->r_ptr;
-		sources[j]->r_ptr = src + count;
-	}
 }
 
 static struct comp_dev *mixer_new(struct sof_ipc_comp *comp)
-- 
2.11.0



More information about the Sound-open-firmware mailing list