Under Debian stretch, Linux 4.1.0, xfce4: how to divert audio output from the on-board speaker to a USB sound bar?
Trying to make sense of various web pages, I modified /etc/modprobe.d/alsa-base.conf
as follows:
options snd-usb-audio index=0
options snd-hda-intel index=-2,-2
Result of cat /proc/asound/cards
:
0 [SoundBar ]: USB-Audio - Dell AC511 USB SoundBar
Dell Dell AC511 USB SoundBar at usb-0000:00:14.0-2.4.1, full speed
1 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xf7c34000 irq 31
2 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7c30000 irq 30
Without avail: sound still goes to the onboard speaker. Funnily though, volume can be regulated with the soundbar's knob.