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
commitbc9ea63daaad764d242ce0eadfeb697abb9ce34e (patch)
tree675f15de5cc9eda5b7a4f88001e41417eeb39db3 /services/audioflinger/AudioResamplerSinc.cpp
parenta81a88597138de226da88fe10456d46289107e8a (diff)
downloadframeworks_av-bc9ea63daaad764d242ce0eadfeb697abb9ce34e.zip
frameworks_av-bc9ea63daaad764d242ce0eadfeb697abb9ce34e.tar.gz
frameworks_av-bc9ea63daaad764d242ce0eadfeb697abb9ce34e.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),