PA: Don't restore the streams to sinks/sources with only unavailable ports
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HWE Next |
Fix Released
|
Undecided
|
Unassigned | ||
OEM Priority Project |
Fix Released
|
High
|
Unassigned | ||
pulseaudio (Ubuntu) |
Fix Released
|
High
|
Hui Wang | ||
Bionic |
Fix Released
|
High
|
Hui Wang | ||
Disco |
Fix Released
|
High
|
Unassigned | ||
Eoan |
Fix Released
|
High
|
Hui Wang |
Bug Description
SRU Document:
[Impact]
The Lenovo P520 machine has dual analogue codecs, so there are two sinks and two sources in the PA, one has the front headphone and front microphone, the other has the rear lineout, linein and rear microphone, and the rear microphone always shows up in the gnome-sound-
[Test Case]
After applying this patch, I did the same test: unplug the front mic, then use the arecord to record sound, the app can record sound from rear mic now. After I plug the front mic back, the arecord still record from front mic. Also did the similar test for output devices, it worked as expected too.
[Regression Potential]
Low, Just make a simple check when creating new streams (sink_input/
For the Bionic, This SRU also includes the fix of LP: #1556439, this fix is safe and is very low possible to introduce any regression too, because it just adds a sink-input/
[Other Info]
No more info here
tags: | added: eoan |
tags: | added: originate-from-1833676 sutton |
Changed in pulseaudio (Ubuntu): | |
importance: | Critical → High |
Changed in pulseaudio (Ubuntu): | |
status: | New → Incomplete |
description: | updated |
description: | updated |
Changed in oem-priority: | |
importance: | Undecided → High |
tags: | added: oem-priority |
Changed in pulseaudio (Ubuntu Disco): | |
importance: | Undecided → High |
Changed in oem-priority: | |
status: | New → Confirmed |
tags: | added: originate-from-1835155 |
Changed in oem-priority: | |
importance: | High → Critical |
Changed in pulseaudio (Ubuntu Bionic): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Hui Wang (hui.wang) |
Changed in pulseaudio (Ubuntu Bionic): | |
status: | Incomplete → Triaged |
Changed in oem-priority: | |
importance: | Critical → High |
Changed in hwe-next: | |
status: | New → Fix Released |
Changed in oem-priority: | |
status: | Confirmed → Fix Committed |
status: | Fix Committed → Fix Released |
Probably we need to backport this patch:
commit 30a551bbc45f2d2 13e8b2889c8bede 8a9c16c9d2
Author: João Paulo Rechi Vita <email address hidden>
Date: Mon Dec 10 16:16:46 2018 -0800
switch- on-port- available: Check if we need to change the active profile
When a port becomes unavailble its profile may also become unavailable.
If that profile is the card's active profile, we need to switch the
card's active profile to a different one.
If we don't do that a card may get stuck on a profile without available rescue- streams to move the streams to a different card with
ports, but its sink and source will still exist, preventing
module-
available ports.
The relation between port availability and profile availability is
defined by the driver, and for the ALSA driver a profile is considered
available if there is at least one (available || unknown) port for each
direction implemented by the profile. Because of that we can only check
the profile's availability and priority when looking for the best
profile and don't need to look at port's priorities.
https:/ /phabricator. endlessm. com/T24904