summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorEric Laurent <>2009-03-26 01:57:59 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-26 01:57:59 -0700
commitb1596ee235b568d4c25313e2d335a1203953663b (patch)
treef4d5456b806b51a46b7abaa2c33fbd023eb970cf /libs
parent192f79fe71af21e6a877bd298b33be92bee6b353 (diff)
downloadframeworks_native-b1596ee235b568d4c25313e2d335a1203953663b.zip
frameworks_native-b1596ee235b568d4c25313e2d335a1203953663b.tar.gz
frameworks_native-b1596ee235b568d4c25313e2d335a1203953663b.tar.bz2
Automated import from //branches/cupcake/...@142889,142889
Diffstat (limited to 'libs')
-rw-r--r--libs/audioflinger/AudioFlinger.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/audioflinger/AudioFlinger.cpp b/libs/audioflinger/AudioFlinger.cpp
index 9ba7f90..b9ecdd8 100644
--- a/libs/audioflinger/AudioFlinger.cpp
+++ b/libs/audioflinger/AudioFlinger.cpp
@@ -243,7 +243,8 @@ bool AudioFlinger::streamForcedToSpeaker(int streamType)
// AudioSystem::routedToA2dpOutput(streamType) == false
return (streamType == AudioSystem::RING ||
streamType == AudioSystem::ALARM ||
- streamType == AudioSystem::NOTIFICATION);
+ streamType == AudioSystem::NOTIFICATION ||
+ streamType == AudioSystem::ENFORCED_AUDIBLE);
}
status_t AudioFlinger::dumpClients(int fd, const Vector<String16>& args)
@@ -645,7 +646,8 @@ status_t AudioFlinger::setStreamVolume(int stream, float value)
return PERMISSION_DENIED;
}
- if (uint32_t(stream) >= AudioSystem::NUM_STREAM_TYPES) {
+ if (uint32_t(stream) >= AudioSystem::NUM_STREAM_TYPES ||
+ uint32_t(stream) == AudioSystem::ENFORCED_AUDIBLE) {
return BAD_VALUE;
}
@@ -680,7 +682,8 @@ status_t AudioFlinger::setStreamMute(int stream, bool muted)
return PERMISSION_DENIED;
}
- if (uint32_t(stream) >= AudioSystem::NUM_STREAM_TYPES) {
+ if (uint32_t(stream) >= AudioSystem::NUM_STREAM_TYPES ||
+ uint32_t(stream) == AudioSystem::ENFORCED_AUDIBLE) {
return BAD_VALUE;
}