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

Commit ee1682a8 authored by Eric Laurent's avatar Eric Laurent Committed by Automerger Merge Worker
Browse files

Merge changes I5e12b2c7,Ic79effb1 into rvc-dev am: 1cb0a63d

Change-Id: Ia0c26f6349652ebae44ac713892adc2c94ac59d7
parents 8cd51311 1cb0a63d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2456,6 +2456,10 @@ status_t AudioPolicyManager::setStreamVolumeIndex(audio_stream_type_t stream,
                                                  audio_devices_t device)
{
    auto attributes = mEngine->getAttributesForStreamType(stream);
    if (attributes == AUDIO_ATTRIBUTES_INITIALIZER) {
        ALOGW("%s: no group for stream %s, bailing out", __func__, toString(stream).c_str());
        return NO_ERROR;
    }
    ALOGV("%s: stream %s attributes=%s", __func__,
          toString(stream).c_str(), toString(attributes).c_str());
    return setVolumeIndexForAttributes(attributes, index, device);