[alsa-devel] alsa-lib functions reporting conflicting information with two sound cards

Takashi Iwai tiwai at suse.de
Fri Apr 20 12:13:34 CEST 2007


At Thu, 19 Apr 2007 20:08:21 +0200,
Nicholas Smethurst wrote:
> 
> Lee Revell wrote:
> > On 4/19/07, nick smethurst <nick.smethurst at gmail.com> wrote:
> >> I am rather confused that I am getting crossed information when
> >> calling snd_names_list
> >> and snd_pcm_info in order to gather information about pcm devices.
> >
> > I think ALSA's new device enumeration API can do this for you.  See
> > the implementation of aplay -l (or -L, don't remember which) in the
> > latest alsa-utils.
> Ok, thanks for the hint (no pun intended :) ).
> 
> I see that the pcm_list() function has changed in aplay. The new hints 
> API looks good.
> 
> However, I note that snd_device_name_hint() does not return hw, plughw, 
> plug, dmix, etc. Are these obtained elsewhere? I would like to build a 
> complete list of all available devices in order to allow the user to 
> select them from a dropdown list in a GUI.

They are not shown unless you give the device description explicitly
or set a global flag.  See the description of snd_device_name_hint()
function.


Takashi


More information about the Alsa-devel mailing list