Audio output switching anomalies
Early versions of wireplumber had a bug that prevented switching the audio output from the earpiece back to the speaker after a call, meaning the next call would ring through the earpiece. This was issue #156 and is fixed in v0.5.2, available now in Trixie.

That fix unmasks 2 other related issues which I suspect have been around for awhile.

1) When I disconnect a call that had been on speaker, the output sometimes gets switched to the earpiece instead of being left on the speaker. The next call then rings through the earpiece. The currently-selected ports can be queried with:
pactl list|grep 'Active Port: '

2) When the audio is set to Earpiece and a call is received, when I answer it the audio sometimes gets switched to the speaker instead of remaining on the earpiece. This can be tested by forcing the output before getting a call:
pactl set-sink-port "@DEFAULT_SINK@" "[Out] Earpiece"

In both cases, it's like the audio system is sometimes doing a simple toggle of the output instead of routing it correctly. These issues could be due to a configuration problem rather than a bug in wireplumber. I have not seen any failure to switch the profile between "HiFi" and "Voice Call", it seems to be just the output destination that can be wrong.

The intermittent nature is confounding, as is my general ignorance of Linux audio.  I don't know if any current wireplumber reports cover this but I did find this likely match for ALSA on Mobian.

Has anyone else observed these issues? Does anyone have insight on where to start debugging this?
I've observed those issues. Sometimes, just after a call, changing the output device is impossible. It switches from earpiece to speaker when I stop charging the phone too, weird.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bluetooth audio revisited 3x5co 1 1,247 01-10-2023, 05:51 PM
Last Post: Zebulon Walton
  No audio on calls after updating today Zebulon Walton 10 5,221 12-12-2022, 09:55 PM
Last Post: BaronAlbatross
  Ringtones and Audio Modes biketool 0 876 09-05-2022, 10:42 AM
Last Post: biketool
  Giving certain audio apps priority on the lock screen and pulldown 3x5co 0 968 07-17-2022, 10:34 AM
Last Post: 3x5co
  no HDMI (DP) Output over Dock vuj 17 12,091 06-11-2022, 05:51 AM
Last Post: zltpxqhp69o2
  Bluetooth audio support? Zebulon Walton 5 4,065 02-28-2022, 08:59 AM
Last Post: Zebulon Walton
  Help! Audio stopped working Barugon 4 3,599 11-03-2021, 10:58 AM
Last Post: Barugon
  What causes the long delays which switching or starting apps? motox6 10 8,475 10-17-2021, 05:58 AM
Last Post: vortex
  Can't connet to car audio using bluetooth Barugon 1 1,741 10-16-2021, 01:42 PM
Last Post: Zebulon Walton
  Is there a better audio / podcast player? motox6 15 14,807 08-24-2021, 04:08 PM
Last Post: ragreenburg

Forum Jump:

Users browsing this thread: 1 Guest(s)