[mythtv-users] bttv, alsa, cmipci

Mark Winder mark.winder4 at btinternet.com
Sat Nov 29 11:02:57 EST 2003


Greg,

I'm using almost exactly the same hardware as you and I've had one devil of
a job getting sound to work.
(Its taken weeks)
But it is now working. I use the btaudio driver (ie no hard audio link from
Brooktree card to the audio card.)

This is what I gt if I do lsmod:

Module                  Size  Used by    Not tainted
ide-cd                 35424   0 (autoclean)
cdrom                  33216   0 (autoclean) [ide-cd]
parport_pc             18788   1 (autoclean)
lp                      8836   0 (autoclean)
parport                36800   1 (autoclean) [parport_pc lp]
tvaudio                15676   0 (autoclean) (unused)
bttv                  112576   0 (autoclean)
cmpci                  35400   0 (autoclean) (unused)
tvmixer                 4848   0 (autoclean) (unused)
btaudio                12780   0 (autoclean) (unused)
snd-pcm-oss            44324   0 (unused)
snd-pcm                84768   0 [snd-pcm-oss]
snd-page-alloc          9748   0 [snd-pcm]
snd-timer              19812   0 [snd-pcm]
snd-mixer-oss          16208   0 (autoclean) [snd-pcm-oss]
snd                    46596   0 (autoclean) [snd-pcm-oss snd-pcm snd-timer
snd-mixer-oss]
msp3400                20076   1 (autoclean)
tuner                  12384   1 (autoclean)
video-buf              15344   0 (autoclean) [bttv]
btcx-risc               3592   0 (autoclean) [bttv]
v4l2-common             4096   0 (autoclean) [bttv]
i2c-algo-bit            8904   0 (autoclean) [bttv]
soundcore               6500   7 (autoclean) [bttv cmpci tvmixer btaudio
snd]
i2c-core               20964   0 (autoclean) [tvaudio bttv tvmixer msp3400
tuner i2c-algo-bit]
videodev                8288   3 (autoclean) [bttv]
iptable_filter          2444   0 (autoclean) (unused)
ip_tables              14648   1 [iptable_filter]
autofs4                11988   2 (autoclean)
8139too                18120   1
mii                     3992   0 [8139too]
serial                 55204   0 (autoclean)
ohci1394               19912   0 (unused)
ieee1394               48780   0 [ohci1394]
reiserfs              205840   1 (autoclean)
keybdev                 2912   0 (unused)
mousedev                5428   1
hid                    21924   0 (unused)
input                   5824   0 [keybdev mousedev hid]
usb-ohci               21320   0 (unused)
usbcore                78560   1 [hid usb-ohci]
ext3                   70112   3
jbd                    51508   3 [ext3]

This is what my modules.conf file looks like:
###########################################
path[toplevel]=/lib/modules/`uname -r`/updates
# default path
path[toplevel]=/lib/modules/`uname -r`

# lirc
alias char-major-61 lirc_i2c

alias char-major-89 i2c-dev
options i2c-core i2c_debug=1
options i2c-algo-bit bit_test=1

# ALSACONF  stuff
alias char-major-116 snd
alias sound-slot-0 snd-card-0
alias sound-slot-1 snd-card-1
alias sound-slot-2 snd-card-2

# OSS
alias char-major-14 soundcore

# CARD #1
alias snd-card-0 cmpci
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

options snd cards_limit=4 major=116

# configured TV card Hauppauge BT878
alias char-major-81   bttv
alias char-major-81-0 bttv
alias char-major-81-1 bttv
options bttv card=10 radio=1 pll=1
options msp3400 debug=0 once=1 simple=1

# options tvmixer
# alias sound-service-1-0 tvmixer

pre-install bttv modprobe -k "tuner";  modprobe -k "msp3400"; modprobe -k
"btaudio"; modprobe -k "tvmixer" ; modprobe -k "cmpci"
pre-install tuner modprobe -k "i2c-algo-bit"
post-install msp3400 modprobe -k snd-mixer-oss
options tvmixer devnr=1
options tuner debug=1 type=5
pre-remove bttv modprobe -r "cmpci"; modprobe -r "tvmixer"; modprobe -r
"tvaudio"; modprobe -r "btaudio"
post-remove bttv modprobe -r "msp3400"; modprobe -r "tuner"; modprobe -r
"i2c-algo-bit"; modprobe -r "videodev"
options i2c-algo-bit bit_test=1

pre-install btaudio modprobe snd-pcm-oss
# btaudio + alsa
alias snd-card-2 btaudio
alias snd-card-1 btaudio
alias sound-service-1-0 btaudio
alias sound-service-2-0 btaudio
# options btaudio analog=2 digital=1 mixer=2 doesn't work
# but dsp1=0

###
alias eth0 8139too
alias usb-controller usb-ohci
alias ieee1394-controller ohci1394
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null
2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null
2>&1 || :
###########################

I dont claim to understand most of this, but I've spend many weeks and tried
over 20 different combinations.
Its clear that alsa is not working completly in this set up, but removing
the alsa stuff does stop it working, so it is necessary.

In this setup, the output is /dev/dsp2
and the input is /dev/dsp I cant get the default ports to work.

You may neet to create /dev/dsp2 if you don't already have it, check  ls
/dev/dsp*

Well I hope this is is of some use to you, and I'm happy to send more infor
if I can be of help.
Does your set up change channels ? Wish I could get *that* working!!!

regards,

Mark Winder.
mark.winder4 at-sign btinternet.com



More information about the mythtv-users mailing list