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

Commit 2585fb14 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "BassBoost : Add minimum and maximum capabilities for params." am:...

Merge "BassBoost : Add minimum and maximum capabilities for params." am: 74e43c26 am: 90ab5a22 am: 208ff3f8

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2369332



Change-Id: Ie7e5830834caa513bd3183ce13e1e569520e541c
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9a2afd14 208ff3f8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -498,8 +498,7 @@ RetCode BundleContext::updateControlParameter(const std::vector<Equalizer::BandL
}

RetCode BundleContext::setBassBoostStrength(int strength) {
    if (strength < BassBoost::MIN_PER_MILLE_STRENGTH ||
        strength > BassBoost::MAX_PER_MILLE_STRENGTH) {
    if (strength < 0 || strength > lvm::kBassBoostCap.maxStrengthPm) {
        LOG(ERROR) << __func__ << " invalid strength: " << strength;
        return RetCode::ERROR_ILLEGAL_PARAMETER;
    }
+2 −1
Original line number Diff line number Diff line
@@ -85,7 +85,8 @@ static const Descriptor kEqualizerDesc = {

static const bool mStrengthSupported = true;

static const BassBoost::Capability kBassBoostCap = {.strengthSupported = mStrengthSupported};
static const BassBoost::Capability kBassBoostCap = {.maxStrengthPm = 1000,
                                                    .strengthSupported = mStrengthSupported};

static const std::string kBassBoostEffectName = "Dynamic Bass Boost";