Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 039936c8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "audio: if device is change from none to new device, need get index from...

Merge "audio: if device is change from none to new device, need get index from new device." into main am: 0cf7ca88

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2658258



Change-Id: I483e87e13bb3eb36c24e5d0ddcdd50284569472b
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 965bdfbc 0cf7ca88
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7380,6 +7380,9 @@ status_t AudioPolicyManager::checkAndSetVolume(IVolumeCurves &curves,
    }
    if (deviceTypes.empty()) {
        deviceTypes = outputDesc->devices().types();
        index = curves.getVolumeIndex(deviceTypes);
        ALOGD("%s if deviceTypes is change from none to device %s, need get index %d",
                __func__, dumpDeviceTypes(deviceTypes).c_str(), index);
    }

    if (curves.getVolumeIndexMin() < 0 || curves.getVolumeIndexMax() < 0) {