Bug 93006 - headphone output is not preferred over HDMI
Summary: headphone output is not preferred over HDMI
Status: NEW
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
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-19 08:53 UTC by Jussi Kukkonen
Modified: 2016-10-25 13:03 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:
https://patchwork.freedesktop.org/patch/109460/
https://patchwork.freedesktop.org/patch/109461/
https://patchwork.freedesktop.org/patch/109462/

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:
https://patchwork.freedesktop.org/patch/118062/


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.