[Openchrome-devel] [PATCH] Probe TV encoder on all but the P4M900, unless we know the board has a TV encoder.

Xavier Bachelot xavier at bachelot.org
Wed May 22 01:18:24 PDT 2013


Probing the TV encoder on the P4M900 chipset family when there is no such
encoder is not safe. It is safe however on all other platforms.
---
 src/via_outputs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/via_outputs.c b/src/via_outputs.c
index 7e0c5e4..1271fc8 100644
--- a/src/via_outputs.c
+++ b/src/via_outputs.c
@@ -885,7 +885,7 @@ ViaOutputsDetect(ScrnInfoPtr pScrn)
      * disables the panel on P4M900
      */
     /* TV encoder */
-    if (pVia->ActiveDevice & VIA_DEVICE_TV)
+    if ((pVia->Chipset != VIA_P4M900) || (pVia->ActiveDevice & VIA_DEVICE_TV))
         via_tv_init(pScrn);
      if (pVia->ActiveDevice & VIA_DEVICE_DFP) {
-- 
1.8.1.4



More information about the Openchrome-devel mailing list