From 535e46c88825cc0e31ed451760e7cbc5cfb4c8a7 Mon Sep 17 00:00:00 2001 From: Harry de Boer Date: Mon, 26 Nov 2012 02:58:25 +0100 Subject: [PATCH 3/4] There is a possible crtc for TV-1 --- src/via_driver.c | 4 +++- src/via_outputs.c | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/via_driver.c b/src/via_driver.c index c499a4a..9728425 100644 --- a/src/via_driver.c +++ b/src/via_driver.c @@ -1542,8 +1542,10 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags) } } - if (!xf86InitialConfiguration(pScrn, TRUE)) + if (!xf86InitialConfiguration(pScrn, TRUE)) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "Initial configuration failed\n"); return FALSE; + } if (!pScrn->modes) { xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "No valid modes found\n"); diff --git a/src/via_outputs.c b/src/via_outputs.c index 75d312c..0620a12 100644 --- a/src/via_outputs.c +++ b/src/via_outputs.c @@ -466,6 +466,13 @@ via_tv_init(ScrnInfoPtr pScrn) output = xf86OutputCreate(pScrn, &via_tv_funcs, "TV-1"); pVia->FirstInit = TRUE; + + if (output) { + output->possible_crtcs = 0x1; + } else { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "via_tv_init: Failed to create output for TV-1.\n"); + } + pBIOSInfo->tv = output; /* Save now */ pBIOSInfo->TVSave(pScrn); -- 1.7.10.4