summaryrefslogtreecommitdiff
authorZhi Zhou <zhi.zhou@amlogic.com>2017-03-31 09:04:21 (GMT)
committer Zhi Zhou <zhi.zhou@amlogic.com>2017-03-31 09:05:18 (GMT)
commite348dd4d8dd30f7c2ec04f3dbf91a7dee6319bed (patch)
treecb950a833bd9295fd4f40dbefb8246054d6e6704
parentc5df7e74f1549e8fbed6621897457f2b626bbdff (diff)
downloadhwcomposer-e348dd4d8dd30f7c2ec04f3dbf91a7dee6319bed.zip
hwcomposer-e348dd4d8dd30f7c2ec04f3dbf91a7dee6319bed.tar.gz
hwcomposer-e348dd4d8dd30f7c2ec04f3dbf91a7dee6319bed.tar.bz2
PD#141942 fixed video axis check error
getSysfsStr will removed the \n and amsysfs_get_sysfs_str not do it . some value may always failed; Change-Id: I58ea6be3f6925f3a89c90f6a3437ad60ecaa3096
Diffstat
-rw-r--r--hwc2/common/base/HwcLayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc2/common/base/HwcLayer.cpp b/hwc2/common/base/HwcLayer.cpp
index 442a1a3..4d8bb5f 100644
--- a/hwc2/common/base/HwcLayer.cpp
+++ b/hwc2/common/base/HwcLayer.cpp
@@ -330,7 +330,7 @@ void HwcLayer::presentOverlay() {
mLastDisplayFrame.bottom = mDisplayFrame.bottom;
memset(mLastAxis, 0, sizeof(mLastAxis));
- if (amsysfs_get_sysfs_str(SYSFS_VIDEO_AXIS, mLastAxis, sizeof(mLastAxis)) == 0) {
+ if (Utils::getSysfsStr(SYSFS_VIDEO_AXIS, mLastAxis, sizeof(mLastAxis)) == 0) {
DTRACE("****last video axis is: %s", mLastAxis);
}