How to identify Alsa eLements?

Takashi Sakamoto o-takashi at sakamocchi.jp
Fri Jul 3 02:48:50 CEST 2020


On Fri, Jul 03, 2020 at 09:34:20AM +0900, Takashi Sakamoto wrote:
> > My questions:
> > 1) Are name and index enough to identify an element?
> 
> In ALSA control core, 'snd_ctl_find_id()' helper function[1] is used to
> find control element set by the given information from userspace
> application. You can see the algorithm supports two cases:
> 
> 1. numid matching
> 2. the combination matching with:
>   * iface
>   * device
>   * subdevice
>   * name
>   * index is within the range of set

I sent PR[1] to update the documentation in alsa-lib.


[1] https://github.com/alsa-project/alsa-lib/pull/66

Regards

Takashi Sakamoto


More information about the Alsa-devel mailing list