Mailing List Archive

The definitive btaudio thread (was: RE: Leadtek winfast 2000 XP Can I get sound from bttv directly?)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There seems to be enough questions about btaudio that I believe it
would be better to consolidate them all. For those that don't know,
btaudio is a module that allows you to obtain the audio portion of a
program directly from the tuner card without using the loop cable
from the audio out to the audio in of a sound card. That means you
can load up a system (assuming you have the CPU power) with tuner
cards and not have to match each to a sound card to capture the
audio.

If you have btaudio _working_ and actually use it to capture with
MythTV, please post the output of "dmesg |grep bttv" and your
modules.conf.

I'd like to consolidate the responses into the HOWTO. Please include
as much information about the card as you can, (there are a lot of
different WinTV models, so be specific about the model number) and
include whether you get btaudio on the digital or analog dsp that
gets loaded.

Please note that simply being able to load the btaudio module is no
guarantee that it's going to work. I posted a message over in the
v4l mailing list, and Gerd Knorr stated that pretty much any card
will let you load the driver, but that doesn't actually mean that
it's going to do anything.


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPn69J/c1NpCTlP0JEQLVrQCgxCmrD3lZQ28ewFBv+vLB8cNP5QAAoPPE
jk6rbQH8LzFaMWF67W6ZBE3j
=DBoK
-----END PGP SIGNATURE-----
Re: The definitive btaudio thread [ In reply to ]
>>>>> On Mon, 24 Mar 2003 02:09:11 -0600, "Robert Kulagowski" <rkulagowski@thrupoint.net> said:

r> If you have btaudio _working_ and actually use it to capture with
r> MythTV, please post the output of "dmesg |grep bttv" and your
r> modules.conf.


WinTV Radio (dbx-FM) model 401
- btaudio digital works with 32000 Hz sample rate

------------------------------------------------------------------------
/etc/modules.conf (I don't think these are all required but I haven't
bothered to minimize things):

alias char-major-89 i2c-dev
alias char-major-81 bttv
options bttv fieldnr=1
alias char-major-61 lirc_i2c
alias sound-slot-1 btaudio
alias sound-service-1-0 btaudio
alias sound-slot-2 bttv
alias sound-service-2-0 tvmixer
pre-install bttv modprobe tvmixer
pre-install tvmixer modprobe tvaudio
options tvmixer devnr=2
options btaudio dsp1=1 dsp2=2 mixer=1

------------------------------------------------------------------------
bttv module output:

bttv: driver version 0.7.104 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is PCI device 10de:01e0 (nVidia Corporation)
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 01:09.0, irq: 11, latency: 32, mmio: 0xdc000000
bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
bttv0: using: BT878(Hauppauge (bt878)) [card=10,autodetected]
bttv0: Hauppauge/Voodoo msp34xx: reset line init [5]
i2c-core.o: adapter bt848 #0 registered as adapter 0.
bttv0: Hauppauge eeprom: model=44372, tuner=Philips FM1236 (2), radio=yes
bttv0: using tuner=2
bttv0: i2c: checking for MSP34xx @ 0x80... found
i2c-core.o: driver i2c msp3400 driver registered.
msp34xx: init: chip=MSP3445G-B8 +nicam +simple +radio
msp3410: daemon started
i2c-core.o: client [MSP3445G-B8] registered to adapter [bt848 #0](pos. 0).
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
i2c-core.o: driver i2c TV tuner driver registered.
tuner: probing bt848 #0 i2c adapter [id=0x10005]
tuner: chip found @ 0xc2
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles))
i2c-core.o: client [Philips NTSC (FI1236,FM1236 and ] registered to adapter [bt848 #0](pos. 1).
bttv0: PLL: 28636363 => 35468950 .. ok
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0

------------------------------------------------------------------------
btaudio module output:

btaudio: driver version 0.7 loaded [digital+analog]
btaudio: Bt878 (rev 17) at 01:09.1, irq: 11, latency: 32, mmio: 0xdc001000
btaudio: using card config "default"
btaudio: registered device dsp1 [digital]
btaudio: registered device dsp2 [analog]
btaudio: registered device mixer1

--
Gregorio Gervasio, Jr.
gtgj@pacbell.net
Re: The definitive btaudio thread [ In reply to ]
Here's my output for a Hauppauge WinTV-radio. I use the digital audio capture device,
but I have no reason to believe the analog isn't working.

-Joe C.



btaudio: driver version 0.7 loaded [digital+analog]
btaudio: Bt878 (rev 17) at 00:0a.1, irq: 12, latency: 10, mmio: 0xea000000
btaudio: using card config "default"
btaudio: registered device dsp1 [digital]
btaudio: registered device dsp2 [analog]
btaudio: registered device mixer1
bttv: driver version 0.7.96 loaded
bttv: Host bridge is Acer Laboratories Inc. [ALi] M1647 Northbridge [MAGiK 1 / MobileMAGiK 1]
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 00:0a.0, irq: 12, latency: 10, mmio: 0xea800000
bttv0: detected: Hauppauge WinTV [card=10], PCI subsystem ID is 0070:13eb
bttv0: using: BT878(Hauppauge (bt878)) [card=10,autodetected]
bttv0: using tuner=2
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: registered device radio0
Re: The definitive btaudio thread [ In reply to ]
Gregorio Gervasio Jr. wrote
> WinTV Radio (dbx-FM) model 401
> - btaudio digital works with 32000 Hz sample rate
>
> ------------------------------------------------------------------------
> /etc/modules.conf (I don't think these are all required but I haven't
> bothered to minimize things):
>
> alias char-major-89 i2c-dev
> alias char-major-81 bttv
> options bttv fieldnr=1
> alias char-major-61 lirc_i2c
> alias sound-slot-1 btaudio
> alias sound-service-1-0 btaudio
> alias sound-slot-2 bttv
> alias sound-service-2-0 tvmixer
> pre-install bttv modprobe tvmixer
> pre-install tvmixer modprobe tvaudio
> options tvmixer devnr=2
> options btaudio dsp1=1 dsp2=2 mixer=1
>

I'm using the same card (Happauge WinTV-dbx model 401) and just got
it working with btaudio.

I used most of the above config. I skipped the "options bttv" line
and the "options btaudio" line. My btaudio devices come up as dsp2
(digital) and dsp3 (analog) using mixer1. I haven't tried the analog
dsp3, yet, but under setup, I configured my Capture Card to use
/dev/dsp2 for the audio device. I was previously using the audio
loop thru line-in, so audio was still going thru that until I
restarted the backend (making it re-read the settings from the
database, I assume).

When I started this, I wasn't sure what settings to make for mixer1,
but after experimenting, I found that nothing I did would make the
audio NOT work thru /dev/dsp2... :)

I find that the audio is a little quieter now, since it's not being
amplified by the audio card, but is probably now being recorded at
true line level.

I'm wondering, though, since my primary sound card is /dev/dsp, if
I might need to change the aliases above for the sound-service and
sound-slot settings. I had all the relevant modules already loaded,
so I didn't test if those values help them automatically load when
the devices are accessed the first time.

-Chris
RE: Re: The definitive btaudio thread [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Pinnacle PCTV Pro.

_Doesn't_ work. Gerd Knorr, bttv programmer, can't get his to work
either, so it's a pretty definite "no". The Pinnacle, although it
does have a MSP34xx chip on it, apparently doesn't have the PCB
traces connecting the MSP and the BT chips.

The only "it works" report right now is for the WinTV Radio model
401.

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPoDa9vc1NpCTlP0JEQLhFgCgxONYCEOtqB/xCL2IZj4zovmJ09cAoJo/
iyhJ34ZVIJAF1/xKSTwfP9j1
=bRJa
-----END PGP SIGNATURE-----
Re: The definitive btaudio thread [ In reply to ]
Robert Kulagowski wrote:

> If you have btaudio _working_ and actually use it to capture with
> MythTV, please post the output of "dmesg |grep bttv" and your
> modules.conf.

Alright, I fixed my /dev/dsp mixup. I needed to have the alsa oss
modules loading before btaudio. So simple! :P

Anyway, I've got an ATI TV Wonder (non VE!) and here's stuff:
First, /etc/modules.conf:

### This file is automatically generated by modules-update
#
# Please do not edit this file directly. If you want to change or add
# anything please take a look at the files in /etc/modules.d and read
# the manpage for modules-update.
#
### modules-update: start processing /etc/modules.d/aliases
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off # Unix
# alias net-pf-2 off # IPv4
# alias net-pf-3 off # Amateur Radio AX.25
# alias net-pf-4 off # IPX
# alias net-pf-5 off # DDP / appletalk
# alias net-pf-6 off # Amateur Radio NET/ROM
# alias net-pf-9 off # X.25
# alias net-pf-10 off # IPv6
# alias net-pf-11 off # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off # Acorn Econet

alias char-major-10-175 agpgart
alias char-major-10-200 tun
alias char-major-81 bttv
alias char-major-108 ppp_generic
alias /dev/ppp ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-14 ppp_synctty
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate

# Crypto modules (see http://www.kerneli.org/)
alias loop-xfer-gen-0 loop_gen
alias loop-xfer-3 loop_fish2
alias cipher-4 blowfish
alias cipher-6 idea
alias cipher-7 serp6f
alias cipher-8 mars6
alias cipher-11 rc62
alias cipher-15 dfc2
alias cipher-16 rijndael
alias cipher-17 rc5

# Support for i2c and lm_sensors
alias char-major-89 i2c-dev


### modules-update: end processing /etc/modules.d/aliases

### modules-update: start processing /etc/modules.d/alsa
# Alsa 0.9.X kernel modules' configuration file.
# $Header:
/home/cvsroot/gentoo-x86/media-sound/alsa-driver/files/alsa-modules.conf-rc,v
1.1 2002/12/21 06:31:52 agenkin Exp $

# ALSA portion
alias char-major-116 snd
# OSS/Free portion
alias char-major-14 soundcore

##
## IMPORTANT:
## You need to customise this section for your specific sound card(s)
## and then run `update-modules' command.
## Read alsa-driver's INSTALL file in /usr/share/doc for more info.
##
## ALSA portion
alias snd-card-0 snd-emu10k1
## alias snd-card-1 snd-ens1371
## OSS/Free portion
## alias sound-slot-0 snd-card-0
## alias sound-slot-1 snd-card-1
##

# OSS/Free portion - card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
## OSS/Free portion - card #2
## alias sound-service-1-0 snd-mixer-oss
## alias sound-service-1-3 snd-pcm-oss
## alias sound-service-1-12 snd-pcm-oss

alias /dev/mixer snd-mixer-oss
alias /dev/dsp snd-pcm-oss
alias /dev/midi snd-seq-oss

# Set this to the correct number of cards.
options snd cards_limit=1

### modules-update: end processing /etc/modules.d/alsa

### modules-update: start processing /etc/modules.d/i386
alias parport_lowlevel parport_pc
alias char-major-10-144 nvram
alias binfmt-0064 binfmt_aout
alias char-major-10-135 rtc

### modules-update: end processing /etc/modules.d/i386

--

and my dmesg:

bttv: driver version 0.7.96 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is VIA Technologies, Inc. VT8363/8365 [KT133/KM133]
bttv: Host bridge is VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 00:0d.0, irq: 10, latency: 32, mmio: 0xdf000000
bttv0: detected: ATI TV Wonder [card=63], PCI subsystem ID is 1002:0001
bttv0: using: BT878(ATI TV-Wonder) [card=63,autodetected]
bttv0: using tuner=17
bttv0: i2c: checking for MSP34xx @ 0x80... found
bttv0: i2c attach [client=MSP3445G-B8,ok]
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c attach [client=Philips NTSC_M (MK2),ok]
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 ... ok
bttv0: PLL: switching off

btaudio: driver version 0.7 loaded [digital+analog]
btaudio: Bt878 (rev 17) at 00:0d.1, irq: 10, latency: 32, mmio: 0xdf001000
btaudio: using card config "default"
btaudio: registered device dsp1 [digital]
btaudio: registered device dsp2 [analog]
btaudio: registered device mixer1

--

and for good measure, it'd be important to note that I needed to load
the bttv module like so:
bttv tuner=17

Autodetection didn't work too well. :)

Graeme
RE: Re: The definitive btaudio thread [ In reply to ]
It also works on the ATI TV Wonder PCI (not VE). That is my current
setup.

On Tue, 2003-03-25 at 17:40, Robert Kulagowski wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Pinnacle PCTV Pro.
>
> _Doesn't_ work. Gerd Knorr, bttv programmer, can't get his to work
> either, so it's a pretty definite "no". The Pinnacle, although it
> does have a MSP34xx chip on it, apparently doesn't have the PCB
> traces connecting the MSP and the BT chips.
>
> The only "it works" report right now is for the WinTV Radio model
> 401.
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
>
> iQA/AwUBPoDa9vc1NpCTlP0JEQLhFgCgxONYCEOtqB/xCL2IZj4zovmJ09cAoJo/
> iyhJ34ZVIJAF1/xKSTwfP9j1
> =bRJa
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@snowman.net
> http://lists.snowman.net/cgi-bin/mailman/listinfo/mythtv-users
--
Chris <cisip@sprintmail.com>
RE: Re: The definitive btaudio thread [ In reply to ]
> The only "it works" report right now is for the WinTV Radio model
> 401.

And some reasonably confident reports of what *doesn't* work.

I would be interested to hear reports on whether the Matrox G400-tv does sound over the PCI bus. This could well be a very interesting choice for setups trying to minimise the number of cards in the box.

Ed
RE: Re: The definitive btaudio thread [ In reply to ]
I have an Avermedia AVerTV Studio, and it works badly (so I don't use it):
Digital DSP - no output.
Analog DSP - output, but has a whiney noise to it that *almost* goes away
at 32 KHz.

I would say a no-go, but I'm willing to try any sugesstions here.

-Thor Johnson