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

Commit a3412b0d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "audio policy: fix spurious error log at init"

parents 7649c3fa 1d69c872
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -4698,6 +4698,9 @@ status_t AudioPolicyManager::initialize() {
        return status;
    }

    mCommunnicationStrategy = mEngine->getProductStrategyForAttributes(
        mEngine->getAttributesForStreamType(AUDIO_STREAM_VOICE_CALL));

    // after parsing the config, mOutputDevicesAll and mInputDevicesAll contain all known devices;
    // open all output streams needed to access attached devices
    onNewAudioModulesAvailableInt(nullptr /*newDevices*/);
@@ -4727,9 +4730,6 @@ status_t AudioPolicyManager::initialize() {
    // Silence ALOGV statements
    property_set("log.tag." LOG_TAG, "D");

    mCommunnicationStrategy = mEngine->getProductStrategyForAttributes(
            mEngine->getAttributesForStreamType(AUDIO_STREAM_VOICE_CALL));

    updateDevicesAndOutputs();
    return status;
}