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

Commit 2dcfadd9 authored by Jaideep Sharma's avatar Jaideep Sharma Committed by Shunkai Yao
Browse files

libaudiohal: Publish AUX type in proxy effects

Publish AUXILIARY type to effect proxy, if any of sub-effects
support AUXILIARY. Ideally, all the sub-effects should be of same type.

Bug: 328167080
Test: run cts-dev -m CtsMediaAudioTestCases -t android.media.audio.cts.AudioEffectTest#test1_7AuxiliaryOnAudioTrack


Change-Id: Ib15918aacaf4cabb1128e46eaa5fee1539573085
parent 3a89c66e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -207,6 +207,10 @@ Descriptor::Common EffectProxy::buildDescriptorCommon(
        if (desc.common.flags.volume == Flags::Volume::NONE) {
            common.flags.volume = Flags::Volume::NONE;
        }
        // set to AUXILIARY if any sub-effect is of AUXILIARY type
        if (desc.common.flags.type == Flags::Type::AUXILIARY) {
            common.flags.type = Flags::Type::AUXILIARY;
        }
    }

    // copy type UUID from any of sub-effects, all sub-effects should have same type