From carl@stagecraft.cx  Sat Jun 26 10:23:46 2004
Return-Path: <carl@stagecraft.cx>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B147B16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Jun 2004 10:23:46 +0000 (GMT)
Received: from brain.stagecraft.cx (brain.stagecraft.cx [202.45.97.24])
	by mx1.FreeBSD.org (Postfix) with ESMTP id CF35443D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Jun 2004 10:23:45 +0000 (GMT)
	(envelope-from carl@stagecraft.cx)
Received: from bumper.stagecraft.cx (bumper.stagecraft.cx [172.30.0.5])
	by brain.stagecraft.cx (8.12.9/8.12.9) with ESMTP id i5QAMK5H053654
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Jun 2004 20:22:21 +1000 (EST)
	(envelope-from carl@stagecraft.cx)
Received: from bumper.stagecraft.cx (localhost [127.0.0.1])
	by bumper.stagecraft.cx (8.12.11/8.12.11) with ESMTP id i5QAMKSg021106
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 26 Jun 2004 20:22:20 +1000 (EST)
	(envelope-from carl@bumper.stagecraft.cx)
Received: (from carl@localhost)
	by bumper.stagecraft.cx (8.12.11/8.12.11/Submit) id i5QAMJ1p021105;
	Sat, 26 Jun 2004 20:22:19 +1000 (EST)
	(envelope-from carl)
Message-Id: <200406261022.i5QAMJ1p021105@bumper.stagecraft.cx>
Date: Sat, 26 Jun 2004 20:22:19 +1000 (EST)
From: Carl Makin <carl@stagecraft.cx>
Reply-To: Carl Makin <carl@stagecraft.cx>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] Add Pixelview PlayTV support to bktr driver.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         68362
>Category:       kern
>Synopsis:       [bktr] [patch] Add Pixelview PlayTV support to bktr driver.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 26 10:30:26 GMT 2004
>Closed-Date:    Sun Jan 02 04:49:11 GMT 2005
>Last-Modified:  Sun Jan 02 04:49:11 GMT 2005
>Originator:     Carl Makin
>Release:        FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD bumper.stagecraft.cx 4.10-STABLE FreeBSD 4.10-STABLE #16: Thu Jun 24 18:37:48 EST 2004 carl@bumper.stagecraft.cx:/usr/obj/usr/src/sys/BUMPER i386


	
>Description:

The below two simple patches add support for the Pixelview PlayTV Pak BT878 based
TV card.

Patch is valid for 4.9 and 4.10.
I don't have a current machine to test it on.

	
>How-To-Repeat:
	
>Fix:

cd /usr/src
patch < <file below>

--- sys/dev/bktr/bktr_card.c.orig       Wed Jun 18 02:55:08 2003
+++ sys/dev/bktr/bktr_card.c    Thu Jun 24 17:50:07 2004
@@ -355,6 +355,18 @@
           { 0x10000, 0, 0x10000, 0, 1 },       /* audio MUX values */
           0x10f00 },                           /* GPIO mask */
 
+        {  CARD_PIXELVIEW_PLAYTV_PAK,       /* the card id */
+           "PixelView PlayTV Pak",              /* the 'name' */
+            NULL,                               /* the tuner */
+            0,                                  /* the tuner i2c address */
+            0,                                  /* dbx is optional */
+            0,
+            0,
+            PFC8582_WADDR,                      /* EEProm type */
+            (u_char)(256 / EEPROMBLOCKSIZE),    /* 256 bytes */
+            { 0x20000, 0x80000, 0, 0xa8000, 1 },        /* audio MUX values */
+            0xAA0000 },                         /* GPIO mask */
+
 };
 
 struct bt848_card_sig bt848_card_signature[1]= {

--- sys/dev/bktr/bktr_card.h.orig       Sat Feb  8 13:04:57 2003
+++ sys/dev/bktr/bktr_card.h    Thu Jun 24 17:50:14 2004
@@ -77,7 +77,8 @@
 #define CARD_LEADTEK           15
 #define CARD_TERRATVPLUS       16
 #define CARD_IO_BCTV3          17
-#define Bt848_MAX_CARD         18
+#define CARD_PIXELVIEW_PLAYTV_PAK       18
+#define Bt848_MAX_CARD         19
 
 #define CARD_IO_GV             CARD_IO_BCTV2
 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->roger 
Responsible-Changed-By: arved 
Responsible-Changed-When: Fri Jul 23 13:21:09 GMT 2004 
Responsible-Changed-Why:  
Over to bktr maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68362 
Responsible-Changed-From-To: roger->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Nov 4 08:22:38 GMT 2004 
Responsible-Changed-Why:  
Assignee is currently away from doing FreeBSD work at the moment, so 
at his request, return this one to the pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68362 
State-Changed-From-To: open->closed 
State-Changed-By: julian 
State-Changed-When: Sun Jan 2 04:48:38 GMT 2005 
State-Changed-Why:  
Patch applied. 


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