sdm: Add support to set n-bit brightness by qservice
Set panel brightness only support 8-bit brightness in current code.
But Ltm apk need to set n-bit brightness to in review interface.
So the patch updated this set brightness api in qservice.
Change-Id: Iad8f5bc4010c177f7ef8ccc8fdf26aad6209250e
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp
index 85cdda6..dde2a21 100644
--- a/composer/hwc_display_builtin.cpp
+++ b/composer/hwc_display_builtin.cpp
@@ -943,6 +943,15 @@
return HWC2::Error::None;
}
+HWC2::Error HWCDisplayBuiltIn::GetPanelMaxBrightness(uint32_t *max_brightness_level) {
+ DisplayError ret = display_intf_->GetPanelMaxBrightness(max_brightness_level);
+ if (ret != kErrorNone) {
+ return HWC2::Error::NoResources;
+ }
+
+ return HWC2::Error::None;
+}
+
HWC2::Error HWCDisplayBuiltIn::SetBLScale(uint32_t level) {
DisplayError ret = display_intf_->SetBLScale(level);
if (ret != kErrorNone) {