summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-08-27 17:16:29 -0700
committerEric Laurent <elaurent@google.com>2010-08-27 17:16:29 -0700
commitd6e68c3ae5677bc6127628d1c700b11c8f0fcdaf (patch)
tree764790f19737b606d0d4c2ea63a8da9b8adb4c47
parentd2b227e76033d8c44b71d2982028a63436d3fe84 (diff)
downloadhardware_libhardware_legacy-d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf.zip
hardware_libhardware_legacy-d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf.tar.gz
hardware_libhardware_legacy-d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf.tar.bz2
Fix issue 2952766.
The fix for issue 2952766 showed some unused code in AudioPolicyManagerBase::checkOutputForStrategy(): since commit eb8f850d0b7e53956e917fd9645f808c1a09bc88: there is no need to update the hardware output device as it will be updated when the new tracks are created by audioflinger. Change-Id: I2f46fab58a5db3b4cd03fdaeebd7d6603c8dbbdd
-rw-r--r--include/hardware_legacy/AudioPolicyManagerBase.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h
index c702d4e..ebeca55 100644
--- a/include/hardware_legacy/AudioPolicyManagerBase.h
+++ b/include/hardware_legacy/AudioPolicyManagerBase.h
@@ -249,9 +249,9 @@ protected:
// must be called every time a condition that affects the output choice for a given strategy is
// changed: connected device, phone state, force use...
// Must be called before updateDeviceForStrategy()
- void checkOutputForStrategy(routing_strategy strategy, uint32_t &newDevice);
+ void checkOutputForStrategy(routing_strategy strategy);
// Same as checkOutputForStrategy() but for a all strategies in order of priority
- void checkOutputForAllStrategies(uint32_t &newDevice);
+ void checkOutputForAllStrategies();
#endif
// selects the most appropriate device on output for current state