[pulseaudio-discuss] [PATCH 2/2 v2] pactl: Print available flag of card profiles
Luiz Augusto von Dentz
luiz.dentz at gmail.com
Mon Jul 15 08:21:26 PDT 2013
From: Luiz Augusto von Dentz <luiz.von.dentz at intel.com>
---
src/utils/pactl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/utils/pactl.c b/src/utils/pactl.c
index b6d943e..f081110 100644
--- a/src/utils/pactl.c
+++ b/src/utils/pactl.c
@@ -575,7 +575,8 @@ static void get_card_info_callback(pa_context *c, const pa_card_info *i, int is_
printf(_("\tProfiles:\n"));
for (p = i->profiles; p->name; p++)
- printf("\t\t%s: %s (sinks: %u, sources: %u, priority: %u)\n", p->name, p->description, p->n_sinks, p->n_sources, p->priority);
+ printf("\t\t%s: %s (sinks: %u, sources: %u, priority: %u, available: %s)\n", p->name,
+ p->description, p->n_sinks, p->n_sources, p->priority, p->available > 0 ? "yes": "no");
}
if (i->active_profile)
--
1.8.3.1
More information about the pulseaudio-discuss
mailing list