[Bug 1855893] [NEW] Properly let PCM leave suspended state when hardware doesn't support PCM resume

Launchpad Bug Tracker 1855893 at bugs.launchpad.net
Tue Dec 10 16:27:25 UTC 2019


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[Impact]
Headset Mic plugged into Dell WD19TB dock stops working after suspend/resume.

[Fix]
According to alia-lib's document, to make PCM properly leave suspended state, we only use snd_pcm_resume() if hardware support PCM resume.
For hardware that doesn't support PCM resume, like snd-usb-audio on WD19TB dock, we should use snd_pcm_prepare(), snd_pcm_drop() or snd_pcm_drain() to make device leave suspended state. This patch defaults to use snd_pcm_drop() to achieve the goal.

[Test]
1. See if microphone on snd-usb-audio works in gnome-control-center/cheese.
2. Suspend/resume.
3. See if microphone still works in those apps.
I can the issue is fixed after each suspend/resume cycle.

[Regression Potential]
Low. This fix makes PCM suspend/resume more reliable. No functional change intended. I also don't find any regression during some smoke test.

** Affects: hwe-next
     Importance: Undecided
         Status: New

** Affects: pulseaudio (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: oem-priority originate-from-1849812 patch somerville
-- 
Properly let PCM leave suspended state when hardware doesn't support PCM resume
https://bugs.launchpad.net/bugs/1855893
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list