OSDN Git Service

Fix issue 2952766.
authorEric Laurent <elaurent@google.com>
Sat, 28 Aug 2010 00:16:29 +0000 (17:16 -0700)
committerEric Laurent <elaurent@google.com>
Sat, 28 Aug 2010 00:16:29 +0000 (17:16 -0700)
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

index c702d4e..ebeca55 100644 (file)
@@ -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