[SRU]There is no available audio entry in sound settings after execute suspend in 'Performance mode'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
OEM Priority Project |
Fix Released
|
Critical
|
Shengyao Xue | ||
pulseaudio (Ubuntu) |
Fix Released
|
Critical
|
Hui Wang | ||
Bionic |
Won't Fix
|
High
|
Hui Wang | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Critical
|
Hui Wang |
Bug Description
[Impact]
On some I+N machines (inlcuding lenovo and dell machines), after
setting the graphic mode to perofermance mode, and open the gnome
sound seting, run suspend/resume test, the audio devices will
disappear from UI, instead a dummy audio shows on the UI, and from
then on, the audio can't work anymore.
[Fix]
The root cause is after resuming, the pulseaudio try to recover the
PCM device, but at that moment, the devices nodes at /dev/snd/ are
not accessible yet sometimes, it will make snd_pcm_open fail and
the pulseaudio will calll unload_module to unload alsa audio card.
I cherrpicked a fix from upstream, the fix adds retry and pa_msleep(),
this will retry the snd_pcm_open() a couple of times if it fails.
[Test Case]
Install the pulseaudio wit this fix, set the graphic mode to
performance mode, open the sound setting, then run suspend/resume 90
times, after test check the audio devices on the UI, the speaker,
digital mic are still on the UI, and they could work well.
[Regression Risk]
Low, this SRU just add retry and pa_msleep(), if the snd_pcm_open()
doesn't fail, this patch will not introduce any change, if snd_pcm_open()
fails, it just retry a couple of times, so it will not introduce the
regression in theory.
Changed in pulseaudio (Ubuntu): | |
importance: | Undecided → Critical |
summary: |
- No audio entry in sound settings after suspend and resume [Performance - mode] + There is no available audio entry in sound settings after execute + suspend in 'Performance mode' |
tags: | added: oem-priority originate-from-1883046 sutton |
description: | updated |
summary: |
- There is no available audio entry in sound settings after execute + [SRU]There is no available audio entry in sound settings after execute suspend in 'Performance mode' |
tags: | added: originate-from-1867844 |
tags: | removed: originate-from-1867844 |
Changed in oem-priority: | |
importance: | Undecided → Critical |
assignee: | nobody → Shengyao Xue (xueshengyao) |
Changed in oem-priority: | |
status: | New → In Progress |
Changed in pulseaudio (Ubuntu Bionic): | |
assignee: | nobody → Hui Wang (hui.wang) |
status: | Confirmed → In Progress |
importance: | Undecided → High |
Changed in oem-priority: | |
status: | In Progress → Fix Released |
Changed in hwe-next: | |
status: | New → Fix Released |
Changed in pulseaudio (Ubuntu Bionic): | |
status: | In Progress → Won't Fix |
Status changed to 'Confirmed' because the bug affects multiple users.