From: Eric Laurent Date: Sat, 28 Aug 2010 00:16:29 +0000 (-0700) Subject: Fix issue 2952766. X-Git-Tag: android-x86-4.4-r1~196^2^2~1 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fhardware-libhardware_legacy.git;a=commitdiff_plain;h=d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf 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 --- 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