On Mon, Dec 20, 2021 at 09:59:29AM +0100, Richard Ulmer wrote: > Hi Alexandre, Hi Christian, > thanks for you responses! In the meantime Ralf Horstmann had also > contacted me and helped me find a workaround. > > Alexandre Ratchov <a...@caoua.org> wrote: > > Keyboard volume keys control volume of first audio device. > > We probably have different definitions of 'first audio device', but even > if I put 'rcctl set sndiod flags -f rsnd/1' into /etc/hotplug/attach and > 'rcctl set sndiod flags -f rsnd/0' into /etc/hotplug/detach, so that > only one audio device is configured at a time, the volume keys only work > for the internal device. >
Sorry, I was refering to the first instance of the audio(4) driver, a.k.a the "audio0 at ..." in dmesg output. The volume keys are handled entierly inside the kernel with direct calls from the wskbd driver to audio driver, so the logic is completely out of the scope of sndiod or any program.