[mythtv-users] BT848,BT878,PVR-350 msp3400.o audio/sound problem.

Patrick.Debois at sos.be Patrick.Debois at sos.be
Thu Oct 16 09:10:14 EDT 2003


This is a posting i've done to the ivtv-devel mailinglist. As mythtv seems
to be one of the most closely related projects, i'm posting it here too.
Hopefully someone has a similar setup/solution.
------------------------------

Hi,

i'm trying to do the following setup:
-bt848 Hauppauge card
-bt878 Hauppauge card
-pvr-350 card

The purpose is tv recording simultanously on the 3 cards.
My current problem is that either the audio works ok on the bt848,bt878 either on the pvr-350. Video is not a problem. The difference seems to be in using the msp3400.o module (either the kernel one, either the ivtv specific one).

I'm running this on a P-4 3.2 Hyperthreading machine using the stock redhat 9.0 kernel 2.4.20

***********************
******BT848+BT878 *****
***********************
Sound:
------
Setup A)
BT848 does not have a sound device so you must use an external cable to a sound card. The sound card i'm using is an es1371
BT878 using the btaudio driver (therefore no external cable is used)

There was an issue of dsp1 and dsp but i solved it using
#options btaudio debug=2 dsp1=1 dsp2=2 mixer=1

so using
modprobe btaudio
modprobe es1371

i got /dev/dsp, /dev/dsp1

For the record using btaudio with mencoder requires to set the audiorate
setting in the tv-options of mencoder.

Setup B)
Both using an external cable. For this to work i needed the alsa drivers. This is what you will see in the modules.conf

this created /dev/dsp,/dev/dsp1



For the record first the tuner of the BT848 was not initialised correctly because it could not detect the correct type (unknow card).
using
options bttv card=2,10 gbuffers=12
i forced the type of tuner

Video:
-------
-modprobe bttv (this seems to load msp3400.o of the kernel 2.4.20)
-this seems to create the /dev/video0, /dev/video1 (bt848,bt878)

Using mencoder recording both audio and video works ok.
This using either sound setup A or setup B

***********************
******PVR-350 *********
***********************
-Using a fresh start of the machine
-goto the ivtv compile directory
-insmod ./msp3400.o
-modprobe ivtv

./test_ioctl -d /dev/video0 -p 4
./test_ioctl -d /dev/video0 -u 0xff
./test_ioctl -d /dev/video0 -f width=720,height=576
./test_ioctl -d /dev/video0 -r tuner=0,freq=4490
cat /dev/video0 > /tmp/a.mpg

And voila, audio and video working ok

******************************
******BT848+BT878+PVR350 *****
******************************
init alsa sound (sound level init,giving me /dev/dsp1,/dev/dsp2)
load msp3400.o from ivtv
modprobe bttv
modprobe ivtv

this gets:
-PVR-350 audio,video working clearly
-BT878 audio working/distorted loud, video ok
-BT848 audio not working

The msp3400.o module seems to keep trying (filling the logs) but eventually exists with a message similar to 'no sound folks'

So the stock kernel msp3400.o works for the bt848,bt878
and the ivtv works for bt878,pvr-350.

Also due to the same name only one module can be loaded at the same time.

Ok, so any clues for solving this?

Thanks for your help,
Patrick

----------------------------------------------------------------------------
###### BEGIN MODULES CONF #########
#MULTIMEDIA
#
alias char-major-81 videodev
alias char-major-81-0 bttv
options bttv card=2,10 gbuffers=12
#options btaudio debug=2 dsp1=1 dsp2=2 mixer=1
#pre-install btaudio modprobe es1371

alias char-major-81-1 ivtv
options ivtv debug=0 mpg_buffers=30
options tuner type=5
#options msp3400 once=1 simple=1 debug=1
#add below ivtv msp3400 saa7115 tuner
add below ivtv saa7115 tuner

alias char-major-116 snd
alias char-major-14 soundcore
options snd snd_major=116 snd_card_limit=3 snd_device_mode=0660
alias sound-slot-0 snd-intel8x0
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
alias sound-slot-1 snd-card-1
alias sound-service-1-0 snd-mixer-oss
alias sound-service-1-1 snd-seq-oss
alias sound-service-1-3 snd-pcm-oss
alias sound-service-1-8 snd-seq-oss
alias sound-service-1-12 snd-pcm-oss
alias sound-slot-2 snd-card-2
alias sound-service-2-0 snd-mixer-oss
alias sound-service-2-1 snd-seq-oss
alias sound-service-2-3 snd-pcm-oss
alias sound-service-2-8 snd-seq-oss
alias sound-service-2-12 snd-pcm-oss
alias snd-card-0 snd-ens1371
alias snd-card-1 snd-ens1371
alias snd-card-2 snd-intel8x0
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 || :
###### END MODULES CONF #########



More information about the mythtv-users mailing list