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

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

Merge "Fix explicit routing failed."

parents 7fbc087b c0c831a8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1427,7 +1427,7 @@ status_t AudioPolicyManager::getInputForAttr(const audio_attributes_t *attr,
    // Explicit routing?
    sp<DeviceDescriptor> deviceDesc;
    if (*selectedDeviceId != AUDIO_PORT_HANDLE_NONE) {
        deviceDesc = mAvailableOutputDevices.getDeviceFromId(*selectedDeviceId);
        deviceDesc = mAvailableInputDevices.getDeviceFromId(*selectedDeviceId);
    }
    mInputRoutes.addRoute(session, SessionRoute::STREAM_TYPE_NA, inputSource, deviceDesc, uid);