Plugged in headphones with microphone are only detected partially
Summary
When I connect headphones with microphone, only output device is automatically detected and selected and input device is not.
environment
Steps to reproduce
- Get headphones with a microphone
- Open audio applet
- Plug in heaphones
What is the current bug behavior?
When headphones are plugged in, new output is correctly detected and automatically switched from Speakers to Headphones and Ports menu appears.
However input devices are not automatically detected. I have to move volume slider from 100% to some other value and then Ports menu appears and I can switch port to Headset Microphone.
See attached video. Please ignore flickering as that was introduced by screen recorder.
I also checked KCM where Ports select is available after plugging in, but Headset Microphone option is tagged as unplugged. When I move volume slider, unplugged tag is removed.
Just to clarify behaviour of KCM. When I completely unplug my headset, I can still see select with all the ports - plugged and unplugged as well. I assume that once I plug in my headphones, they are remembered and they are always among ports. I guess they are remembered in folder ~/.config/pulse/
.
Anyway I tried pavucontrol and it behaves exactly like Plasma. When I plug in my headset, output device is recognized and switched, input device remains in unplugged state until I move volume slider or until I select the unplugged device from ports select.
What is the expected correct behavior?
Input Ports menu appears immediately when new device is plugged in and last used Port is automatically selected (as in input devices / ports).
Configuration
- Linux/KDE Plasma: Arch Linux
- KDE Plasma Version: 5.19.3
- KDE Frameworks Version: 5.72.0
- Qt Version: 5.15.0
Reported at https://bugs.kde.org/show_bug.cgi?id=424273, but it seems upstream bug.