1

HiFiBerry Amp2 with RPi CM4IO board - Default always on HDMI!?

Here's a setup I'm trying to get up and running: 
- A Raspberry Pi CM4 and CM4IO board (same as RPi 4)
- An HDMI for a display connected
- A HiFiBerry Amp2 power amplifier and a pair of (woofer, tweeter) connected to it
 
Configuring the Amp2
Running Raspbian OS.
Re-configured the /boot/config.txt and changed the following:

# 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!

0 comments

Please sign in to leave a comment.