add priority logic to find best default profile

This commit is contained in:
Lennart Poettering 2009-01-20 20:35:18 +01:00
parent b3a043fd31
commit 7368a6e6be
6 changed files with 43 additions and 15 deletions

View file

@ -142,7 +142,7 @@ char *pa_card_list_to_string(pa_core *c) {
"\tprofiles:\n");
while ((p = pa_hashmap_iterate(card->profiles, &state, NULL)))
pa_strbuf_printf(s, "\t\t%s: %s\n", p->name, p->description);
pa_strbuf_printf(s, "\t\t%s: %s (priority %u)\n", p->name, p->description, p->priority);
}
if (card->active_profile)