# dtparam=audio=on # Comment out this line
dtoverlay=hifiberry-dacplus # Adding this line
# -- end of file --
$ aplay -l # ... lists the HiFiBerry as the sound card 2, device 0. Therefore in /etc/asound.conf I've also added:
pcm.!default {
type hw
card 2
device 0
}
ctl.!default {
type hw
card 2
device 0
}
# -- end of file
$ aplay -l
List of PLAYBACK Hardware Devices
card 0: vc4hdmi [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: sudevice #0
card 1: vc4hdmi [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: sudevice #0
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus],
device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
After rebooting and everything - several times - and testing audio on VLC and Chromium, it still defaults to the HDMI (sound card 0).
How do I know the speakers and HiFiBerry are configured correctly?
$ aplay -D hw:2,0 test.wav
Correctly output sound. So I know the hardware is properly set up. It must be a software misconfiguration somewhere.
Also, when I go into VLC for a specific sound file and into the sound settings, I can manually change the sound of the speakers and they work too... once. Once the file ends and I replay it, it goes back to the silent HDMI.
All I want is for the audio to go by default to the HiFiBerry and the passive speakers.
Anything you recommend? Your help would be greatly appreciated!