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

Commit b718c3a0 authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9587611 from 31af18aa to tm-qpr3-release

Change-Id: Ib56096ac4d1fb9c47e045862fd3b5b000a2c766e
parents 93128b06 31af18aa
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2002,6 +2002,10 @@ status_t AudioPolicyManager::startOutput(audio_port_handle_t portId)
        outputDesc->stop();
        return status;
    }
    if (client->hasPreferredDevice()) {
        // playback activity with preferred device impacts routing occurred, inform upper layers
        mpClientInterface->onRoutingUpdated();
    }
    if (delayMs != 0) {
        usleep(delayMs * 1000);
    }
@@ -2247,6 +2251,11 @@ status_t AudioPolicyManager::stopOutput(audio_port_handle_t portId)
    }
    sp<TrackClientDescriptor> client = outputDesc->getClient(portId);

    if (client->hasPreferredDevice(true)) {
        // playback activity with preferred device impacts routing occurred, inform upper layers
        mpClientInterface->onRoutingUpdated();
    }

    ALOGV("stopOutput() output %d, stream %d, session %d",
          outputDesc->mIoHandle, client->stream(), client->session());