[PATCH] drm/nouveau: Add Lenovo P70 to apply_dcb_encoder_quirks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The Lenono P70's HDMI connector is listed twice, both as DP and as
DVI connector. Ignore the DVI entry, making all ports show up as
DP ports, like on the non-broken P50 model.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
 drivers/gpu/drm/nouveau/nouveau_bios.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
index 23ffe85..ef2e6fd 100644
--- a/drivers/gpu/drm/nouveau/nouveau_bios.c
+++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
@@ -1746,6 +1746,17 @@ apply_dcb_encoder_quirks(struct drm_device *dev, int idx, u32 *conn, u32 *conf)
 			*conn = 0x02000312;
 	}
 
+	/*
+	 * Lenovo P70: HMDI connector listed as both DP and DVI,
+	 * ignore the DVI entry.
+	 */
+	if (nv_match_device(dev, 0x13f9, 0x17aa, 0x222d)) {
+		if (idx == 7) {
+			*conn = 0x0000000f;
+			*conf = 0x00000000;
+		}
+	}
+
 	return true;
 }
 
-- 
2.9.3

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux