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

Commit db177c9c authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: use configurationInput instead of Output

The endpoint was being configured with the wrong variable.

Bug: 64526143
Test: CTS nativemedia/aaudio
Change-Id: I84c8a23392fe8afde71ac9991eb097e795bf4a39
parent e88fd530
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ aaudio_result_t AAudioServiceStreamShared::open(const aaudio::AAudioStreamReques
    aaudio_direction_t direction = request.getDirection();

    AAudioEndpointManager &mEndpointManager = AAudioEndpointManager::getInstance();
    mServiceEndpoint = mEndpointManager.openEndpoint(mAudioService, configurationOutput, direction);
    mServiceEndpoint = mEndpointManager.openEndpoint(mAudioService, configurationInput, direction);
    if (mServiceEndpoint == nullptr) {
        ALOGE("AAudioServiceStreamShared::open() mServiceEndPoint = %p", mServiceEndpoint);
        return AAUDIO_ERROR_UNAVAILABLE;