-
Disable onboard audio
-
open
/etc/modprobe.d/raspi-blacklist.conf
-
add
blacklist snd_bcm2835
-
Setup sound device alias
-
open
/lib/modprobe.d/aliases.conf
-
comment out line
options snd-usb-audio index=-2
That line overrides the /etc/modprobe.d/
files
# These are the standard aliases and dependencies.
# This file does not need to be modified.
# prevent unusual drivers from appearing as the first sound device ###########
options snd-pcsp index=-2
#options snd-usb-audio index=-2
options cx88_alsa index=-2
options snd-atiixp-modem index=-2
options snd-intel8x0m index=-2
options snd-via82xx-modem index=-2
# work around other kernel issues ############################################
# The EHCI driver should be loaded before the ones for low speed controllers
# or some devices may be confused when they are disconnected and reconnected.
softdep uhci-hcd pre: ehci-hcd
softdep ohci-hcd pre: ehci-hcd
- Play audio without root
$ sudo adduser <your-name> audio
- Reboot
$ sudo reboot
- Test it out
$ aplay /usr/share/sounds/alsa/Front_Center.wav
BEWARE of .asoundrc
which is a hidden file in your home folder - remove it!!