[mythtv-users] ALSA No Longer Sees Sound Card

Mark Knecht markknecht at gmail.com
Sun Mar 9 18:57:02 UTC 2008


On Sun, Mar 9, 2008 at 11:15 AM, Michael T. Dean
<mtdean at thirdcontact.com> wrote:
> On 03/09/2008 08:59 AM, Roger Heflin wrote:
>  > I had to rmmod the capture device before starting X so it would find the correct
>  > device, I also had to change myth to using /dev/dsp1 (I don't understand why
>  > /dev/dsp is not there), after that you can put the module for the capture device
>  > back.
>  >
>  > It does appear that the newer alsa are not quite smart enough to figure out that
>  > a capture device with only inputs should not be the default device,
>
>  ALSA doesn't really choose the default device (other than to say that
>  whatever card has number 0 is the default).  The kernel provides
>  numbers, so in effect, it chooses the default.
>
No, not exactly. The kernel only chooses if the Alsa configuration
files do not define them. It's under user control and udev is the
wrong place for a user to try to do this stuff. In Gentoo I have a
file to do this but if a user's distro doesn't have that sort of
individual control then it all ends up in modules.conf in the end.

See below for an example of making an on-board sound chip the default
and a high RME card the secondary card.

Hope this helps,
Mark

##
## 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-intel8x0
options snd-intel8x0 index=0
alias snd-card-1 snd-hdsp
options snd-hdsp index=1
##  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=2
mark at lightning ~ $


More information about the mythtv-users mailing list