[linux-audio-user] Multiple sound interfaces, ALSA order detection

Lee Revell rlrevell at joe-job.com
Fri Sep 8 17:45:21 EDT 2006


On Fri, 2006-09-08 at 23:35 +0200, Jerome Tuncer wrote:
> Thanks guys!
> 
> Juuso, I think that's the kind of workaround I needed.
> 
> There are still things I don't really understand with ALSA naming as Lee 
> mentions:
> 
> Let's take XMMS Alsa output plugin for example. It just asks for a 
> device and the list displays exactly:
> 
> Périphérique PCM par défaut (default)
> MAudio Delta 66: ICE1712 multi (hw:0,0)
> Intel ICH5: Intel ICH5 (hw:1,0)
> Intel ICH5: Intel ICH5 - IEC1958 (hw:1,4)
> 

ALSA has no good device enumeration API and the device naming is
completely undocumented so many applications don't have a good device
list.

> I tried what you said Lee about just providing a name to the driver, 
> that is just writing "Intel ICH5" in the textfield and it doesn't seem 
> to work (I should I have mentioned I have deleted my /etc/asound.conf 
> and restarted the ALSA drivers)...
> 

You have to use the name from /proc/asound/cards.  Did you try entering
"default:ICH5"?

> How can ALSA refer to a card by just name without me providing the name 
> in my /etc/asound.conf?
> 
> Sorry for the noob question if it is one (-:
> 
> ++
> 
> 
>> 
> 
> Lee Revell a écrit :
> > On Fri, 2006-09-08 at 20:37 +0200, Jerome Tuncer wrote:
> >> What do I have to do so that one order is preserved upon 
> >> reboot/re-detection of the interfaces?
> >>
> > 
> > With correct applications it should not be necessary to do anything;
> > ALSA supports addressing devices by name.  The .asoundrc should nto be
> > needed either - in fact it could cause problems as you have defined the
> > default devices to be hw:x which will bypass dmix.
> > 
> > aplay -D default:ICH5 file.wav 
> > 
> > should play to the Intel card, and 
> > 
> > aplay -D default:Delta66 file.wav
> > 
> > to the Delta66.
> > 
> > Lee
> > 
> > 
> > 
> 




More information about the Linux-audio-user mailing list