mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 03:25:42 +01:00
Added group and elements sorting
This commit is contained in:
parent
900d2fc74c
commit
5f6d6e72d4
1 changed files with 5 additions and 1 deletions
|
@ -544,7 +544,10 @@ mixer_update_cbar (int group_index)
|
||||||
/* channel bar name
|
/* channel bar name
|
||||||
*/
|
*/
|
||||||
mixer_dc (group_index == mixer_focus_group ? DC_CBAR_FOCUS_LABEL : DC_CBAR_LABEL);
|
mixer_dc (group_index == mixer_focus_group ? DC_CBAR_FOCUS_LABEL : DC_CBAR_LABEL);
|
||||||
strcpy(string1, group.gid.name);
|
if (group.gid.index > 0)
|
||||||
|
sprintf(string1, "%s %d", group.gid.name, group.gid.index);
|
||||||
|
else
|
||||||
|
strcpy(string1, group.gid.name);
|
||||||
string1[8] = 0;
|
string1[8] = 0;
|
||||||
for (i = 0; i < 8; i++)
|
for (i = 0; i < 8; i++)
|
||||||
{
|
{
|
||||||
|
@ -1153,6 +1156,7 @@ mixer_reinit (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
snd_mixer_sort_gid_table(mixer_gid, mixer_n_groups, snd_mixer_default_weights);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue