commit | f56afb303b095189f2092afa2d6f92fb0fb034f4 | [log] [tgz] |
---|---|---|
author | Shunkai Yao <yaoshunkai@google.com> | Thu Dec 08 00:03:54 2022 +0000 |
committer | Shunkai Yao <yaoshunkai@google.com> | Fri Dec 09 19:14:10 2022 +0000 |
tree | 845878a5466361e9ab352571a60331a1e781315b | |
parent | 05d7ab4b45bea8adaec1869a4399f7e864c46139 [diff] |
AIDL: Add BassBoost strength range in AIDL definition. Bug: 261646550 Test: atest VtsHalAudioEffectTargetTest Change-Id: I38efed8c7cc88295c72403a3c598db5dedd8c137
diff --git a/audio/aidl/aidl_api/android.hardware.audio.effect/current/android/hardware/audio/effect/BassBoost.aidl b/audio/aidl/aidl_api/android.hardware.audio.effect/current/android/hardware/audio/effect/BassBoost.aidl index 979ebb8..09ad015 100644 --- a/audio/aidl/aidl_api/android.hardware.audio.effect/current/android/hardware/audio/effect/BassBoost.aidl +++ b/audio/aidl/aidl_api/android.hardware.audio.effect/current/android/hardware/audio/effect/BassBoost.aidl
@@ -36,6 +36,8 @@ union BassBoost { android.hardware.audio.effect.VendorExtension vendor; int strengthPm; + const int MIN_PER_MILLE_STRENGTH = 0; + const int MAX_PER_MILLE_STRENGTH = 1000; @VintfStability union Id { int vendorExtensionTag;
diff --git a/audio/aidl/android/hardware/audio/effect/BassBoost.aidl b/audio/aidl/android/hardware/audio/effect/BassBoost.aidl index 810c188..9e5d8aa 100644 --- a/audio/aidl/android/hardware/audio/effect/BassBoost.aidl +++ b/audio/aidl/android/hardware/audio/effect/BassBoost.aidl
@@ -59,6 +59,16 @@ } /** + * Minimal possible per mille strength. + */ + const int MIN_PER_MILLE_STRENGTH = 0; + + /** + * Maximum possible per mille strength. + */ + const int MAX_PER_MILLE_STRENGTH = 1000; + + /** * The per mille strength of the bass boost effect. * * If the implementation does not support per mille accuracy for setting the strength, it is