Not respecting media-role.use-headset-profile, headset profile activated muting internal microphone.

Description:

My laptop has an internal speaker and microphone, as well as a Bluetooth audio receiver (Qudelix 5K) with both A2DP and HSP/HFP available with an internal microphone. Normally, the Bluetooth microphone is not available as a source (as per defaults in /etc/wireplumber/policy.lua.d/11-bluetooth-policy.lua). However, after the recent update, this input now shows up, and SUSPENDs (when viewed via pactl list sources) the internal microphone. As a result, there is no audio coming from either the internal microphone, nor from the headset (as it is set to A2DP/LDAC) when I open an app that tries to force headset profile (Discord, Meet were tested).

After downgrading wireplumber to 0.4.17-1 (second newest local version I had), the expected behavior (only internal microphone available) returned.

Additional info:

Steps to reproduce:

  1. Make sure that the headset profile is disabled in wireplumber.
  2. Upgrade to wireplumber 0.5.0-1
  3. Have no external audio connected (internal microphone will work).
  4. Connect a bluetooth headset that has a microphone (corresponding microphone shows up, neither it nor the internal microphone will work).
  5. Disconnect the bluetooth headset (internal microphone will now work).
  6. Downgrade to 0.4.17-1. and do the same (no bluetooth mic source will show up, and internal microphone continues to work).
Edited by Kei Tokita