diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-08-16 11:11:34 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2011-08-16 11:11:34 +0530 |
commit | fb67016844843230b04cab10b3e39908c6b2cca6 (patch) | |
tree | 2093aabc1e623025a10e569204cd75f8d9ff68b2 | |
parent | 16147ae8283cb634f55e76f63395a599a69b78b5 (diff) |
sink: Add a SET_FORMATS flag
This adds a PA_SINK_SET_FORMATS flag to the pa_sink_flags enum,
signalling that a sink allows the set of supported formats to be set
externally. The idea is for clients to be able to know what sinks
support this ability and adapt their UI appropriately.
-rw-r--r-- | src/pulse/def.h | 4 | ||||
-rw-r--r-- | src/utils/pactl.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/pulse/def.h b/src/pulse/def.h index 32169deb..96aea193 100644 --- a/src/pulse/def.h +++ b/src/pulse/def.h @@ -756,6 +756,10 @@ typedef enum pa_sink_flags { * sinks). */ /** \endcond */ + PA_SINK_SET_FORMATS = 0x0400U, + /**< The sink allows setting what formats are supported by the connected + * hardware. The actual functionality to do this might be provided by an + * extension. \since 1.0 */ } pa_sink_flags_t; /** \cond fulldocs */ diff --git a/src/utils/pactl.c b/src/utils/pactl.c index 947c6e98..21ceecee 100644 --- a/src/utils/pactl.c +++ b/src/utils/pactl.c @@ -271,7 +271,7 @@ static void get_sink_info_callback(pa_context *c, const pa_sink_info *i, int is_ "\tBase Volume: %s%s%s\n" "\tMonitor Source: %s\n" "\tLatency: %0.0f usec, configured %0.0f usec\n" - "\tFlags: %s%s%s%s%s%s\n" + "\tFlags: %s%s%s%s%s%s%s\n" "\tProperties:\n\t\t%s\n"), i->index, state_table[1+i->state], @@ -297,6 +297,7 @@ static void get_sink_info_callback(pa_context *c, const pa_sink_info *i, int is_ i->flags & PA_SINK_HW_VOLUME_CTRL ? "HW_VOLUME_CTRL " : "", i->flags & PA_SINK_DECIBEL_VOLUME ? "DECIBEL_VOLUME " : "", i->flags & PA_SINK_LATENCY ? "LATENCY " : "", + i->flags & PA_SINK_SET_FORMATS ? "SET_FORMATS " : "", pl = pa_proplist_to_string_sep(i->proplist, "\n\t\t")); pa_xfree(pl); |