Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

kernel: 提交

kernel


Commit MetaInfo

修订版47aca0df8ca1f3e189be6656f2c0596c2359e7e5 (tree)
时间2019-03-27 17:51:46
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

drm: panel-orientation-quirks: Add quirk for Microtech e-tab Pro

The tablet uses a portrait screen rotated 90 degrees (ugly).
Add a quirk to fix it.

Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>

更改概述

差异

--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -80,6 +80,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
8080 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
8181 };
8282
83+static const struct drm_dmi_panel_orientation_data etabpro_2018 = {
84+ .width = 1200,
85+ .height = 1920,
86+ .orientation = DRM_MODE_PANEL_ORIENTATION_BOTTOM_UP,
87+};
88+
8389 static const struct dmi_system_id orientation_data[] = {
8490 { /* Acer One 10 (S1003) */
8591 .matches = {
@@ -154,6 +160,12 @@ static const struct dmi_system_id orientation_data[] = {
154160 DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "LTH17"),
155161 },
156162 .driver_data = (void *)&lcd800x1280_rightside_up,
163+ }, { /* Microtech e-tab Pro */
164+ .matches = {
165+ DMI_MATCH(DMI_SYS_VENDOR, "Microtech"),
166+ DMI_MATCH(DMI_PRODUCT_NAME, "e-tab Pro")
167+ },
168+ .driver_data = (void *)&etabpro_2018,
157169 },
158170 {}
159171 };
Show on old repository browser