My setup is HiFiBerry DAC2 Pro with Raspberry Pi 5 running raspberry pi OS is not playing any audio when hooking up to a speaker via 3.5mm jack:
tried configuring with this doc
https://www.hifiberry.com/docs/software/configuring-linux-3-18-x/
and it seems it is not working :c
could someone help me, how should I configure the config to get this working?
kernel: 6.12.34-v8-16k+ #1889 SMP PREEMPT Mon Jun 23 11:12:50 BST 2025 aarch64 GNU/Linux
i added
pcm.!default {
type hw card 0
}
ctl.!default {
type hw card 0
}
to /etc/asound.conf
sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
config.txt
# Uncomment some or all of these to enable the optional hardware interfaces
dtdebug=1
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on
force_eeprom_read=0
dtoverlay=hifiberry-dac
#tried bunch of dtoverlay, the one mentioned in the docs hifiberry-dacplus-pro is not loading
dtoverlay=vc4-kms-v3d
#having noaudio above does not help
# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
# Additional overlays and parameters are documented
# /boot/firmware/overlays/README
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Automatically load initramfs files, if found
auto_initramfs=1
# Enable DRM VC4 V3D driver
max_framebuffers=2
# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1
# Run in 64-bit mode
arm_64bit=1
# Disable compensation for displays with overscan
disable_overscan=1
# Run as fast as firmware / board allows
#hdmi_drive=2
arm_boost=1
# DAC
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[cm5]
dtoverlay=dwc2,dr_mode=host