A pair of cheap speakers plugged in to my line out analog socket.
An audiophile grade async USB DAC
When I adjust volume control I see the following entries…
Digital Output (S/PDIF) - Azur DacMagic 100 [This is the correct entry for my DAC]
Analog Output - Azur DacMagic 100 [This makes no sense as there is no Analog output to the DAC]
Digital Output (S/PDIF) - Built-in Audio
Line Out - Built-in Audio
I would like to hide the 2nd and 3rd entries in the list. If I open them up through PulseAudio volume control they are not there and only the ‘correct’ entry for the device is active.
comment out the whole section ### Automatically load driver modules
to prevent module-udev-detect or module-detect loading
in the section ### Load audio drivers statically uncomment #load-module alsa-sink
and add sinks like this (but with correct device ID numbers from aplay -l)
uncomment load-module-alsa-source to add audio inputs if required
restart Pulseaudio to load new configuration – systemctl --user restart pulseaudio
I prefer this method because there are lots of additional options to configure the sinks module-alsa-sink – PulseAudio
BUT
If the other GUI is showing ALSA controls, the Analog output for the DAC cannot be disabled within ALSA. I do not know of a Linux tool that can hack USB device configurations
There is a tool that can disable The Digital S/PDIF output for the onboard audio device alsa-tools package has hdajackretask GUI to reconfigure audio connections
That can be used to reconfigure the onboard S/PDIF output jack** as ‘Not Connected’ with a Boot Override
I am also using the same extension, so I was able to go into the Settings for the Extension via the Extensions app and disable the outputs and inputs that I didn’t want to see.