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

Commit bbc56fda authored by Alden DSouza's avatar Alden DSouza Committed by Android (Google) Code Review
Browse files

Merge "audio: Add device definitions for Echo Reference" into sc-dev

parents 2de24fa7 b7d2078c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2184,7 +2184,9 @@ status_t AudioPolicyManager::getInputForAttr(const audio_attributes_t *attr,
            status = BAD_VALUE;
            goto error;
        }
        if (policyMix) {
        if (device->type() == AUDIO_DEVICE_IN_ECHO_REFERENCE) {
            *inputType = API_INPUT_MIX_CAPTURE;
        } else if (policyMix) {
            ALOG_ASSERT(policyMix->mMixType == MIX_TYPE_RECORDERS, "Invalid Mix Type");
            // there is an external policy, but this input is attached to a mix of recorders,
            // meaning it receives audio injected into the framework, so the recorder doesn't