From ef19c6a6589bb13e7563032c211dca2571a2f2a4 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 8 Jun 2012 10:31:46 +1000 Subject: [PATCH] drm/nouveau: dcb table quirk for fdo#50830 Signed-off-by: Ben Skeggs --- drivers/gpu/drm/nouveau/nouveau_bios.c | 12 ++++++++++++ 1 Datei geändert, 12 Zeilen hinzugefügt(+) diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c index c4878d7..a58fcd7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c @@ -6060,6 +6060,18 @@ apply_dcb_encoder_quirks(struct nouveau_device *ndev, int idx, u32 *conn, u32 *c } } + /* fdo#50830: connector indices for VGA and DVI-I are backwards */ + if (nv_match_device(ndev, 0x0421, 0x3842, 0xc793)) { + if (idx == 0 && *conn == 0x02000300) + *conn = 0x02011300; + else + if (idx == 1 && *conn == 0x04011310) + *conn = 0x04000310; + else + if (idx == 2 && *conn == 0x02011312) + *conn = 0x02000312; + } + return true; } -- 1.7.10.2