0

HifiBerry DAC+ not recognised in Raspberry Pi 4

Hi,

I'm having trouble to get my HifiBerry DAC+ Standard to work in Raspberry Pi OS.

Kernel: 5.4.51-v7l+

In boot/config.txt:

# Uncomment some or all of these to enable the optional hardware interfaces
#dtoverlay=i2c-rtc,ds1307
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
# dtparam=audio=on
# dtparam=audio=off
dtoverlay=hifiberry-dacplus
force_eeprom_read=0
dtdebug=1

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

[all]
#dtoverlay=vc4-fkms-v3d

 

I tried with and without "dtparam=audio=off"

aplay -L gives: 
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default
Playback/recording through the PulseAudio sound server
output

cat /proc/asound/cards gives:
--- no soundcards ---

dmesg:

...
snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_headphones=1 video=HDMI-A-1:720x576M@50 smsc95xx.macaddr=DC:A6:32:8B:F9:F3 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=ea7d04d6-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x17cc0000-0x1bcc0000] (64MB)
[ 0.000000] Memory: 3655612K/4050944K available (10240K kernel code, 725K rwdata, 2740K rodata, 2048K init, 853K bss, 133188K reserved, 262144K cma-reserved, 3264512K highmem)
...
[ 0.060844] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-09-02 21:13, variant start
[ 0.070859] raspberrypi-firmware soc:firmware: Firmware hash is 4439d2aaa6c376a2d1ef4402f142e1cf4de37c43
[ 0.124272] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1
...
[ 1.172923] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.173810] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.173824] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
...
[ 3.299421] [<c085a294>] (i2c_smbus_xfer) from [<c085a40c>] (i2c_smbus_read_byte+0x58/0x7c)
[ 3.303454] r8:00000000 r7:c1204f88 r6:00000000 r5:00000000 r4:c1204f88
[ 3.305511] [<c085a3b4>] (i2c_smbus_read_byte) from [<bf13f148>] (hb_hp_detect+0x5c/0x8c [snd_soc_hifiberry_dacplus])
[ 3.309524] r5:d6c059e0 r4:c1204f88
[ 3.311517] [<bf13f0ec>] (hb_hp_detect [snd_soc_hifiberry_dacplus]) from [<bf13f1ac>] (snd_rpi_hifiberry_dacplus_probe+0x34/0x210 [snd_soc_hifiberry_dacplus])
[ 3.315513] r6:ef987e00 r5:ef987e10 r4:00001000
[ 3.317502] [<bf13f178>] (snd_rpi_hifiberry_dacplus_probe [snd_soc_hifiberry_dacplus]) from [<c0760ef8>] (platform_drv_probe+0x7c/0xb4)
[ 3.321449] r8:00000000 r7:c135da78 r6:bf1412b0 r5:ef987e10 r4:00000000
[ 3.323431] [<c0760e7c>] (platform_drv_probe) from [<c075ef38>] (really_probe+0x1ec/0x360)
[ 3.327323] r6:00000000 r5:ef987e10 r4:c135da74 r3:c0760e7c
[ 3.329279] [<c075ed4c>] (really_probe) from [<c075f2a8>] (driver_probe_device+0x70/0x1ac)
[ 3.333131] r10:d6c81f24 r9:d6c81f00 r8:00000000 r7:c1204f88 r6:bf1412b0 r5:bf1412b0
[ 3.335092] r4:ef987e10 r3:00000000
[ 3.337011] [<c075f238>] (driver_probe_device) from [<c075f5dc>] (device_driver_attach+0x68/0x70)
[ 3.340844] r9:d6c81f00 r8:00000000 r7:c1204f88 r6:bf1412b0 r5:ef987e10 r4:00000000
[ 3.342792] [<c075f574>] (device_driver_attach) from [<c075f674>] (__driver_attach+0x90/0xcc)
[ 3.346587] r6:ef987e10 r5:bf1412b0 r4:00000000 r3:c076174c
[ 3.348495] [<c075f5e4>] (__driver_attach) from [<c075ccb8>] (bus_for_each_dev+0x78/0xc4)
[ 3.352294] r6:c075f5e4 r5:bf1412b0 r4:00000000 r3:00000aea
[ 3.354191] [<c075cc40>] (bus_for_each_dev) from [<c075e794>] (driver_attach+0x2c/0x30)
[ 3.356098] r7:00000000 r6:ef977f80 r5:c126f3e8 r4:bf1412b0
[ 3.357981] [<c075e768>] (driver_attach) from [<c075e11c>] (bus_add_driver+0x140/0x1f8)
[ 3.359876] [<c075dfdc>] (bus_add_driver) from [<c075fd2c>] (driver_register+0x8c/0x124)
[ 3.363559] r7:c1204f88 r6:d6c04000 r5:bf144000 r4:bf1412b0
[ 3.365414] [<c075fca0>] (driver_register) from [<c0760e28>] (__platform_driver_register+0x50/0x58)
[ 3.369143] r5:bf144000 r4:bf141340
[ 3.370998] [<c0760dd8>] (__platform_driver_register) from [<bf144024>] (snd_rpi_hifiberry_dacplus_driver_init+0x24/0x1000 [snd_soc_hifiberry_dacplus])
[ 3.374736] [<bf144000>] (snd_rpi_hifiberry_dacplus_driver_init [snd_soc_hifiberry_dacplus]) from [<c02031c8>] (do_one_initcall+0x50/0x23c)
[ 3.378491] [<c0203178>] (do_one_initcall) from [<c02c3804>] (do_init_module+0x70/0x23c)
[ 3.382320] r9:d6c81f00 r8:00000001 r7:00000001 r6:c1204f88 r5:d6c81380 r4:bf141340
[ 3.384257] [<c02c3794>] (do_init_module) from [<c02c2734>] (load_module+0x1e78/0x2408)
[ 3.386190] r6:c1204f88 r5:bf141340 r4:d6c05f28
[ 3.388084] [<c02c08bc>] (load_module) from [<c02c2edc>] (sys_finit_module+0xbc/0xcc)
...
[ 4.643514] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0
[ 4.659601] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.669755] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.691339] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.693081] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.703085] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.709844] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 4.726623] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 4.729671] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 4.730602] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 4.730628] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 4.730649] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 4.730668] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 4.730687] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 4.731305] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 4.734060] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 4.734101] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 4.742608] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 4.742725] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 4.764144] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 4.764187] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 4.806327] fbcon_init: detected unhandled fb_set_par error, error code -16
[ 4.822697] Console: switching to colour frame buffer device 90x36
[ 4.825033] vc4-drm gpu: fb0: vc4drmfb frame buffer device
[ 4.840977] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1
[ 5.004493] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 5.113141] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 5.177697] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 5.190469] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
...

 

pi@raspberrypi:~ $ sudo vcdbg log msg
...
006581.241: brfs: File read: /mfs/sd/config.txt
006583.118: brfs: File read: 1889 bytes
006587.064: dtdebug: Opened overlay file 'overlays/hifiberry-dacplus.dtbo'
006588.428: brfs: File read: /mfs/sd/overlays/hifiberry-dacplus.dtbo
006603.663: Loaded overlay 'hifiberry-dacplus'
006605.735: dtdebug: merge_fragment(/,/fragment@0/__overlay__)
006612.122: dtdebug: merge_fragment(/dacpro_osc,/fragment@0/__overlay__/dacpro_osc)
...
006634.527: dtdebug: merge_fragment(/soc/i2c@7e804000/pcm5122@4d,/fragment@2/__overlay__/pcm5122@4d)
006634.545: dtdebug: +prop(#sound-dai-cells)
006635.019: dtdebug: +prop(compatible)
006635.452: dtdebug: +prop(reg)
006635.907: dtdebug: +prop(clocks)
...
006669.196: dtdebug: Opened overlay file 'overlays/vc4-fkms-v3d.dtbo'
006670.309: brfs: File read: /mfs/sd/overlays/vc4-fkms-v3d.dtbo
006703.444: Loaded overlay 'vc4-fkms-v3d'
...
006850.738: brfs: File read: /mfs/sd/cmdline.txt
006850.819: Read command line from file 'cmdline.txt':
...

13 comments

Please sign in to leave a comment.