mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
dump profiles when listing cards
This commit is contained in:
parent
c06e43d7ff
commit
f8ba3a9b07
1 changed files with 15 additions and 2 deletions
|
|
@ -123,9 +123,22 @@ char *pa_card_list_to_string(pa_core *c) {
|
||||||
if (card->module)
|
if (card->module)
|
||||||
pa_strbuf_printf(s, "\towner module: %u\n", card->module->index);
|
pa_strbuf_printf(s, "\towner module: %u\n", card->module->index);
|
||||||
|
|
||||||
t = pa_proplist_to_string(card->proplist);
|
t = pa_proplist_to_string_sep(card->proplist, "\n\t\t");
|
||||||
pa_strbuf_printf(s, "\tproperties:\n%s", t);
|
pa_strbuf_printf(s, "\tproperties:\n\t\t%s\n", t);
|
||||||
pa_xfree(t);
|
pa_xfree(t);
|
||||||
|
|
||||||
|
if (card->profiles) {
|
||||||
|
pa_card_profile *p;
|
||||||
|
void *state = NULL;
|
||||||
|
|
||||||
|
pa_strbuf_puts(
|
||||||
|
s,
|
||||||
|
"\tprofiles:\n");
|
||||||
|
|
||||||
|
while ((p = pa_hashmap_iterate(card->profiles, &state, NULL)))
|
||||||
|
pa_strbuf_printf(s, "\t\t%s: %s\n", p->name, p->description);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pa_strbuf_tostring_free(s);
|
return pa_strbuf_tostring_free(s);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue