On Mon, 24 Jun 2002, Paul Davis wrote:

> >Maybe this is what the "default" device is intended for, but can it
> >accommodate more than one card?  I happen to have a sound card built into
> >my motherboard and another in a PCI slot -- how do I tell XMMS which one
> >to use?
> 
> an excellent context for the question. 
> 
> i want to extend the question just a little. it seems from watching a
> few friends who use windows audio apps that its conventional there to
> name audio output options after the physical hardware. so you see
> things like "Terratec XWP" and "Ensoniq PCM" and so forth. This is
> nice because its what a lot of users think in terms of.
> 
> in ALSA, we really don't see such naming at all. thats fine with me,
> but it leads me to wonder. the reason that the names are useful is
> that they don't move around when you change the install order for the
> modules (for example). so, the "Ensoniq PCM" is always the "Ensoniq
> PCM" whether its the first card or the second.
> 
> Now, AFAICT, Windows doesn't make it very easy to deal with multiple
> "Ensoniq PCM" devices whereas ALSA does. However, there does seem to
> be something "missing" when we present users with
> 
>    plughw:1,0
> 
> as the name of suitably flexible device for general purpose audio on
> the second card in the absence of a ~/.asoundrc file ....
> 
> So I'm left wondering what naming scheme to use to get a more flexible
> way of referring to cards *without* using an ~/.asoundrc
> file. Alternatively, how to autogenerate the file so that it provides
> nice names?

I think that you've forgot that we can identify hardware devices over the 
control interface. Look for snd_ctl_pcm_next_device() and snd_ctl_pcm_info()
functions. It's easy to use this information with combination of PCM names 
like 'hw:CARD,DEVICE,SUBDEVICE' and 'plughw:*'.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project  http://www.alsa-project.org
SuSE Linux    http://www.suse.com



-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to