[mythtv-users] No sound for analog channels? If you have ALSA try this.....

Charles Hymes chymes at hymerfania.com
Wed Feb 14 01:06:16 UTC 2007


If you cannot get any sound for analog channels,and you have ALSA,  this may
help.
Many ( all? ) of the wikis and howtos on setting up the DviCO Fusion cards
told me to use /dev/dsp0 as the audio device for the v4l card.
while this may be correct for some setups, it was wrong for me on several
dimensions.
 
First, the dsp device  that is specified for mythtv is not always going to
be dsp0, it must be determined.
Second, it uses oss or the oss emulation of alsa.
Third, I have ALSA, and the use of /dev/dsp[x] is a lower performance choice
then ALSA:hw.[x] anyway.
 
So, If you have ALSA, you want to specify the ALSA device directly,and skip
the OSS emulation.
My other big problem was that mythsetup would not let me specify the ASLA
device using the GUI. I had to use a mysql client to modify the database
directly. Even when I went back to check using mythsetup, it ignored my
settings and showed the wrong capture device.
 
That's the important part, if you want some more detail, the following is
what worked for me. 
 
You will need to install a mysql client, and be able to establish a
connection to the mythtv database. You can use the text client, but you will
need to figure out the sql statement for yourself. The database is
"mythconverg" table is "capturecard"  the field is "audiodevice".
 
0) Install the ALSA kernel modules, and configure your mythtv user's
.asoundrc. Yes, do this even for Fedora core 5. This was a real ordeal for
me, as I had grief with udev, PAM, pulseaudio, spidif, etc. But once ALSA is
set up,
 
1) type 'arecord -l ' at the shell
    This will show you the ASLA capture sources that are available. In my
case it displays:
**** List of CAPTURE Hardware Devices ****
card 0: nForce2 [NVidia nForce2], device 0: Intel ICH [NVidia nForce2]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: nForce2 [NVidia nForce2], device 1: Intel ICH - MIC ADC [NVidia
nForce2 - MIC ADC]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: CX8811 [Conexant CX8811], device 0: CX88 Digital [CX88 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

2) Choose the device. For me this is the CX8811 built into to my DviCo
Fusion. So for my setup, this is ALSA:hw.1 (There are no subdevices on the
CX8811)
 
3) Stop mythbackend
 
4) Use your mysql client to modify database "mythconverg" table
"capturecard" field "audiodevice". The row you will want will have a
cardtype of "V4L" and a videodevice of "/dev/video0". For me this was the
second row. Set the value to the ALSA device you figured out in step 1.
 
5) Restart mythbackend
 
 
Good luck!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070213/03a29ebb/attachment.htm 


More information about the mythtv-users mailing list