sdm: Add binder support to set QSync mode
Change-Id: I18c46235a4b5f79ea7636cf7ba1d00d37280e6b1
CRs-Fixed: 2197669
diff --git a/libqservice/IQService.h b/libqservice/IQService.h
index 5765b10..bbbaf3a 100644
--- a/libqservice/IQService.h
+++ b/libqservice/IQService.h
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2010 The Android Open Source Project
- * Copyright (C) 2012-2014, 2016-2017 The Linux Foundation. All rights reserved.
+ * Copyright (C) 2012-2014, 2016-2018 The Linux Foundation. All rights reserved.
*
* Not a Contribution, Apache license notifications and license are
* retained for attribution purposes only.
@@ -77,6 +77,7 @@
GET_HDR_CAPABILITIES = 35, // Get HDR capabilities for legacy HWC interface
SET_COLOR_MODE_BY_ID = 36, // Overrides the QDCM mode using the given mode ID
GET_COMPOSER_STATUS = 37, // Get composer init status-true if primary display init is done
+ SET_QSYNC_MODE = 38, // Set qsync mode. 0 - (none)disable qsync, 1 - continuous mode.
COMMAND_LIST_END = 400,
};
@@ -107,6 +108,12 @@
ENABLE_PARTIAL_UPDATE,
};
+ enum {
+ QSYNC_MODE_NONE,
+ QSYNC_MODE_CONTINUOUS,
+ QSYNC_MODE_ONESHOT, // Not supported
+ };
+
// Register a HWC client that can be notified
// This client is generic and is intended to get
// dispatches of all events calling into QService