[SRU] there is always a "Rear Microphone - Built-in Audio" option on the input device list even if the microphone is unplugged
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OEM Priority Project |
Fix Released
|
High
|
jeremyszu | ||
alsa-ucm-conf (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Unassigned | ||
Hirsute |
Fix Released
|
Low
|
Unassigned | ||
pulseaudio (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Unassigned | ||
Hirsute |
Fix Released
|
Low
|
Unassigned |
Bug Description
[Impact]
In Lenovo P520, which using a codec for front panel, the other codec for rear panel and both are on a same card.
In this case, the rear Mic will present on input devices of "Sound Settings" even if attaching nothing to rear mic jack.
[Fix]
For alsa-ucm-conf part, the Mic 2 should use "Rear Mic Jack" as JackControl because of
```
control.18 {
iface CARD
name 'Rear Mic Jack'
value true
comment {
access read
type BOOLEAN
count 1
}
}
```
After applying "Rear Mic Jack", the rear Mic will not always there anymore but it's not there as well if hot-plugging audio device on rear mic. Thus, it needs to change pulseaudio to handle if all devices are off cases.
For pulseaudio, if there is no any audio devices attached, then attaching an input device on rear mic jack. The port will not be selected automatically because the profiles is off. It needs patch pulseaudio to check off profiles (for dual codec case).
[Test]
After applying these patches, the rear mic jack works good in all cases (boot without mic and then attach mic, boot with mic and then hotplug it) and other functions (line-in / line-out) work pretty well.
[Where problems could occur]
This change only apply the bonus on below cases:
```
if ((has_input_port && found_available
(has_
(has_input_port && found_available
```
and these cases have been tested.
If there are some complex codec design then it might cause problem but so far we didn't see that.
summary: |
- there is always a "Rear Microphone - Built-in Audio" option on the input - device list even if the microphone is unplugged + [SRU] there is always a "Rear Microphone - Built-in Audio" option on the + input device list even if the microphone is unplugged |
tags: | added: oem-priority originate-from-1884497 sutton |
Changed in oem-priority: | |
assignee: | nobody → jeremyszu (os369510) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in alsa-ucm-conf (Ubuntu): | |
importance: | Undecided → Low |
Changed in pulseaudio (Ubuntu): | |
importance: | Undecided → Low |
Changed in alsa-ucm-conf (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in alsa-ucm-conf (Ubuntu Groovy): | |
importance: | Undecided → Low |
Changed in alsa-ucm-conf (Ubuntu Hirsute): | |
importance: | Undecided → Low |
Changed in pulseaudio (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in pulseaudio (Ubuntu Groovy): | |
importance: | Undecided → Low |
Changed in pulseaudio (Ubuntu Hirsute): | |
importance: | Undecided → Low |
Changed in alsa-ucm-conf (Ubuntu Hirsute): | |
status: | New → Fix Released |
Changed in alsa-ucm-conf (Ubuntu): | |
status: | New → Fix Released |
Changed in oem-priority: | |
status: | Triaged → Fix Released |
tags: | removed: verification-needed |
Incomplete due to blank Bug Description.