elementary / elementary/panel-sound
Incorrect devices shown in indicator
- Dominant language
- Vala
- Stars
- 36
- Forks
- 28
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 11
Description
### What Happened?
I have the following audio devices connected:
* USB microphone with headphone jack (AT2020USB+) — source & sink
* Webcam (Logitech C920 Pro) — source
* 2x DisplayPort (RX570) — sink
* Motherboard audio controller — source & sink
I always use the USB mic as my source. For my sink, I switch between headphones plugged into the USB mic and speakers plugged into the motherboard's audio controller.
The indicator shows the incorrect active and "preferred" sinks (see screenshots below).
### Steps to Reproduce
In the following screenshots, my USB mic is set as my source & my sink.
The indicator incorrectly shows that my motherboard audio controller is the active sink, it does not show the USB mic at all, and it also shows one of my DisplayPort in the "preferred" list (I have never used these sinks).

Settings app shows the correct system state.


If it helps, here's the `gsettings` schema:
```console
$ gsettings list-recursively io.elementary.desktop.wingpanel.sound
-- snip --
io.elementary.desktop.wingpanel.sound preferred-devices {'alsa_card.usb-audio-technica_AT2020USB_-00:analog-input-mic': 1690092205, 'alsa_card.pci-0000_0b_00.3:analog-output-lineout': 1690051439}
```
### Expected Behavior
The indicator should show the correct active and "preferred" devices.
### OS Version
Other Linux
### Software Version
Latest release (I have run all updates)
### Log Output
_No response_
### Hardware Info
NixOS 23.11 (Tapir)
Contributor guide
Assessment
This issue has not been assessed yet.