diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-01-03 23:03:18 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-01-03 23:03:18 +0000 |
commit | c08505deb4f69b726c70b2d80bc6cc1a8e43f06f (patch) | |
tree | 335d69511dfe5c0d321649116dfa2327b942ac82 | |
parent | 12cb390e9051a7f967d2f33903d4437abadab57a (diff) | |
parent | 6ab7f067c31adbf1300add2e3c1a949917589d7d (diff) | |
download | android_hardware_qcom_sdm710_display-c08505deb4f69b726c70b2d80bc6cc1a8e43f06f.tar.gz android_hardware_qcom_sdm710_display-c08505deb4f69b726c70b2d80bc6cc1a8e43f06f.tar.bz2 android_hardware_qcom_sdm710_display-c08505deb4f69b726c70b2d80bc6cc1a8e43f06f.zip |
Snap for 5208611 from 6ab7f067c31adbf1300add2e3c1a949917589d7d to pi-b4s4-release
Change-Id: I978e34b4fcce2e2fdc72f30a183319698b712065
-rw-r--r-- | sdm/libs/hwc2/hwc_display_primary.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp index b1eeecdf..6eaf11db 100644 --- a/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/sdm/libs/hwc2/hwc_display_primary.cpp @@ -73,6 +73,10 @@ void HWCDisplayPrimary::PMICInterface::Deinit() { DisplayError HWCDisplayPrimary::PMICInterface::Notify(bool secure_display_start) { std::string str_sd_start = secure_display_start ? std::to_string(1) : std::to_string(0); + if (fd_lcd_bias_ < 0 || fd_wled_ < 0) { + DLOGI("Ignore notify because fd_lcd_bias_ or fd_wled_ open failed"); + return kErrorNotSupported; + } ssize_t err = ::pwrite(fd_lcd_bias_, str_sd_start.c_str(), str_sd_start.length(), 0); if (err <= 0) { DLOGE("Write failed for lcd_bias, Error = %s", strerror(errno)); |