diff options
author | Prabhanjan Kandula <pkandula@codeaurora.org> | 2015-03-30 22:35:09 +0530 |
---|---|---|
committer | Prabhanjan Kandula <pkandula@codeaurora.org> | 2015-05-15 22:38:33 +0530 |
commit | db274fa42ad251b0ddc8466f37e40997e7feedaf (patch) | |
tree | ab968decc57d9d001d10ba57b4fed96f6d20f252 /libqservice | |
parent | 2d34a3bbfae870dbb76c840c79038c17af6083d1 (diff) | |
download | display-db274fa42ad251b0ddc8466f37e40997e7feedaf.tar.gz |
hwc : Set bw limit on mdss when camera is on.
-Expose qservice API to get notified when Camera is on or off.
-Set bandwidth hint to mdss based on camera launch status by
writing into fb0/mdp/bw_mode_bitmap.
-Implement camera service death notifier to recover display bw.
Change-Id: I532f44281b5d7de1d638f1cef250114a3cc952ae
Diffstat (limited to 'libqservice')
-rw-r--r-- | libqservice/IQService.h | 1 | ||||
-rw-r--r-- | libqservice/QServiceUtils.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libqservice/IQService.h b/libqservice/IQService.h index 50545781..0f69d40e 100644 --- a/libqservice/IQService.h +++ b/libqservice/IQService.h @@ -69,6 +69,7 @@ public: GET_CONFIG_COUNT = 27, //Get the number of supported display configs GET_DISPLAY_ATTRIBUTES_FOR_CONFIG = 28, //Get attr for specified config SET_DISPLAY_MODE = 29, // Set display mode to command or video mode + SET_CAMERA_STATUS = 30, // To notify display when camera is on and off COMMAND_LIST_END = 400, }; diff --git a/libqservice/QServiceUtils.h b/libqservice/QServiceUtils.h index 71277e8b..62ee0d11 100644 --- a/libqservice/QServiceUtils.h +++ b/libqservice/QServiceUtils.h @@ -91,4 +91,8 @@ inline android::status_t setBufferMirrorMode(uint32_t enable) { return sendSingleParam(qService::IQService::BUFFER_MIRRORMODE, enable); } +inline android::status_t setCameraLaunchStatus(uint32_t on) { + return sendSingleParam(qService::IQService::SET_CAMERA_STATUS, on); +} + #endif /* end of include guard: QSERVICEUTILS_H */ |