diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-04 02:44:22 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-04 02:44:22 +0000 |
commit | bbe2c8ac44e4ca04208e7d40ee6aaf6f923f65f3 (patch) | |
tree | d537bff8b3c5064d45ca9950bbf0e9648e1fc659 | |
parent | a1e8009ed0adc2e16ddf5780bffa2204e435385f (diff) | |
parent | 0ddcaa5e364473aa9189188bf0d7dc32b7156d67 (diff) | |
download | gs101-bbe2c8ac44e4ca04208e7d40ee6aaf6f923f65f3.tar.gz |
Snap for 10897809 from 0ddcaa5e364473aa9189188bf0d7dc32b7156d67 to 24Q1-release
Change-Id: I4a24a9ae4f75737905032fc1a648eb2940a09770
-rw-r--r-- | libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp b/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp index e5574df..ae624ac 100644 --- a/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp +++ b/libhwc2.1/libmaindisplay/ExynosPrimaryDisplayModule.cpp @@ -976,7 +976,9 @@ uint32_t ExynosPrimaryDisplayModule::getAtcLuxMapIndex(std::vector<atc_lux_map> int32_t ExynosPrimaryDisplayModule::setAtcStrength(uint32_t strength) { mAtcStrength.value.store(strength); if (mAtcStrength.value.is_dirty()) { - if (writeIntToFile(mAtcStrength.node, mAtcStrength.value.get()) != NO_ERROR) return -EPERM; + if (writeIntToFile(mAtcStrength.node.c_str(), mAtcStrength.value.get()) != NO_ERROR) { + return -EPERM; + } mAtcStrength.value.clear_dirty(); } return NO_ERROR; @@ -985,7 +987,7 @@ int32_t ExynosPrimaryDisplayModule::setAtcStrength(uint32_t strength) { int32_t ExynosPrimaryDisplayModule::setAtcAmbientLight(uint32_t ambient_light) { mAtcAmbientLight.value.store(ambient_light); if (mAtcAmbientLight.value.is_dirty()) { - if (writeIntToFile(mAtcAmbientLight.node, mAtcAmbientLight.value.get()) != NO_ERROR) + if (writeIntToFile(mAtcAmbientLight.node.c_str(), mAtcAmbientLight.value.get()) != NO_ERROR) return -EPERM; mAtcAmbientLight.value.clear_dirty(); } @@ -1004,7 +1006,7 @@ int32_t ExynosPrimaryDisplayModule::setAtcMode(std::string mode_name) { for (auto it = kAtcSubSetting.begin(); it != kAtcSubSetting.end(); it++) { mAtcSubSetting[it->first.c_str()].value.store(mode.sub_setting[it->first.c_str()]); if (mAtcSubSetting[it->first.c_str()].value.is_dirty()) { - if (writeIntToFile(mAtcSubSetting[it->first.c_str()].node, + if (writeIntToFile(mAtcSubSetting[it->first.c_str()].node.c_str(), mAtcSubSetting[it->first.c_str()].value.get()) != NO_ERROR) return -EPERM; mAtcSubSetting[it->first.c_str()].value.clear_dirty(); @@ -1166,7 +1168,7 @@ int32_t ExynosPrimaryDisplayModule::setAtcStDimming(uint32_t value) { int32_t ExynosPrimaryDisplayModule::setAtcEnable(bool enable) { mAtcEnable.value.store(enable); if (mAtcEnable.value.is_dirty()) { - if (writeIntToFile(mAtcEnable.node, enable) != NO_ERROR) return -EPERM; + if (writeIntToFile(mAtcEnable.node.c_str(), enable) != NO_ERROR) return -EPERM; mAtcEnable.value.clear_dirty(); } return NO_ERROR; |