summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/protocol-native.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/protocol-native.c')
-rw-r--r--src/pulsecore/protocol-native.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pulsecore/protocol-native.c b/src/pulsecore/protocol-native.c
index f77c9c24..784610bd 100644
--- a/src/pulsecore/protocol-native.c
+++ b/src/pulsecore/protocol-native.c
@@ -1265,7 +1265,10 @@ static void sink_fill_tagstruct(pa_tagstruct *t, pa_sink *sink) {
PA_TAG_STRING, sink->monitor_source->name,
PA_TAG_USEC, pa_sink_get_latency(sink),
PA_TAG_STRING, sink->driver,
- PA_TAG_U32, (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) | (sink->get_latency ? PA_SINK_LATENCY : 0),
+ PA_TAG_U32,
+ (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) |
+ (sink->get_latency ? PA_SINK_LATENCY : 0) |
+ (sink->is_hardware ? PA_SINK_HARDWARE : 0),
PA_TAG_INVALID);
}
@@ -1285,7 +1288,10 @@ static void source_fill_tagstruct(pa_tagstruct *t, pa_source *source) {
PA_TAG_STRING, source->monitor_of ? source->monitor_of->name : NULL,
PA_TAG_USEC, pa_source_get_latency(source),
PA_TAG_STRING, source->driver,
- PA_TAG_U32, (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) | (source->get_latency ? PA_SOURCE_LATENCY : 0),
+ PA_TAG_U32,
+ (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) |
+ (source->get_latency ? PA_SOURCE_LATENCY : 0) |
+ (source->is_hardware ? PA_SOURCE_HARDWARE : 0),
PA_TAG_INVALID);
}