[SRU] pulseaudio: restore hdmi audio be active output after resume
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
OEM Priority Project |
Fix Released
|
Undecided
|
Unassigned | ||
pulseaudio (Ubuntu) |
Fix Released
|
High
|
Hui Wang | ||
Focal |
Fix Released
|
High
|
Hui Wang | ||
Hirsute |
Won't Fix
|
High
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Hui Wang | ||
Jammy |
Fix Released
|
High
|
Hui Wang |
Bug Description
[Impact]
On the machines with legacy HDA audio driver, when users plug a hdmi/dp monitor, the active output device is still speaker, need users to manually select the hdmi, then the hdmi audio will be the users' preference, once it is plugged, it should become the active output automatically. But with the current PA, after reboot and suspend/resume, the hdmi can't change to be active output automatically anymore.
[Fix]
Backport an upstream fix, this will fix the issue of "preferred ports being cleaned by a mistake"
[Test]
On a machine with legacy HDA audio driver, install the patched pulseaudio, then run 'rm ~/.config/pulse/*; reboot', plug a hdmi monitor, select the hdmi audio to be active, with the hdmi monitor plugged and reboot, suspend and resume, check what is the active output, it is still the hdmi audio.
[Where problems could occur]
This patch is in the card-restore.c, if it could introduce regression, it will be on the default active input/output devices, for example, users select a input or output device to be active, after reboot, if those devices are available, they should be active, but they could be replaced by other devices if a regression is introduced. But this possibility is very low since we tested the patch on a couple of desktop and laptop machines.
Changed in pulseaudio (Ubuntu): | |
assignee: | nobody → Hui Wang (hui.wang) |
importance: | Undecided → High |
Changed in pulseaudio (Ubuntu Impish): | |
importance: | Undecided → High |
Changed in pulseaudio (Ubuntu Hirsute): | |
importance: | Undecided → High |
Changed in pulseaudio (Ubuntu Focal): | |
importance: | Undecided → High |
status: | New → In Progress |
Changed in pulseaudio (Ubuntu Hirsute): | |
status: | New → In Progress |
Changed in pulseaudio (Ubuntu Impish): | |
status: | New → In Progress |
Changed in pulseaudio (Ubuntu Jammy): | |
status: | New → In Progress |
tags: | added: suspend-resume |
tags: | added: originate-from-1933628 |
tags: | removed: verification-needed |
Changed in oem-priority: | |
status: | New → Fix Released |
Changed in hwe-next: | |
status: | New → Fix Released |
This is the debdiff for jammy
thx.