summaryrefslogtreecommitdiff
path: root/src/i830_tv.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-07-10 12:57:25 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-10 12:57:25 -0700
commit3c0f2bcc9965155fecab606edae68874427d3423 (patch)
treec0aef5b5ed233566c511d51f227ea8ffffa2d4ea /src/i830_tv.c
parente00d9435609bcff1afb71aa6638a6b42a64f5178 (diff)
Add VBIOS based TV connector detection
Now that the VBIOS code supports it, we can use the general features block to detect whether a TV connector is present on a given platform. Reviewed by Nanhai Zou.
Diffstat (limited to 'src/i830_tv.c')
-rw-r--r--src/i830_tv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i830_tv.c b/src/i830_tv.c
index cde929a7..651f77b3 100644
--- a/src/i830_tv.c
+++ b/src/i830_tv.c
@@ -1715,6 +1715,10 @@ i830_tv_init(ScrnInfoPtr pScrn)
(tv_dac_off & TVDAC_STATE_CHG_EN) != 0)
return;
+ i830_bios_get_tv(pScrn);
+ if (!pI830->tv_present) /* VBIOS claims no TV connector */
+ return;
+
output = xf86OutputCreate (pScrn, &i830_tv_output_funcs, "TV");
if (!output)