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

Commit b7d2078c authored by Alden DSouza's avatar Alden DSouza
Browse files

audio: Add device definitions for Echo Reference

This enum exists in AudioSystem, adding to AudioDeviceInfo.

Bug: 178379355
Test: Build and flash on Yukawa device.
Change-Id: I4a4aade913c0823a20a538cb740b2a83f775415c
parent 83b5d499
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2183,7 +2183,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