Subject: kern/34996: bktr driver seems to be broken in NetBSD 3.1
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <zb@ispid.com.pl>
List: netbsd-bugs
Date: 11/05/2006 20:05:00
>Number:         34996
>Category:       kern
>Synopsis:       bktr driver seems to be broken in NetBSD 3.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 05 20:05:00 +0000 2006
>Originator:     Zbigniew Baniewski
>Release:        3.1
>Organization:
>Environment:
NetBSD NetBSD. 3.1 NetBSD 3.1 (DEBIAN) #0: Sun Nov  5 17:40:41 CET 2006  root@NetBSD.:/usr/src/sys/arch/i386/compile/DEBIAN i386

>Description:
I'm using AverMedia WebTV-Phone 98 card - there wasn't any problems with NetBSD 2.0/3.0/3.99 - but currently, under 3.1, any attempt to run f.e. xawtv is quitted with message:

This is xawtv-3.95, running on NetBSD/i386 (3.1)
no video grabber device available

xmradio "says":

Couldn't open rc file "/home/zb/.xmradiorc": No such file or directory
using application defaults.
wrong channels set. using default for weurope.
TVTUNER_SETTYPE failed in InitTuner(); Cannot allocate memory
failed to get radio mode: Cannot allocate memory
could not set audio to intern: Cannot allocate memory
failed to set new frequency: Cannot allocate memory
Can't control bass via /dev/mixer: Device not configured
Can't control treble via /dev/mixer: Device not configured
Naruszenie ochrony pami&#281;ci (core dumped)

The card itself seems to be properly recognized at boot-time:

bktr0 at pci0 dev 15 function 0
bktr0: interrupting at irq 7
bktr0: AVer Media TV/FM, Philips FR1216 PAL FM tuner.
radio0 at bktr0
Brooktree Bt878 Video Capture (Audio Section) (miscellaneous multimedia,
revision 0x02) at pci0 dev 15 function 1 not configured


I tried to run xawtv and xmradio using generic kernel (shipped on the installation CD), and with the one made by myself. As "ordinary user", and as root. There are /dev/bktr(*) and /dev/radio devices present.

I suppose, the only explanation is the driver-related problem. As I wrote: the card was properly functioning with the other NetBSD's version, and is still working without problems under Linux control.
>How-To-Repeat:
Just try to make use out of such card under the control of NetBSD 3.1, using f.e. xawtv utility. I was using ready-made binary of xawtv (and xmradio), from the binary set of packages for 3.0 provided by Manuel Bouyer (from the pkgsrc-2006Q3 branch).
>Fix: