summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-09 08:22:46 -0800
committerGlenn Kasten <gkasten@google.com>2012-02-09 16:34:23 -0800
commit5b9ff43995f6a6b819d9ad37dd8cdc5ad4a088d7 (patch)
treebfa47df10004a01c070003633ac7096a8496e3d5 /services/audioflinger
parent7ae4a2c130ec2cb5dec69d095b810698acc543b3 (diff)
downloadframeworks_av-5b9ff43995f6a6b819d9ad37dd8cdc5ad4a088d7.zip
frameworks_av-5b9ff43995f6a6b819d9ad37dd8cdc5ad4a088d7.tar.gz
frameworks_av-5b9ff43995f6a6b819d9ad37dd8cdc5ad4a088d7.tar.bz2
Use mul from audioutils
I verified that the disassembled output is identical. Change-Id: I34a76f0842ebc4aef2c923e079e38d0bc1f98b5c
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/AudioFlinger.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 93c91fb..ef26e07 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -2505,21 +2505,6 @@ AudioFlinger::DirectOutputThread::~DirectOutputThread()
{
}
-static inline
-int32_t mul(int16_t in, int16_t v)
-{
-#if defined(__arm__) && !defined(__thumb__)
- int32_t out;
- asm( "smulbb %[out], %[in], %[v] \n"
- : [out]"=r"(out)
- : [in]"%r"(in), [v]"r"(v)
- : );
- return out;
-#else
- return in * int32_t(v);
-#endif
-}
-
void AudioFlinger::DirectOutputThread::applyVolume(uint16_t leftVol, uint16_t rightVol, bool ramp)
{
// Do not apply volume on compressed audio