From danny@ricin.com  Fri Nov 25 22:11:13 2005
Return-Path: <danny@ricin.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 23F4916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Nov 2005 22:11:13 +0000 (GMT)
	(envelope-from danny@ricin.com)
Received: from smtpq1.groni1.gr.home.nl (smtpq1.groni1.gr.home.nl [213.51.130.200])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 82CB443D5D
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 25 Nov 2005 22:11:12 +0000 (GMT)
	(envelope-from danny@ricin.com)
Received: from [213.51.130.190] (port=48869 helo=smtp1.groni1.gr.home.nl)
	by smtpq1.groni1.gr.home.nl with esmtp (Exim 4.30)
	id 1Eflmg-0002Ak-Ra
	for FreeBSD-gnats-submit@freebsd.org; Fri, 25 Nov 2005 23:11:10 +0100
Received: from cp464173-a.dbsch1.nb.home.nl ([84.27.215.228]:52619)
	by smtp1.groni1.gr.home.nl with smtp (Exim 4.30)
	id 1Eflmd-0007nb-QH
	for FreeBSD-gnats-submit@freebsd.org; Fri, 25 Nov 2005 23:11:07 +0100
Received: by cp464173-a.dbsch1.nb.home.nl (sSMTP sendmail emulation); Fri, 25 Nov 2005 23:09:00 +0000
Message-Id: <20051125221112.82CB443D5D@mx1.FreeBSD.org>
Date: Fri, 25 Nov 2005 23:09:00 +0000
From: "Danny Pansters" <danny@ricin.com>
Reply-To: Danny Pansters <danny@ricin.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: bktr: going from 5.3 -> 6.0 winTV card not properly recognised
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         89553
>Category:       kern
>Synopsis:       [bktr] [patch] going from 5.3 -> 6.0 winTV card not properly recognised
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 25 22:20:01 GMT 2005
>Closed-Date:    
>Last-Modified:  Tue Dec 13 02:00:15 GMT 2005
>Originator:     Danny Pansters
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD desktop.homenet 6.0-STABLE FreeBSD 6.0-STABLE #6: Sat Nov 5 19:10:14 UTC 2005 danny@desktop.homenet:/usr/obj/usr/src/sys/DESKTOP i386

Hardware: Hauppauge WinTV, year 2000
Tuner: WinTV PAL-B/G-I 44354 Rev A242
Capture: Conexant Bt878KHF

	
>Description:
On 6.0: bktr0: Warning - card vendor 0x0272 (model 0x13eb) unknown.
On 5.3: bktr0: Hauppauge Model 44354 A242

Obviously the vendor must be 0x0070, Hauppauge. On 6.0 when compiled into the
kernel with the correct overrides, the driver shows the right model but TV apps 
still fail.
>How-To-Repeat:
Test with said hardware on said FreeBSD versions.
>Fix:
Workaround:

--- bktr_card.c.diff begins here ---
--- bktr_card.c.orig	Sat Nov  5 18:51:41 2005
+++ bktr_card.c	Sat Nov  5 18:56:46 2005
@@ -593,6 +593,7 @@
 #define PCI_VENDOR_IODATA	0x10fc
 #define PCI_VENDOR_PINNACLE_ALT	0xBD11	/* They got their own ID backwards? */
 #define PCI_VENDOR_PINNACLE_NEW	0x11BD
+#define PCI_VENDOR_HAUPPAUGE_ALT	0x0272
 
 #define MODEL_IODATA_GV_BCTV3_PCI	0x4020
 
@@ -685,7 +686,8 @@
 		    goto checkTuner;
 		}
 
-		if (subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE) {
+		if ((subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE)
+		 || (subsystem_vendor_id == PCI_VENDOR_HAUPPAUGE_ALT)) {
 		    bktr->card = cards[ (card = CARD_HAUPPAUGE) ];
 		    bktr->card.eepromAddr = eeprom_i2c_address;
 		    bktr->card.eepromSize = (u_char)(256 / EEPROMBLOCKSIZE);
--- bktr_card.c.diff ends here ---


>Release-Note:
>Audit-Trail:

From: Danny Pansters <danny@ricin.com>
To: bug-followup@freebsd.org,
 danny@ricin.com
Cc:  
Subject: Re: kern/89553: [bktr] [patch] going from 5.3 -> 6.0 winTV card not properly recognised
Date: Tue, 13 Dec 2005 02:53:57 +0000

 Can someone (TM) please have a look at this or just check it in. At the very 
 least it prevents certain specific hardware breakage and it can't possibly 
 break anything else.
 
 
 
 
 
>Unformatted:
