[Intel-gfx] [PATCH 1/3] append user's option for hdtv broadcast mode

Ma Ling ling.ma at intel.com
Mon Feb 23 08:06:54 CET 2009


define broadcast option for each output. hdtv_1_use_broadcast and hdtv_2_use_broadcast is mapped to 
HDTV output 1 and HDTV output 2 respectively.

---
 src/i810_reg.h    |    2 ++
 src/i830.h        |    4 ++++
 src/i830_driver.c |   15 +++++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/src/i810_reg.h b/src/i810_reg.h
index e2ffba1..e52419d 100644
--- a/src/i810_reg.h
+++ b/src/i810_reg.h
@@ -1293,6 +1293,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 #define SDVOC_GANG_MODE				(1 << 16)
 #define SDVO_ENCODING_SDVO			(0x0 << 10)
 #define SDVO_ENCODING_HDMI			(0x2 << 10)
+/* Color Range Select */
+#define SDVO_COLOR_RANGE			(1 << 8)
 /** Requird for HDMI operation */
 #define SDVO_NULL_PACKETS_DURING_VSYNC		(1 << 9)
 #define SDVO_BORDER_ENABLE			(1 << 7)
diff --git a/src/i830.h b/src/i830.h
index bfd78dc..2df4d41 100644
--- a/src/i830.h
+++ b/src/i830.h
@@ -732,6 +732,10 @@ typedef struct _I830Rec {
    /* User option to ignore SDVO detect bit status, in case some outputs
       not detected on SDVO, so let driver try its best. */
    Bool force_sdvo_detect;
+   /*User option to set broadcast RGB mode in TMDS-1 encoding*/
+   Bool hdtv_1_use_broadcast;
+   /*User option to set broadcast RGB mode in TMDS-2 encoding*/
+   Bool hdtv_2_use_broadcast;
     /** User option to print acceleration fallback info to the server log. */
    Bool fallback_debug;
 } I830Rec;
diff --git a/src/i830_driver.c b/src/i830_driver.c
index b8d8d37..438bd41 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -319,6 +319,8 @@ typedef enum {
 #endif
    OPTION_FORCE_SDVO_DETECT,
    OPTION_PREFER_OVERLAY,
+   OPTION_HDTV_1_USEBROADCAST,
+   OPTION_HDTV_2_USEBROADCAST,
 } I830Opts;
 
 static OptionInfoRec I830Options[] = {
@@ -345,6 +347,8 @@ static OptionInfoRec I830Options[] = {
 #endif
    {OPTION_FORCE_SDVO_DETECT, "ForceSDVODetect", OPTV_BOOLEAN,  {0},	FALSE},
    {OPTION_PREFER_OVERLAY, "XvPreferOverlay", OPTV_BOOLEAN, {0}, FALSE},
+   {OPTION_HDTV_1_USEBROADCAST, "HDTV_1_UseBroadCast", OPTV_BOOLEAN,  {0},	FALSE},
+   {OPTION_HDTV_2_USEBROADCAST, "HDTV_2_UseBroadCast", OPTV_BOOLEAN,  {0},	FALSE},
    {-1,			NULL,		OPTV_NONE,	{0},	FALSE}
 };
 /* *INDENT-ON* */
@@ -1562,6 +1566,17 @@ I830GetEarlyOptions(ScrnInfoPtr pScrn)
 	pI830->force_sdvo_detect = FALSE;
     }
 
+    if (xf86ReturnOptValBool(pI830->Options, OPTION_HDTV_1_USEBROADCAST, FALSE)) {
+	pI830->hdtv_1_use_broadcast = TRUE;
+    } else {
+	pI830->hdtv_1_use_broadcast = FALSE;
+    }
+    if (xf86ReturnOptValBool(pI830->Options, OPTION_HDTV_2_USEBROADCAST, FALSE)) {
+	pI830->hdtv_2_use_broadcast = TRUE;
+    } else {
+	pI830->hdtv_2_use_broadcast = FALSE;
+    }
+
     return TRUE;
 }
 
-- 
1.5.4.4






More information about the Intel-gfx mailing list