# HG changeset patch # User Matti Hamalainen # Date 1214974609 -10800 # Node ID fd550b4fc79f9034dc9228387694a4df17e74820 # Parent cd2d2118fdee49b803d888ef87f444ed5ef5de6a Also show indexed mixer elements in the ALSA plugin configuration UI, patch based on one from nicholas@irc. diff -r cd2d2118fdee -r fd550b4fc79f src/alsa/configure.c --- a/src/alsa/configure.c Mon Jun 30 23:52:43 2008 -0500 +++ b/src/alsa/configure.c Wed Jul 02 07:56:49 2008 +0300 @@ -112,10 +112,16 @@ while (current) { - const char *sname = snd_mixer_selem_get_name(current); if (snd_mixer_selem_is_active(current) && snd_mixer_selem_has_playback_volume(current)) - items = g_list_append(items, g_strdup(sname)); + { + const char *sname = snd_mixer_selem_get_name(current); + int index = snd_mixer_selem_get_index(current); + if (index) + items = g_list_append(items, g_strdup_printf("%s,%d", sname, index)); + else + items = g_list_append(items, g_strdup(sname)); + } current = snd_mixer_elem_next(current); }