From d6864faccd19096b72d32481a3cc475e6d36e50d Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 19 Nov 2012 15:27:26 -0800 Subject: 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 --- services/audioflinger/AudioResamplerSinc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'services/audioflinger/AudioResamplerSinc.cpp') 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), -- cgit v1.1