<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Add a way to override priority of sinks - mostly for module-combine-sinks"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101201">101201</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add a way to override priority of sinks - mostly for module-combine-sinks
</td>
</tr>
<tr>
<th>Product</th>
<td>PulseAudio
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>core
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>myst@focks.pw
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>pulseaudio-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>lennart@poettering.net
</td>
</tr></table>
<p>
<div>
<pre>This is a bit hard to describe. I'd really like to see a way to manually set
priorities on sinks. I recently got a portable DAC, and I wanted to use it when
plugged in and fall back on module-combine-sink otherwise - mostly because I
often use a program that cannot handle changing sinks. This however means I
needed my priorities to be correctly ordered. After fixing the identification
of my DAC on the udev side, and switching to running a git build to have recent
fixes like <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - ouput sound is not switched automatically to bluetooth headset"
href="show_bug.cgi?id=99222">https://bugs.freedesktop.org/show_bug.cgi?id=99222</a>, I ran into that
I wanted the module-combine-sink sink to be above my internal card but below my
DAC. I solved this for now with `load-module module-combine-sink
sink_properties='device.class="sound" device.form_factor="speaker"'
`, but that's faking out the priority setting to get the right order, not doing
it any sort of "right".
I'm imagining adding a proplist entry of some naming that lets you outright set
the priority, and there would be a check at the start of
pa_device_init_priority in sink.c that would outright set the priority if it
was a valid value. I'd like to know, though, how that sounds, what people
think, ideas about the name, if there's anything big I might be missing, before
I try to work on a patch.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>