diff options
| author | Y Mehta <ymehta@codeaurora.org> | 2012-08-30 10:37:20 +0530 |
|---|---|---|
| committer | Giulio Cervera <giulio.cervera@gmail.com> | 2012-09-04 14:54:29 +0200 |
| commit | a177b95f3afbcfdb63a4bcb118b03241084adfa3 (patch) | |
| tree | 6881e6c545e4c5d940f3304c7c33664320dcbc01 | |
| parent | 9d6b407709c6c02569bf42794307a60d24cc7e24 (diff) | |
| download | android_hardware_qcom_audio-a177b95f3afbcfdb63a4bcb118b03241084adfa3.tar.gz android_hardware_qcom_audio-a177b95f3afbcfdb63a4bcb118b03241084adfa3.tar.bz2 android_hardware_qcom_audio-a177b95f3afbcfdb63a4bcb118b03241084adfa3.zip | |
audio/msm8660: Fix to use low power audio session for MP3 and AAC clips
- MP3 and AAC files are failed to play through low power audio.
- Due to incorrect check, audio session for low power audio is not
created and failed to play the clips.
- Added proper check to create audio session for low power audio clips.
(cherry picked from commit 24687411e6d9ee0aa8a996d7e6389faa5ece44d3)
Change-Id: I9e8f4647fa2de1e2cb586b90995740dd72ef04be
| -rw-r--r-- | msm8660/AudioHardware.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/msm8660/AudioHardware.cpp b/msm8660/AudioHardware.cpp index f00500c6..4b7622ab 100644 --- a/msm8660/AudioHardware.cpp +++ b/msm8660/AudioHardware.cpp @@ -876,7 +876,8 @@ AudioStreamOut* AudioHardware::openOutputStream( Mutex::Autolock lock(mLock); #ifdef QCOM_VOIP_ENABLED // only one output stream allowed - if (mOutput && !((flags & AUDIO_OUTPUT_FLAG_DIRECT) && (flags & AUDIO_OUTPUT_FLAG_VOIP_RX))) { + if (mOutput && !((flags & AUDIO_OUTPUT_FLAG_DIRECT) && (flags & AUDIO_OUTPUT_FLAG_VOIP_RX)) + && !(flags & AUDIO_OUTPUT_FLAG_LPA)) { if (status) { *status = INVALID_OPERATION; } |
