summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioResamplerSinc.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2012-11-19 15:27:26 -0800
committerMathias Agopian <mathias@google.com>2012-11-19 15:27:26 -0800
commitd6864faccd19096b72d32481a3cc475e6d36e50d (patch)
treeaf3cad4f2e0397a57891d973c1be1f0624bd697b /services/audioflinger/AudioResamplerSinc.cpp
parent4d9cef6c007afd195a8f36d35d46b359bf909331 (diff)
downloadframeworks_av-d6864faccd19096b72d32481a3cc475e6d36e50d.zip
frameworks_av-d6864faccd19096b72d32481a3cc475e6d36e50d.tar.gz
frameworks_av-d6864faccd19096b72d32481a3cc475e6d36e50d.tar.bz2
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
Diffstat (limited to 'services/audioflinger/AudioResamplerSinc.cpp')
-rw-r--r--services/audioflinger/AudioResamplerSinc.cpp4
1 files changed, 2 insertions, 2 deletions
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 @@ void AudioResamplerSinc::filterCoefficient(
"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 @@ void AudioResamplerSinc::filterCoefficient(
"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),