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

Commit c6a8c79f authored by Sneha Patil's avatar Sneha Patil
Browse files

DynamicsProcessing: Add a StageType check for getting equalizer band config parameters

Bug: b/394428987
Test: atest VtsHalDynamicsProcessingTargetTest
Change-Id: Idb4715f8d0b0b6890ecebbcc5c3584e72e55c800
parent adf2d546
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -370,7 +370,8 @@ std::vector<DynamicsProcessing::EqBandConfig> DynamicsProcessingContext::getEqBa
        StageType type) {
    std::vector<DynamicsProcessing::EqBandConfig> eqBands;

    auto maxBand = mEngineArchitecture.preEqStage.bandCount;
    auto maxBand = type == StageType::POSTEQ ? mEngineArchitecture.postEqStage.bandCount
                                             : mEngineArchitecture.preEqStage.bandCount;
    for (int32_t ch = 0; ch < mChannelCount; ch++) {
        auto eq = getEqWithType_l(type, ch);
        if (!eq) {