Skip to contentSkip to conversation

Enumerating PCM devices

DISCUSSION Bankim Bhavsar 1 participant 1 message Jan 25, 2009

lore
Share & tools
lore
#0 lore raw

Hi Alsa developers/users,

I'm using snd_device_name_hint("pcm"..) and then snd_device_name_get_hint(.."NAME") to get the NAME parameter of pcm devices.

Quoted 1 line

From what I understand each sound card can have multiple PCM devices.

Is it true that all sound cards that support Alsa will *always* have "default" pcm device? I'm more inclined towards using "default:CARD=<vendor>" as the
parameter to snd_pcm_open(). This way if the program configures hardware params for any number of channels then the appropriate PCM device will be selected on the sound card, correct?

Thanks,
Bankim.