I’m using Kubuntu 24.04 on my computer, and I use a raspberry PI zero as an USB sound card. The raspberry pi side is configured as an USB Audio Class 2 (UAC2) external DACs, and is correctly detected by ubuntu. But, I want the raspberry side to be able to control the volume ( to control loundness for example). And that isn’t working anymore since ubuntu now use pipewire ( I handled that issue when using pulseaudio).
Using alsamixer, I can observe that when I manually change the volume of my USB sound card, the volume is retrieved on the raspbery side and is correctly handled. But when I change the global system volume( using the knob on my keyboard), this mixer volume doesn’t change and the volume seems to be softwarely applied.
I tried to change the profile of my USB sound card with pavucontrol to " Digital Audio(IEC958) Output" but It didn’t change anything.
How to force the system to just change the volume of my sound card mixer, and not change the volume by software ?
I managed to disable soft-mixer, but I noticed that using “USB Mixer” as mixer name is wrong, as it is “Playback Volume”. I tried to modified the value alsa.mixer_name, but it didn’t work :-/
Any idea?
Sorry, I tried multiple solution with an wireplumber configuration. It seems not be possible for now to change the mixer-name after it was autodected.
I can only change it if I disable alsa card profile ( with alsa.use-acp = false), but in this case nothing works anymore :-/
At the end, the only way I found was to rebuild the UAC2 module on my raspberry PI to correct the default mixer name :