diff options
author | David Henningsson <david.henningsson@canonical.com> | 2012-03-21 12:17:47 +0100 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2012-03-21 12:17:47 +0100 |
commit | 70eb40705dcae46edc9fed24d29d8f0c092bf276 (patch) | |
tree | a45294c3e849e085e76c2ca12f2c58a21d54f4a4 /src/utils | |
parent | 1f97db720bd533a7b367a7d3123a493196125828 (diff) | |
download | pulseaudio-panda-70eb40705dcae46edc9fed24d29d8f0c092bf276.tar.gz pulseaudio-panda-70eb40705dcae46edc9fed24d29d8f0c092bf276.tar.bz2 pulseaudio-panda-70eb40705dcae46edc9fed24d29d8f0c092bf276.zip |
pactl: show availability information for "list cards"
Now that the client API exposes availability information for ports
on cards, we can make output consistent with "list sinks" and
"list sources".
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/pactl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils/pactl.c b/src/utils/pactl.c index fc5a238a..05a1519b 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -588,7 +588,9 @@ static void get_card_info_callback(pa_context *c, const pa_card_info *i, int is_ printf(_("\tPorts:\n")); for (p = i->ports; *p; p++) { pa_card_profile_info **pr = (*p)->profiles; - printf(_("\t\t%s: %s (priority %u)\n"), (*p)->name, (*p)->description, (*p)->priority); + printf(_("\t\t%s: %s (priority: %u%s)\n"), (*p)->name, (*p)->description, (*p)->priority, + get_available_str_ynonly((*p)->available)); + if (pr) { printf(_("\t\t\tPart of profile(s): %s"), pa_strnull((*pr)->name)); pr++; |