Loading services/audiopolicy/managerdefault/AudioPolicyManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -2920,7 +2920,7 @@ status_t AudioPolicyManager::getVolumeIndexForAttributes(const audio_attributes_ // stream by the engine. DeviceTypeSet deviceTypes = {device}; if (device == AUDIO_DEVICE_OUT_DEFAULT_FOR_VOLUME) { DeviceTypeSet deviceTypes = mEngine->getOutputDevicesForAttributes( deviceTypes = mEngine->getOutputDevicesForAttributes( attr, nullptr, true /*fromCache*/).types(); } return getVolumeIndex(getVolumeCurves(attr), index, deviceTypes); Loading @@ -2930,7 +2930,7 @@ status_t AudioPolicyManager::getVolumeIndex(const IVolumeCurves &curves, int &index, const DeviceTypeSet& deviceTypes) const { if (isSingleDeviceType(deviceTypes, audio_is_output_device)) { if (!isSingleDeviceType(deviceTypes, audio_is_output_device)) { return BAD_VALUE; } index = curves.getVolumeIndex(deviceTypes); Loading Loading
services/audiopolicy/managerdefault/AudioPolicyManager.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -2920,7 +2920,7 @@ status_t AudioPolicyManager::getVolumeIndexForAttributes(const audio_attributes_ // stream by the engine. DeviceTypeSet deviceTypes = {device}; if (device == AUDIO_DEVICE_OUT_DEFAULT_FOR_VOLUME) { DeviceTypeSet deviceTypes = mEngine->getOutputDevicesForAttributes( deviceTypes = mEngine->getOutputDevicesForAttributes( attr, nullptr, true /*fromCache*/).types(); } return getVolumeIndex(getVolumeCurves(attr), index, deviceTypes); Loading @@ -2930,7 +2930,7 @@ status_t AudioPolicyManager::getVolumeIndex(const IVolumeCurves &curves, int &index, const DeviceTypeSet& deviceTypes) const { if (isSingleDeviceType(deviceTypes, audio_is_output_device)) { if (!isSingleDeviceType(deviceTypes, audio_is_output_device)) { return BAD_VALUE; } index = curves.getVolumeIndex(deviceTypes); Loading