Bug 453865

Summary: switching audio output device leaves both selected post upgrade to 5.24.5
Product: [Plasma] plasma-pa Reporter: DanielR-I <kde.bugtracker>
Component: appletAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED UPSTREAM    
Severity: normal CC: me, nate, nowrep
Priority: NOR    
Version: 5.24.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: plasma-pa with two audio output devices selected

Description DanielR-I 2022-05-16 04:16:39 UTC
Created attachment 148871 [details]
plasma-pa with two audio output devices selected

SUMMARY
***
switching audio output device leaves both selected post upgrade to 5.24.5
***


STEPS TO REPRODUCE
1. Speakers and USB headphones connected to system, with default audio output device being the speakers
2. open the plasma-pa applet and select the headphones as the new audio output destination
3. note that both audio output destinations are selected (radio buttons filled)

OBSERVED RESULT
After changing the audio output destination from speakers to headphones, both devices appear to be selected.

EXPECTED RESULT
After changing the audio output destination from speakers to headphones, the applet should refresh to show that only the headphones are selected as the audio output destination.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
Operating System: Manjaro Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3
Kernel Version: 5.15.38-1-MANJARO (64-bit)
Graphics Platform: X11


ADDITIONAL INFORMATION
I am using Manjaro KDE Plasma, and after the last Manjaro update **KDE Plasma** was updated to **5.24.5**.

After applying the update and rebooting, I have an issue in **Audio** applet (**plasma-pa**)where I can swap (once) between my two audio devices (**S/PDIF speakers** => **USB headphones**); however, but both output devices appear selected after the click/swap (see attachment).  Once both output devices are selected, switching no longer appears to be possible.

My current work around is to unplug/re-plug my USB headset when I want to return to my speakers. And because the swap to headset works via **plasma-pa**, I can swap normally and just ignore the dual-selection.

In case it's important to note... I can confirm that only one audio output was really being output to, and seconded this by observing the change in the **KDE System Settings** => **Hardware** => **Audio**.  However, if I try switch between my audio devices in **KDE System Settings**, I can replicate the multi-device selection issue... so it's not exclusive to **plasma-pa**.

Within **KDE System Settings** I have the advantage of being able to switch between "tabs" (Audio => Multimedia => Audio) to force a refresh to see that really only one device is selected after switching the audio output device there... but I don't know how to force a refresh of **plasma-pa**.

Perhaps another way to try explain the issue is that a trigger to refresh **plasma-pa** (and **KDE System Settings**) appears to be missing after a new audio output device is selected (when multiple output devices are available to choose from).

In case it's important to note... **pulseaudio** is actually being provided by **pipewire-pulse**.  I have been using **pipewire** for a few months now, so that is not new... however, **pipewire** was also updated with the same recent Manjaro update to **pipewire 0.3.51**.
Comment 1 DanielR-I 2022-05-23 19:48:36 UTC
It looks like my issue has been resolved with the latest Manjaro updates!  The announcement for the update states "KDE Gear 22.04.1 3 and KDE frameworks 5.94 2 got added"... so perhaps the issue I reported was more related to a dependency and not plamsa-pa itself.

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.41-1-MANJARO (64-bit)
Graphics Platform: X11
Comment 2 Nate Graham 2022-05-23 20:02:54 UTC
Oh good!