From mrhsaacdoh@yahoo.com  Sun Jan  9 19:18:42 2005
Return-Path: <mrhsaacdoh@yahoo.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0623416A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Jan 2005 19:18:42 +0000 (GMT)
Received: from web12203.mail.yahoo.com (web12203.mail.yahoo.com [216.136.173.87])
	by mx1.FreeBSD.org (Postfix) with SMTP id B395E43D45
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  9 Jan 2005 19:18:41 +0000 (GMT)
	(envelope-from mrhsaacdoh@yahoo.com)
Received: (qmail 51929 invoked by uid 60001); 9 Jan 2005 19:18:41 -0000
Received: from [82.77.204.2] by web12203.mail.yahoo.com via HTTP; Sun, 09 Jan 2005 11:18:41 PST
Message-Id: <20050109191841.51927.qmail@web12203.mail.yahoo.com>
Date: Sun, 9 Jan 2005 11:18:41 -0800 (PST)
From: Dan Angelescu <mrhsaacdoh@yahoo.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [Patch] Support for PixelView PlayTv Pro Rev 4.C bktr Card

>Number:         76002
>Category:       kern
>Synopsis:       [bktr] [patch] for PixelView PlayTv Pro Rev 4.C bktr card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 09 19:20:21 GMT 2005
>Closed-Date:    Sun Nov 13 13:28:36 GMT 2005
>Last-Modified:  Sun Nov 13 13:28:36 GMT 2005
>Originator:     Dan Angelescu <mrhsaacdoh@yahoo.com>
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD AdiLaura.sonix.ro 5.3-STABLE FreeBSD
5.3-STABLE #0:Thu Jan 6 16:37:36 UTC 2005
root@AdiLaura.sonix.ro:/usr/src/sys/i386/compile/MyComputer
i386

 $FreeBSD: src/sys/dev/bktr/bktr_card.c,v 1.24.2.1
2004/12/31 08:33:52 julian Exp $
$FreeBSD: src/sys/dev/bktr/bktr_card.h,v 1.7.2.1
2004/12/31 08:33:52 julian Exp $
$FreeBSD: src/sys/dev/bktr/bktr_tuner.c,v  1.13.2.1
2004/12/31 08:33:52 julian Exp $ 
 $FreeBSD: src/sys/dev/bktr/bktr_tuner.h,v 1.1.28.1
2004/12/31 08:33:52 julian Exp $   

>Description:
 I own a PixelView PlayTv Pro REV 4.C bktr card that
it is not supported by kernel.I have tried to make
card to work and the result it is a unified patch who
aplies clean for FreeBSD 5.3-STABLE after 1 january
2005 .After aplying the patch the card it is
recognized as type 20 and the tuner as type  15 and of
course it works.<precise description of the problem
(multiple lines)>
>How-To-Repeat:
>Fix:
To be supported i have modified bktr_card.c to add the
 card caracteristics ,the bktr_card.h to define the
new card ,the bktr_tuner.c to add the tuner
caracteristics and bktr_tuner.h to  define  the LG 
TPI8PSB12P Pal tuner used by this card.
        
--- /sys/dev/bktr/bktr_card.c.orig	Fri Dec 31 08:33:52 2004
+++ /sys/dev/bktr/bktr_card.c	Fri Jan 14 23:15:13 2005
@@ -380,6 +380,18 @@
 	   { 0x02, 0x01, 0x00, 0x0a, 1 },	/* audio MUX values */
 	   0x03000F },				/* GPIO mask */
 
+	{  CARD_PIXELVIEW_PLAYTV_PRO_REV_4C,    /* the card id */
+          "PixelView PlayTV Pro REV-4C ",       /* the 'name' */
+           NULL,                                /* the tuner */
+           0,                                   /* the tuner i2c address */
+           0,                                   /* dbx is optional */
+           0,
+           0,
+           0,                                   /* EEProm type */
+           0,                                   /* EEProm size */
+           { 0x01, 0x04, 0x01, 0x03, 1 },       /* audio MUX values */
+           0x00ffffff },                        /* GPIO mask */
+	
 };
 
 struct bt848_card_sig bt848_card_signature[1]= {
--- /sys/dev/bktr/bktr_card.h.orig	Fri Dec 31 08:33:52 2004
+++ /sys/dev/bktr/bktr_card.h	Fri Jan 14 23:15:13 2005
@@ -79,7 +79,8 @@
 #define	CARD_IO_BCTV3		17
 #define	CARD_AOPEN_VA1000	18
 #define CARD_PINNACLE_PCTV_RAVE	19
-#define Bt848_MAX_CARD		20
+#define CARD_PIXELVIEW_PLAYTV_PRO_REV_4C 20
+#define Bt848_MAX_CARD		21
 
 #define CARD_IO_GV		CARD_IO_BCTV2
 
--- /sys/dev/bktr/bktr_tuner.c.orig	Fri Dec 31 08:33:52 2004
+++ /sys/dev/bktr/bktr_tuner.c	Fri Jan 14 23:15:13 2005
@@ -291,6 +291,16 @@
 	     0x00 },
 	   { 0x00, 0x00 },			/* band-switch crosspoints */
 	   { 0xa0, 0x90, 0x30, 0x00 } },	/* the band-switch values */
+
+	 /* LG TPI8PSB12P PAL */
+        { "LG TPI8PSB12P PAL",                  /* the 'name' */
+           TTYPE_PAL,                           /* input type */
+           { TSA552x_SCONTROL,                  /* control byte for Tuner PLL */
+             TSA552x_SCONTROL,
+             TSA552x_SCONTROL,
+             0x00 },
+           { 0x00, 0x00 },                      /* band-switch crosspoints */
+           { 0xa0, 0x90, 0x30, 0x8e } }         /* the band-switch values */
 };
 
 
--- /sys/dev/bktr/bktr_tuner.h.orig	Fri Dec 31 08:33:52 2004
+++ /sys/dev/bktr/bktr_tuner.h	Fri Jan 14 23:15:13 2005
@@ -60,7 +60,8 @@
 #define ALPS_TSCH5		12
 #define ALPS_TSBH1		13
 #define TUNER_MT2032		14
-#define Bt848_MAX_TUNER		15
+#define LG_TPI8PSB12P_PAL       15
+#define Bt848_MAX_TUNER		16
 
 /* experimental code for Automatic Frequency Control */ 
 #define TUNER_AFC

Attention the patch works only for revision 4C of card
and maybe for revision 8C !
There are a lot of revisions
for PixelView PlayTv Pro cards and there are not
compatible one to each other. 

Hope it helps !
All the best !
__________________________________ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jan 11 04:23:55 GMT 2005 
Responsible-Changed-Why:  
Try to rescue this one from the 'pending' category. 

To the submitter: it looks like your mailer wrapped lines at somewhere 
around 40 characters, so I doubt the patch is useable as-is.  This is 
probably also why it got lost in GNATS.  If the patch is indeed 
mangled, you'll need to try to submit it in a followup message to 
this one, with a less confused mailer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76002 

Adding to audit trail on 1/17/2005: the original, mangled, patch
has now been replaced by one submitted to linimon via private email.
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Sun Nov 13 13:28:16 GMT 2005 
State-Changed-Why:  
Committed. Thank you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=53383 
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Sun Nov 13 13:28:16 GMT 2005 
State-Changed-Why:  
Committed. Thank you. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76002 
>Unformatted:
