Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2006 19:28:56 GMT
From:      Dan Angelescu <mrhsaacdoh@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   i386/94369: Patch to support Leadtek WinFast Tv2000 XP bktr card
Message-ID:  <200603111928.k2BJSuAk019910@www.freebsd.org>
Resent-Message-ID: <200603111930.k2BJUKih025228@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         94369
>Category:       i386
>Synopsis:       Patch to support Leadtek WinFast Tv2000 XP bktr card
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-i386
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 11 19:30:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dan Angelescu
>Release:        FreeBSD-6.0 Release
>Organization:
>Environment:
FreeBSD node1.gsch.ro 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sat Mar 11 06:05                                   :45 UTC 2006  
>Description:
I have bought a  Leadtek WinFast Tv2000 XP tv card and i have noticed that wasn't support in FreeBSD for that card.The card has other audio mux values than WinFast TV2000 and another tuner .The tuner is an Philips variant based on TSBH1 control.
Since the tuner type was not written on it i have named tuner FI1216.
I have made a patch to be supported both the card and the tuner.
The patch applies clean from 20 january 2006 on FreeBSD-6.0.
The new card is known as the 23 type and the tuner as 16 type.
Attention This card has sound connected to line1 with an internal cable as the audio cable of cdrom.
>How-To-Repeat:
Install a Leadtek WinFast Tv2000 XP tv card and using the Winfast TV2000 bktr driver it won't work.
>Fix:
To correct the problem i have used the following patch

--- /sys/dev/bktr/bktr_card.c.orig      Sat Jan 14 14:18:34 2006
+++ /sys/dev/bktr/bktr_card.c   Tue Jan 17 23:49:55 2006
@@ -415,6 +415,18 @@
           0,                                   /* EEProm size */
           { 0x01, 0x04, 0x01, 0x03, 1 },       /* audio MUX values */
           0x00ffffff },
+
+       {  CARD_LEADTEK_WINFAST_2000_XP,        /* the card id */
+           "Leadtek Winfast 2000 XP",           /* the 'name' */
+          NULL,                                /* the tuner */
+          0,                                   /* the tuner i2c address */
+          0,                                   /* dbx is optional */
+          0,
+          0,
+           0,                                   /* EEProm unknown */
+          0,                                   /* size unknown */
+          { 0x122000, 0x1000, 0x620000, 0x0000, 1 },   /* audio MUX values */
+          0xb33000 },                          /* GPIO mask */
 };

 struct bt848_card_sig bt848_card_signature[1]= {
--- /sys/dev/bktr/bktr_card.h.orig      Sat Jan 14 14:18:34 2006
+++ /sys/dev/bktr/bktr_card.h   Mon Jan 16 17:26:14 2006
@@ -82,7 +82,8 @@
 #define CARD_PIXELVIEW_PLAYTV_PAK      20
 #define CARD_TERRATVALUE       21
 #define        CARD_PIXELVIEW_PLAYTV_PRO_REV_4C        22
-#define Bt848_MAX_CARD         23
+#define CARD_LEADTEK_WINFAST_2000_XP    23
+#define Bt848_MAX_CARD         24

 #define CARD_IO_GV             CARD_IO_BCTV2

--- /sys/dev/bktr/bktr_tuner.c.orig     Sat Jan 14 14:18:34 2006
+++ /sys/dev/bktr/bktr_tuner.c  Tue Jan 17 23:51:08 2006
@@ -299,6 +299,16 @@
             0x00 },
           { 0x00, 0x00 },                      /* band-switch crosspoints */
           { 0xa0, 0x90, 0x30, 0x8e } },        /* the band-switch values */
+
+         /* PHILIPS FI1216 */
+         { "PHILIPS_FI1216",                    /* the 'name' */
+          TTYPE_PAL,                           /* input type */
+          { TSBH1_FCONTROL,                    /* control byte for Tuner PLL */
+            TSBH1_FCONTROL,
+            TSBH1_FCONTROL,
+            0x00 },
+          { 0x00, 0x00 },                      /* band-switch crosspoints */
+          { 0x01, 0x02, 0x04, 0x00 } },        /* the band-switch values */
 };


--- /sys/dev/bktr/bktr_tuner.h.orig     Sat Jan 14 14:18:34 2006
+++ /sys/dev/bktr/bktr_tuner.h  Mon Jan 16 17:32:08 2006
@@ -61,7 +61,8 @@
 #define ALPS_TSBH1             13
 #define TUNER_MT2032           14
 #define        LG_TPI8PSB12P_PAL       15
-#define Bt848_MAX_TUNER                16
+#define PHILIPS_FI1216          16
+#define Bt848_MAX_TUNER                17

 /* experimental code for Automatic Frequency Control */
 #define TUNER_AFC

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603111928.k2BJSuAk019910>