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

Commit 6276497b authored by Raghu Bankapur's avatar Raghu Bankapur Committed by Gerrit - the friendly Code Review server
Browse files

Setting power policy flag to true for Android T in Audio HAL



Enabling and Disabling AUDIO and MICROPHONE
components during LPM

Change-Id: I956e826a930bcd0298beee3f64dfd1f6644358eb
Signed-off-by: default avatarRaghu Bankapur <quic_rbankapu@quicinc.com>
parent a2267aa8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,7 @@ AUDIO_FEATURE_ENABLED_SILENT_BOOT := true
endif
AUDIO_FEATURE_ENABLED_FM_TUNER_EXT := true
AUDIO_FEATURE_ENABLED_ICC := true
ifneq ( ,$(filter S 12, $(PLATFORM_VERSION)))
ifneq ( ,$(filter S 12 T 13, $(PLATFORM_VERSION)))
AUDIO_FEATURE_ENABLED_POWER_POLICY := true
endif
ifneq ( ,$(filter msmnile_gvmq msmnile_au, $(TARGET_BOARD_PLATFORM)$(TARGET_BOARD_SUFFIX)))
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ extern "C" {

    int launchPowerPolicyClient(power_policy_init_config_t init_config) {
        ALOGD("%s: power policy launcher called", __func__);
        ABinderProcess_setThreadPoolMaxThreadCount(0);
        ABinderProcess_setThreadPoolMaxThreadCount(1);
        std::shared_ptr<PowerPolicyClient> powerPolicyClient =
                ::ndk::SharedRefBase::make<PowerPolicyClient>(init_config);
        ALOGD("%s:Instantiating power policy client from launcher", __func__);