From 3a2fb0344b44af5fecabb4b4a36c9f0001d628c1 Mon Sep 17 00:00:00 2001 From: Shraddha Basantwani Date: Tue, 22 Nov 2022 11:04:35 +0530 Subject: [PATCH] Audio AIDL : Add libeffects bass boost bundle uuid Bug: 258124419 Test: atest VtsHalBassBoostTargetTest Change-Id: I7048ee71e16a1e9c7ca6850a216b9f3ae62a0452 --- audio/aidl/default/audio_effects_config.xml | 5 ++++- audio/aidl/default/bassboost/BassBoostSw.cpp | 2 +- audio/aidl/default/include/effect-impl/EffectUUID.h | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/audio/aidl/default/audio_effects_config.xml b/audio/aidl/default/audio_effects_config.xml index f4ac8fece9..d22c349e55 100644 --- a/audio/aidl/default/audio_effects_config.xml +++ b/audio/aidl/default/audio_effects_config.xml @@ -61,7 +61,10 @@ --> - + + + + diff --git a/audio/aidl/default/bassboost/BassBoostSw.cpp b/audio/aidl/default/bassboost/BassBoostSw.cpp index 61976c8a90..8e4779dd01 100644 --- a/audio/aidl/default/bassboost/BassBoostSw.cpp +++ b/audio/aidl/default/bassboost/BassBoostSw.cpp @@ -66,7 +66,7 @@ const BassBoost::Capability BassBoostSw::kCapability = {.strengthSupported = kSt const Descriptor BassBoostSw::kDescriptor = { .common = {.id = {.type = kBassBoostTypeUUID, .uuid = kBassBoostSwImplUUID, - .proxy = std::nullopt}, + .proxy = kBassBoostProxyUUID}, .flags = {.type = Flags::Type::INSERT, .insert = Flags::Insert::FIRST, .volume = Flags::Volume::CTRL}, diff --git a/audio/aidl/default/include/effect-impl/EffectUUID.h b/audio/aidl/default/include/effect-impl/EffectUUID.h index 7709eabf78..d3c76669be 100644 --- a/audio/aidl/default/include/effect-impl/EffectUUID.h +++ b/audio/aidl/default/include/effect-impl/EffectUUID.h @@ -45,6 +45,18 @@ static const AudioUuid kBassBoostSwImplUUID = {static_cast(0xfa8181f2), 0x11ed, 0x9b6a, {0x02, 0x42, 0xac, 0x12, 0x00, 0x02}}; +// 8631f300-72e2-11df-b57e-0002a5d5c51b +static const AudioUuid kBassBoostBundleImplUUID = {static_cast(0x8631f300), + 0x72e2, + 0x11df, + 0xb57e, + {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; +// 14804144-a5ee-4d24-aa88-0002a5d5c51b +static const AudioUuid kBassBoostProxyUUID = {static_cast(0x14804144), + 0xa5ee, + 0x4d24, + 0xaa88, + {0x00, 0x02, 0xa5, 0xd5, 0xc5, 0x1b}}; // fa81862a-588b-11ed-9b6a-0242ac120002 static const AudioUuid kDownmixTypeUUID = {static_cast(0xfa81862a), 0x588b,