Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -6439,7 +6439,8 @@ float AudioPolicyManager::computeVolume(IVolumeCurves &curves, volumeDb = minVolDb; volumeDb = minVolDb; ALOGV("computeVolume limiting volume to %f musicVol %f", minVolDb, musicVolDb); ALOGV("computeVolume limiting volume to %f musicVol %f", minVolDb, musicVolDb); } } if (!Intersection(deviceTypes, {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, if (Volume::getDeviceForVolume(deviceTypes) != AUDIO_DEVICE_OUT_SPEAKER && !Intersection(deviceTypes, {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES}).empty()) { AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES}).empty()) { // on A2DP, also ensure notification volume is not too low compared to media when // on A2DP, also ensure notification volume is not too low compared to media when // intended to be played // intended to be played Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +3 −2 Original line number Original line Diff line number Diff line Loading @@ -6439,7 +6439,8 @@ float AudioPolicyManager::computeVolume(IVolumeCurves &curves, volumeDb = minVolDb; volumeDb = minVolDb; ALOGV("computeVolume limiting volume to %f musicVol %f", minVolDb, musicVolDb); ALOGV("computeVolume limiting volume to %f musicVol %f", minVolDb, musicVolDb); } } if (!Intersection(deviceTypes, {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, if (Volume::getDeviceForVolume(deviceTypes) != AUDIO_DEVICE_OUT_SPEAKER && !Intersection(deviceTypes, {AUDIO_DEVICE_OUT_BLUETOOTH_A2DP, AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES}).empty()) { AUDIO_DEVICE_OUT_BLUETOOTH_A2DP_HEADPHONES}).empty()) { // on A2DP, also ensure notification volume is not too low compared to media when // on A2DP, also ensure notification volume is not too low compared to media when // intended to be played // intended to be played Loading