audacious-media-player/audacious-plugins — pull request #18 by mpecio (2014-01-28 20:39:03+00:00)
Title: alsa: Add support for mixer element indexes

Some drivers register multiple mixer elements with the same name.
Make the plugin aware of mixer element indexes to tell such mixer
elements apart.

--

Tested on soundcard with two "PCM" mixer elements.

Verified to work:
- switching between elements with same name
- switching between elements with different names
- controlling elements with unique name
- saving and restoring configuration
- reading v3.4 configuration (defaults to the first mixer element matching old configuration)