fix a typo in SINC resampler that prevented tracks to be mixed
we were always erasing the current mix instead of mixing into it.
Change-Id: Ib229245f9e5a0d384f1727640a59e9f0469211a2
diff --git a/services/audioflinger/AudioResamplerSinc.cpp b/services/audioflinger/AudioResamplerSinc.cpp
index d68b839..3f22ca6 100644
--- a/services/audioflinger/AudioResamplerSinc.cpp
+++ b/services/audioflinger/AudioResamplerSinc.cpp
@@ -721,7 +721,7 @@
"vdup.i32 d0, d0[0] \n" // interleave L,R channels
"vqrdmulh.s32 d0, d0, d2 \n" // apply volume
"vadd.s32 d3, d3, d0 \n" // accumulate result
- "vst1.s32 {d0}, %[out] \n" // store result
+ "vst1.s32 {d3}, %[out] \n" // store result
: [out] "=Uv" (out[0]),
[count] "+r" (count),
@@ -797,7 +797,7 @@
"vtrn.s32 d0, d8 \n" // interlace L,R channels
"vqrdmulh.s32 d0, d0, d2 \n" // apply volume
"vadd.s32 d3, d3, d0 \n" // accumulate result
- "vst1.s32 {d0}, %[out] \n" // store result
+ "vst1.s32 {d3}, %[out] \n" // store result
: [out] "=Uv" (out[0]),
[count] "+r" (count),