summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2011-12-08 11:42:52 -0800
committerEric Laurent <elaurent@google.com>2011-12-08 11:47:29 -0800
commit314bacacbbc6a52b25e083a30bde8d986adc1ef3 (patch)
tree980571b96eaa14e92cb4499f4ac3fee696e37221 /audio
parentda9978fb8e7af7493eeaf14a24d28a0adf028aa8 (diff)
downloadhardware_libhardware_legacy-314bacacbbc6a52b25e083a30bde8d986adc1ef3.zip
hardware_libhardware_legacy-314bacacbbc6a52b25e083a30bde8d986adc1ef3.tar.gz
hardware_libhardware_legacy-314bacacbbc6a52b25e083a30bde8d986adc1ef3.tar.bz2
audio policy manager: remove ringer mode dump
The ringer mode is at the moment not passed down from AudioService to AudioPolicyManager as it is currently not used in any routig decision. So the value store in audio policy manager is wrong and the dump is miss leading. Change-Id: I3c21c168393470fd64c1b73e3c511576a9acdd7e
Diffstat (limited to 'audio')
-rw-r--r--audio/AudioPolicyManagerBase.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/audio/AudioPolicyManagerBase.cpp b/audio/AudioPolicyManagerBase.cpp
index 2d3b6cf..5728d86 100644
--- a/audio/AudioPolicyManagerBase.cpp
+++ b/audio/AudioPolicyManagerBase.cpp
@@ -998,8 +998,9 @@ status_t AudioPolicyManagerBase::dump(int fd)
result.append(buffer);
snprintf(buffer, SIZE, " Phone state: %d\n", mPhoneState);
result.append(buffer);
- snprintf(buffer, SIZE, " Ringer mode: %d\n", mRingerMode);
- result.append(buffer);
+// disable ringer mode dump until it is actually passed by AudioService when needed.
+// snprintf(buffer, SIZE, " Ringer mode: %d\n", mRingerMode);
+// result.append(buffer);
snprintf(buffer, SIZE, " Force use for communications %d\n", mForceUse[AudioSystem::FOR_COMMUNICATION]);
result.append(buffer);
snprintf(buffer, SIZE, " Force use for media %d\n", mForceUse[AudioSystem::FOR_MEDIA]);