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 @@
// 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