summaryrefslogtreecommitdiffstats
path: root/impl/SDM.h
diff options
context:
space:
mode:
authorSam Mortimer <sam@mortimer.me.uk>2018-01-12 21:28:33 -0800
committerSam Mortimer <sam@mortimer.me.uk>2018-02-04 20:20:58 +0000
commit3c78b9ed89ed44b9125b5726065fc9f9c2489c0d (patch)
tree793f6317c47c81d96944012298f831a9f008db20 /impl/SDM.h
parentcb059b60a85bc22bf2353dbdb1c1faf2dffdd915 (diff)
downloadhardware_lineage_livedisplay-3c78b9ed89ed44b9125b5726065fc9f9c2489c0d.tar.gz
hardware_lineage_livedisplay-3c78b9ed89ed44b9125b5726065fc9f9c2489c0d.tar.bz2
hardware_lineage_livedisplay-3c78b9ed89ed44b9125b5726065fc9f9c2489c0d.zip
livedisplay: Support sysfs only display modesstaging/lineage-15.1lineage-15.1
*) If SDM does not provide any display modes and yet sysfs options are available, allow them to be used and create a "standard" mode that is all sysfs based modes turned off. *) Known deficiency: the sysfs modes are still not accessible if SDM is not available. This will be addressed later (possibly by moving sysfs mode handling to lineagehw). Change-Id: If80134362db0d359aaacb6b1916dc99e41af1892
Diffstat (limited to 'impl/SDM.h')
-rw-r--r--impl/SDM.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/impl/SDM.h b/impl/SDM.h
index f0d3ebe..f6db039 100644
--- a/impl/SDM.h
+++ b/impl/SDM.h
@@ -13,6 +13,9 @@
#define FOSS_OFF "foss:off"
#define FOSS_STATUS "foss:status"
+// For use when only sysfs modes are available
+#define STANDARD_NODE_ID 600
+
#define SRGB_NODE "/sys/class/graphics/fb0/srgb"
#define SRGB_NODE_ID 601
@@ -99,6 +102,7 @@ class SDM : public LiveDisplayBackend {
status_t setModeState(sp<DisplayMode> mode, bool state);
status_t saveInitialDisplayMode();
uint32_t getNumDisplayModes();
+ uint32_t getNumSDMDisplayModes();
int64_t mHandle;
bool mCachedFOSSStatus;