Loading policy_hal/AudioPolicyManager.cpp +2 −5 Original line number Diff line number Diff line Loading @@ -682,12 +682,9 @@ audio_devices_t AudioPolicyManagerCustom::getNewOutputDevice(const sp<AudioOutpu device = getDeviceForStrategy(STRATEGY_PHONE, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_ENFORCED_AUDIBLE)) { device = getDeviceForStrategy(STRATEGY_ENFORCED_AUDIBLE, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION)|| (isStrategyActive(mPrimaryOutput,STRATEGY_SONIFICATION) && (!isStrategyActive(mPrimaryOutput,STRATEGY_MEDIA)))) { } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION)) { device = getDeviceForStrategy(STRATEGY_SONIFICATION, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION_RESPECTFUL) || isStrategyActive(mPrimaryOutput,STRATEGY_SONIFICATION_RESPECTFUL)) { } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION_RESPECTFUL)) { device = getDeviceForStrategy(STRATEGY_SONIFICATION_RESPECTFUL, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_ACCESSIBILITY)) { device = getDeviceForStrategy(STRATEGY_ACCESSIBILITY, fromCache); Loading Loading
policy_hal/AudioPolicyManager.cpp +2 −5 Original line number Diff line number Diff line Loading @@ -682,12 +682,9 @@ audio_devices_t AudioPolicyManagerCustom::getNewOutputDevice(const sp<AudioOutpu device = getDeviceForStrategy(STRATEGY_PHONE, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_ENFORCED_AUDIBLE)) { device = getDeviceForStrategy(STRATEGY_ENFORCED_AUDIBLE, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION)|| (isStrategyActive(mPrimaryOutput,STRATEGY_SONIFICATION) && (!isStrategyActive(mPrimaryOutput,STRATEGY_MEDIA)))) { } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION)) { device = getDeviceForStrategy(STRATEGY_SONIFICATION, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION_RESPECTFUL) || isStrategyActive(mPrimaryOutput,STRATEGY_SONIFICATION_RESPECTFUL)) { } else if (isStrategyActive(outputDesc, STRATEGY_SONIFICATION_RESPECTFUL)) { device = getDeviceForStrategy(STRATEGY_SONIFICATION_RESPECTFUL, fromCache); } else if (isStrategyActive(outputDesc, STRATEGY_ACCESSIBILITY)) { device = getDeviceForStrategy(STRATEGY_ACCESSIBILITY, fromCache); Loading