[pulseaudio-commits] src/utils

David Henningsson diwic at kemper.freedesktop.org
Wed Mar 21 04:21:53 PDT 2012


 src/utils/pactl.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 70eb40705dcae46edc9fed24d29d8f0c092bf276
Author: David Henningsson <david.henningsson at canonical.com>
Date:   Wed Mar 21 12:17:47 2012 +0100

    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 at canonical.com>

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++;



More information about the pulseaudio-commits mailing list