Bug 101201 - Add a way to override priority of sinks - mostly for module-combine-sinks
Summary: Add a way to override priority of sinks - mostly for module-combine-sinks
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: All All
: medium enhancement
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-26 13:06 UTC by Myst Fox
Modified: 2018-07-30 10:08 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Myst Fox 2017-05-26 13:06:54 UTC
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 https://bugs.freedesktop.org/show_bug.cgi?id=99222, 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.
Comment 1 Myst Fox 2017-05-26 13:09:11 UTC
Oh, and sorry if this isn't the best place - I didn't even think about the mailing list before I submitted this.
Comment 2 GitLab Migration User 2018-07-30 10:08:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/239.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.