Revert "sdm: update current color mode"
This reverts commit d91a659fce4d079327bd42f797d26407122efdec.
For HW request to avoid the device reboot after calibration.
Bug: 142224271
Test: Boot test and color mode change test
Change-Id: I7bb7dd0dfab9b9361899bef5dbba675fa1db7e36
diff --git a/sdm/libs/core/display_base.cpp b/sdm/libs/core/display_base.cpp
index f18df67..adf9fa1 100644
--- a/sdm/libs/core/display_base.cpp
+++ b/sdm/libs/core/display_base.cpp
@@ -958,13 +958,7 @@
}
DisplayError DisplayBase::SetColorModeById(int32_t color_mode_id) {
- for (auto it : color_mode_map_) {
- if (it.second->id == color_mode_id) {
- return SetColorMode(it.first);
- }
- }
-
- return kErrorNotSupported;
+ return color_mgr_->ColorMgrSetMode(color_mode_id);
}
DisplayError DisplayBase::SetColorModeInternal(const std::string &color_mode) {