h/q/d: Read minimum width and height values of the panel ROI
Read minimum width and height restrictions on ROI of a panel
through sysfs node.
Change-Id: I0e4c35cdcaee06e77955725565cfbed2f0fd91e9
diff --git a/libqdutils/mdp_version.cpp b/libqdutils/mdp_version.cpp
index 485d04b..16505ba 100644
--- a/libqdutils/mdp_version.cpp
+++ b/libqdutils/mdp_version.cpp
@@ -176,7 +176,7 @@
mPanelInfo.mPartialUpdateEnable? "Enabled" :
"Disabled");
}
- if(!strncmp(tokens[0], "xalign", strlen("xalign"))) {
+ if(!strncmp(tokens[0], "xstart", strlen("xstart"))) {
mPanelInfo.mLeftAlign = atoi(tokens[1]);
ALOGI("Left Align: %d", mPanelInfo.mLeftAlign);
}
@@ -192,6 +192,14 @@
mPanelInfo.mHeightAlign = atoi(tokens[1]);
ALOGI("Height Align: %d", mPanelInfo.mHeightAlign);
}
+ if(!strncmp(tokens[0], "min_w", strlen("min_w"))) {
+ mPanelInfo.mMinROIWidth = atoi(tokens[1]);
+ ALOGI("Min ROI Width: %d", mPanelInfo.mMinROIWidth);
+ }
+ if(!strncmp(tokens[0], "min_h", strlen("min_h"))) {
+ mPanelInfo.mMinROIHeight = atoi(tokens[1]);
+ ALOGI("Min ROI Height: %d", mPanelInfo.mMinROIHeight);
+ }
}
}
fclose(panelInfoNodeFP);