Subject: TV-Card TerraTValue - no sound
To: None <port-i386@netbsd.org>
From: Timo Schmidt <netbsd@xomit.de>
List: port-i386
Date: 01/28/2005 17:48:10
Hi,

I've recently added the following TV card to my i386:

| # scanpci -v
| pci bus 0x0000 cardnum 0x0b function 0x00: vendor 0x109e device 0x036e
|  Brooktree Corporation Bt878 Video Capture
|  CardVendor 0x153b card 0x1118 (TERRATEC Electronic GmbH, Card unknown)
|   STATUS    0x0280  COMMAND 0x0006
|   CLASS     0x04 0x00 0x00  REVISION 0x02
|   BIST      0x00  HEADER 0x80  LATENCY 0x20  CACHE 0x00
|   BASE0     0xe3000008  addr 0xe3000000  MEM PREFETCHABLE
|   MAX_LAT   0x28  MIN_GNT 0x10  INT_PIN 0x01 INT_LINE 0x0a
|
| pci bus 0x0000 cardnum 0x0b function 0x01: vendor 0x109e device 0x0878
|  Brooktree Corporation Bt878 Audio Capture
|  CardVendor 0x153b card 0x1118 (TERRATEC Electronic GmbH, Card unknown)
|   STATUS    0x0280  COMMAND 0x0006
|   CLASS     0x04 0x80 0x00  REVISION 0x02
|   BIST      0x00  HEADER 0x80  LATENCY 0x20  CACHE 0x00
|   BASE0     0xe2800008  addr 0xe2800000 MEM PREFETCHABLE
|   MAX_LAT   0xff  MIN_GNT 0x04 INT_PIN 0x01  INT_LINE 0x0a

The card is labled as "Terratec TValue PCI" and comes with a
Brooktree 878 chip and a Philips PAL tuner.

By adding

| bktr* at pci? dev ? function ?

to my kernel config, the card is recognized as 

| bktr0: TerraTVplus, Temic NTSC tuner

So I added

| BKTR_OVERRIDE_TUNER=5

to my kernel config and now the card is recognized as

| bktr0: TerraTVplus, Philips PAL tuner

With both configurations, the following line appears in
dmesg:

| Brooktree Bt878 Video Capture (Audio Section) (miscellaneous multimedia, revision 0x02) at pci0 dev 11 function 1 not configured

Both, fxtv and xawtv (compiled from current pkgsrc) comes up
with correct video but no sound.

System in question is:

| # uname -mprs
| NetBSD 2.0 i386 i386

Did I miss something or is NetBSD not fully supporting
this TV card currently?

Regards,

  -Timo



At least, searching the web brought up this:
FreeBSD bug kern/53383:
(<URL:http://lists.freebsd.org/pipermail/freebsd-bugs/2003-June/001304.html>)

Maybe someone with the respective skills can port the patch
to NetBSD or maybe a patch is already out there and I just
haven't found it.