From d6e68c3ae5677bc6127628d1c700b11c8f0fcdaf Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Fri, 27 Aug 2010 17:16:29 -0700 Subject: 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 --- include/hardware_legacy/AudioPolicyManagerBase.h | 4 ++-- 1 file 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 -- cgit v1.1