From: David Henningsson Date: Wed, 21 Mar 2012 11:17:47 +0000 (+0100) Subject: pactl: show availability information for "list cards" X-Git-Tag: 1.0_branch~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=70eb40705dcae46edc9fed24d29d8f0c092bf276;p=profile%2Fivi%2Fpulseaudio.git 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 --- diff --git a/src/utils/pactl.c b/src/utils/pactl.c index fc5a238..05a1519 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++;