diff options
author | Eric Laurent <elaurent@google.com> | 2010-12-10 11:46:12 -0800 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2010-12-10 11:46:12 -0800 |
commit | 4f9e0f173e72f622ab355223483734a07ff8ebcf (patch) | |
tree | b1dce4a2ce5a6ce9ea665ebaf6b6215bdb5fc626 /services/audioflinger | |
parent | dfcaeb1677cef0d7bf437f5f0432b6f07b223690 (diff) | |
download | frameworks_base-4f9e0f173e72f622ab355223483734a07ff8ebcf.zip frameworks_base-4f9e0f173e72f622ab355223483734a07ff8ebcf.tar.gz frameworks_base-4f9e0f173e72f622ab355223483734a07ff8ebcf.tar.bz2 |
Fix audio mode log.
Since the new audio mode IN_COMMUNICATION was added, the audio mode log
was broken.
Change-Id: I4fdafc3b98a1b0ceb55058a9e47fed99b3dbe6ad
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/AudioHardwareInterface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/AudioHardwareInterface.cpp b/services/audioflinger/AudioHardwareInterface.cpp index 9a4a7f9..f58e4c0 100644 --- a/services/audioflinger/AudioHardwareInterface.cpp +++ b/services/audioflinger/AudioHardwareInterface.cpp @@ -48,14 +48,15 @@ static const char* routingModeStrings[] = "CURRENT", "NORMAL", "RINGTONE", - "IN_CALL" + "IN_CALL", + "IN_COMMUNICATION" }; static const char* routeNone = "NONE"; static const char* displayMode(int mode) { - if ((mode < -2) || (mode > 2)) + if ((mode < AudioSystem::MODE_INVALID) || (mode >= AudioSystem::NUM_MODES)) return routingModeStrings[0]; return routingModeStrings[mode+3]; } |