[PlanetCCRMA] Alsa config problems

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Tue Jan 30 14:21:01 2007


On Mon, 2007-01-29 at 09:17 -0500, Ira wrote:
> Sorry, my other alias is down & bouncing, so if you could please redirect your reply...
> 
> On Mon, 2007-01-01 at 16:28 -0800, Fernando Lopez-Lezcano wrote:
> > On Fri, 2006-12-22 at 09:21 -0500, Ira wrote:
> > > I have a usb audio device which is recognized under alsa.
> > > The system however seems to default to another sound server or card
> > > though, and I can only get sound to play with the alsa player. What else
> > > should I do?
> > 
> > On which version of fedora?
> > Looking at /proc/asound/cards you can list what's there:
> >   cat /proc/asound/cards
> 
>  0 [Live           ]: EMU10K1 - SBLive! Value [CT4830]
>                       SBLive! Value [CT4830] (rev.7, serial:0x80261102)
> at 0x2080, irq 5
>  1 [I82801BAICH2   ]: ICH - Intel 82801BA-ICH2
>                       Intel 82801BA-ICH2 with AD1881A at 0x1400, irq 5
>  ***** (this is what I want to be the default output device)2
> [DG1            ]: USB-Audio - MD-PORT DG1
>                       XITEL MD-PORT DG1 at usb-0000:00:1f.2-2, full
> speed
>  3 [Fastlane       ]: USB-Audio - Fastlane
>                       MOTU Fastlane at usb-0000:00:1f.4-2, full speed
> (<----- usb midi controller)
> 
> 
> > 
> > The first one should be the "default" card. 
> > What are the contents of /etc/modprob.conf?
> 
> alias eth0 3c59x
> alias snd-card-0 snd-emu10k1
> options snd-card-0 index=0
> options snd-emu10k1 index=0
> remove snd-emu10k1 { /usr/sbin/alsactl store 0 >/dev/null 2>&1
> || : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1
> alias snd-card-1 snd-intel8x0
> options snd-card-1 index=1
> options snd-intel8x0 index=1
> remove snd-intel8x0 { /usr/sbin/alsactl store 1 >/dev/null 2>&1
> || : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
> alias snd-card-2 snd-mpu401
> options snd-card-2 index=2
> options snd-mpu401 index=2
> remove snd-mpu401 { /usr/sbin/alsactl store 2 >/dev/null 2>&1
> || : ; }; /sbin/modprobe -r --ignore-remove snd-mpu401
> 
> > 
> > > My modules are listed here-
> > > http://cwa2cairo.homeip.net/~cwa2/calimodules.txt
> > > 
> > > Also, btw, where can I get "lsusb" and "lspci" for FC5/CCRMA?
> > 
> > lspci is in the pciutils package, lsusb in the usbutils package. They
> > both live in /sbin which may not be in your default non-root path. 

You could try changing the "index" parameters in the options lines
in /etc/modprobe.conf. Those determine the order in which the modules
are loaded. The entries would read as:

-------
alias eth0 3c59x
alias snd-card-1 snd-intel8x0
options snd-card-1 index=0
options snd-intel8x0 index=0
remove snd-intel8x0 { /usr/sbin/alsactl store 1 >/dev/null 2>&1
|| : ; }; /sbin/modprobe -r --ignore-remove snd-intel8x0
alias snd-card-0 snd-emu10k1
options snd-card-0 index=1
options snd-emu10k1 index=1
remove snd-emu10k1 { /usr/sbin/alsactl store 0 >/dev/null 2>&1
|| : ; }; /sbin/modprobe -r --ignore-remove snd-emu10k1
alias snd-card-2 snd-mpu401
options snd-card-2 index=2
options snd-mpu401 index=2
remove snd-mpu401 { /usr/sbin/alsactl store 2 >/dev/null 2>&1
|| : ; }; /sbin/modprobe -r --ignore-remove snd-mpu401
--------

(the remove lines are being wrapped by the email client, that and the
following line is just one). 

After changing modprobe.conf do a "/sbin/depmod -a" and restart alsa. If
you have /etc/rc.d/init.d/alsasound you can use it (but you should
logout and do it from a text console, otherwise all audio apps will
quit), or just reboot. 

-- Fernando