Bug 93006 - headphone output is not preferred over HDMI
Summary: headphone output is not preferred over HDMI
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
Depends on:
Reported: 2015-11-19 08:53 UTC by Jussi Kukkonen
Modified: 2018-07-30 10:15 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Description Jussi Kukkonen 2015-11-19 08:53:49 UTC
Tanu has a patchset that makes HDMI audio work out of the box on NUCs that expose two different cards by adding some profile availability management logic to module-alsa-card: http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/24301

After those patches HDMI output works but plugging in headphones doesn't change the default device. Quote:
> On this hardware analog and HDMI outputs are on different cards, and the 
> routing policy in PulseAudio doesn't currently automatically change the default
> device from one card to another, and also doesn't prefer one device type over
> another. I agree that headphones should be preferred by default.
> If you file another bug, I'll try to do something about it. It might turn out
> to be tricky, though.

pactl list: https://bugzilla.yoctoproject.org/attachment.cgi?id=2793
(this is without tanus patchset, just to document the setup).
Comment 1 Tanu Kaskinen 2016-09-08 11:28:35 UTC
Here's a partial fix:

It's "partial", because I think a full fix would mean moving existing streams from HDMI to headphones when headphones are plugged in. My current plan is to work on that next month.
Comment 2 Tanu Kaskinen 2016-10-25 13:03:35 UTC
Here's an additional patch that makes streams move when the default sink or source changes:
Comment 3 GitLab Migration User 2018-07-30 10:15:28 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/302.

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.