[pulseaudio-commits] 2 commits - src/pulsecore
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Wed Apr 19 14:05:58 UTC 2017
src/pulsecore/sink.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 9418807c92a6c5806cfcf370a28792c871cfda6c
Author: Christian Kellner <christian at kellner.me>
Date: Wed Apr 5 13:59:08 2017 +0200
sink: Add missing 'hifi' form factor to priorities
Assign it a propriety of 600, therefore ranking higher then speaker,
but below headphone.
https://bugs.freedesktop.org/show_bug.cgi?id=100579
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index bff345f8..92670c13 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -3512,6 +3512,8 @@ unsigned pa_device_init_priority(pa_proplist *p) {
if (pa_streq(s, "headphone"))
priority += 900;
+ else if (pa_streq(s, "hifi"))
+ priority += 600;
else if (pa_streq(s, "speaker"))
priority += 500;
else if (pa_streq(s, "portable"))
commit 6f4d303b6a5474fc421c28bd56d1e686ecccd659
Author: Christian Kellner <christian at kellner.me>
Date: Wed Apr 5 13:52:27 2017 +0200
sink: Add portable form factor priority (450)
The 'portable' form factor was currently missing meaning it is not
getting any form-factor priority at all and it would therefore always
be ranked lower then internal devices (which receive 400 form factor
priority). The priority 450 is smaller then 'speaker', based on the
idea that a portable device might have less quality then a dedicated
'speaker' device (some Yamaha amplifiers announce themselves as such).
https://bugs.freedesktop.org/show_bug.cgi?id=100579
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 6692066a..bff345f8 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -3514,6 +3514,8 @@ unsigned pa_device_init_priority(pa_proplist *p) {
priority += 900;
else if (pa_streq(s, "speaker"))
priority += 500;
+ else if (pa_streq(s, "portable"))
+ priority += 450;
else if (pa_streq(s, "internal"))
priority += 400;
}
More information about the pulseaudio-commits
mailing list