No sound out of HiFi Berry DAC + with Volumio2 (2.799)

Thanks a lot! :slight_smile:
I confirm this fix works. Raspberry Pi 3 A+ w Hifiberry AMP2 + DPI screen. Volume mixer works even after reboot.

Same issue on update to 2.799 here are the logs

I tried the edit to mpd.conf suggested here, with reboot. no change.
http://logs.volumio.org/volumio/QJvqixW.html

and SSH outputs:

==================================aplay=================================
volumio@volumio-listening-room:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 3/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0 [HiFiBerry DAC+ Pro HiFi pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 7: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
card 7: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
Subdevices: 2/2
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1

======================config.txt==========================================
volumio@volumio-listening-room://$ cat /boot/config.txt
initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=1

include userconfig.txt

Volumio i2s setting below: do not alter

dtoverlay=hifiberry-dacplus

====================cmdline.txt===========================================

splash quiet plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 console=serial0,115200 kgdboc=serial0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait bootdelay=5 logo.nologo vt.global_cursor_default=0 loglevel=0 snd-bcm2835.enable_compat_alsa=0

============================dmesg===================================

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.118-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1311 SMP Mon Apr 27 14:26:42 BST 2020
[ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.2
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 64 MiB at 0x000000003a000000
[ 0.000000] On node 0 totalpages: 1024000
[ 0.000000] DMA zone: 1728 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 196608 pages, LIFO batch:63
[ 0.000000] HighMem zone: 827392 pages, LIFO batch:63
[ 0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4e8 with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu s36928 r8192 d24512 u69632
[ 0.000000] pcpu-alloc: s36928 r8192 d24512 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1022272
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:63:B3:97 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 splash quiet plymouth.ignore-serial-consoles dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0xF dwc_otg.nak_holdoff=1 console=ttyS0,115200 kgdboc=ttyS0,115200 console=tty1 imgpart=/dev/mmcblk0p2 imgfile=/volumio_current.sqsh elevator=noop rootwait bootdelay=5 logo.nologo vt.global_cursor_default=0 loglevel=0 snd-bcm2835.enable_compat_alsa=0
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 3957864K/4096000K available (8192K kernel code, 690K rwdata, 2420K rodata, 2048K init, 860K bss, 72600K reserved, 65536K cma-reserved, 3244032K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0x(ptrval) - 0x(ptrval) (10208 kB)
.init : 0x(ptrval) - 0x(ptrval) (2048 kB)
.data : 0x(ptrval) - 0x(ptrval) ( 691 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 861 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 28928 entries in 85 pages
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[ 0.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000018] Switching to timer-based delay loop, resolution 18ns
[ 0.000244] Console: colour dummy device 80x30
[ 0.000269] console [tty1] enabled
[ 0.000311] Calibrating delay loop (skipped), value calculated using timer frequency… 108.00 BogoMIPS (lpj=540000)
[ 0.000328] pid_max: default: 32768 minimum: 301
[ 0.000597] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000615] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001427] CPU: Testing write buffer coherency: ok
[ 0.001835] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002474] Setting up static identity map for 0x200000 - 0x20003c
[ 0.002629] rcu: Hierarchical SRCU implementation.
[ 0.003483] smp: Bringing up secondary CPUs …
[ 0.004281] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.005198] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.006062] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.006180] smp: Brought up 1 node, 4 CPUs
[ 0.006192] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[ 0.006202] CPU: All CPU(s) started in HYP mode.
[ 0.006210] CPU: Virtualization extensions available.
[ 0.006912] devtmpfs: initialized
[ 0.017706] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[ 0.017920] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.017940] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.020090] pinctrl core: initialized pinctrl subsystem
[ 0.020886] NET: Registered protocol family 16
[ 0.024128] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.025740] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.025751] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.025943] Serial: AMBA PL011 UART driver
[ 0.028933] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.050029] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-04-27 14:33, variant start
[ 0.060045] raspberrypi-firmware soc:firmware: Firmware hash is 3a8f1793b758d6fb7f375edaa260e069ecd34c88
[ 0.103037] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[ 0.106071] vgaarb: loaded
[ 0.106423] SCSI subsystem initialized
[ 0.106620] usbcore: registered new interface driver usbfs
[ 0.106671] usbcore: registered new interface driver hub
[ 0.106772] usbcore: registered new device driver usb
[ 0.108205] clocksource: Switched to clocksource arch_sys_counter
[ 0.185907] VFS: Disk quotas dquot_6.6.0
[ 0.185986] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.186128] FS-Cache: Loaded
[ 0.186314] CacheFiles: Loaded
[ 0.195668] NET: Registered protocol family 2
[ 0.196300] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.196325] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.196390] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.196460] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.196591] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.196617] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.196816] NET: Registered protocol family 1
[ 0.197349] RPC: Registered named UNIX socket transport module.
[ 0.197359] RPC: Registered udp transport module.
[ 0.197369] RPC: Registered tcp transport module.
[ 0.197378] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.197393] PCI: CLS 0 bytes, default 64
[ 0.197591] Trying to unpack rootfs image as initramfs…
[ 1.729955] Freeing initrd memory: 19464K
[ 1.738067] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
[ 1.740234] Initialise system trusted keyrings
[ 1.740417] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[ 1.750575] FS-Cache: Netfs ‘nfs’ registered for caching
[ 1.751067] NFS: Registering the id_resolver key type
[ 1.751099] Key type id_resolver registered
[ 1.751109] Key type id_legacy registered
[ 1.751127] nfs4filelayout_init: NFSv4 File Layout Driver Registering…
[ 1.755676] Key type asymmetric registered
[ 1.755687] Asymmetric key parser ‘x509’ registered
[ 1.755798] bounce: pool size: 64 pages
[ 1.755846] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 1.756009] io scheduler noop registered (default)
[ 1.756020] io scheduler deadline registered
[ 1.756186] io scheduler cfq registered
[ 1.756196] io scheduler mq-deadline registered
[ 1.756206] io scheduler kyber registered
[ 1.806981] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000
[ 1.807001] brcm-pcie fd500000.pcie: could not get clock
[ 1.807063] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 1.807101] brcm-pcie fd500000.pcie: MEM 0x600000000…0x603ffffff -> 0xf8000000
[ 1.858239] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
[ 1.858511] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 1.858527] pci_bus 0000:00: root bus resource [bus 00-01]
[ 1.858543] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[ 1.858593] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 1.858730] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 1.861509] PCI: bus0: Fast back to back transfers disabled
[ 1.861526] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.861691] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 1.861751] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 1.861920] pci 0000:01:00.0: PME# supported from D0 D3cold
[ 1.864577] PCI: bus1: Fast back to back transfers disabled
[ 1.864593] pci_bus 0000:01: busn_res: [bus 01] end is updated to 01
[ 1.864640] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 1.864660] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 1.864690] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 1.864707] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 1.864916] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[ 1.865093] pcieport 0000:00:00.0: Signaling PME with IRQ 52
[ 1.865251] pcieport 0000:00:00.0: AER enabled with IRQ 52
[ 1.865387] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 1.865868] bcm2708_fb soc:fb: FB found 1 display(s)
[ 1.876156] Console: switching to colour frame buffer device 80x30
[ 1.878107] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 640x480
[ 1.881806] iproc-rng200 fe104000.rng: hwrng registered
[ 1.882028] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 1.882537] vc-sm: Videocore shared memory driver
[ 1.882928] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 1.893169] brd: module loaded
[ 1.902762] loop: module loaded
[ 1.903497] Loading iSCSI transport class v2.0-870.
[ 1.905211] libphy: Fixed MDIO Bus: probed
[ 1.905624] bcmgenet fd580000.genet: failed to get enet clock
[ 1.905641] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
[ 1.905658] bcmgenet fd580000.genet: failed to get enet-wol clock
[ 1.905673] bcmgenet fd580000.genet: failed to get enet-eee clock
[ 1.905696] bcmgenet: Skipping UMAC reset
[ 1.905929] unimac-mdio unimac-mdio.-19: DMA mask not set
[ 1.918232] libphy: bcmgenet MII bus: probed
[ 1.963492] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval)
[ 1.964396] usbcore: registered new interface driver r8152
[ 1.964460] usbcore: registered new interface driver lan78xx
[ 1.964513] usbcore: registered new interface driver smsc95xx
[ 1.964726] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.964776] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 1.967089] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[ 1.967264] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 53
[ 1.967873] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 1.967887] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.967899] usb usb1: Product: xHCI Host Controller
[ 1.967910] usb usb1: Manufacturer: Linux 4.19.118-v7l+ xhci-hcd
[ 1.967922] usb usb1: SerialNumber: 0000:01:00.0
[ 1.968496] hub 1-0:1.0: USB hub found
[ 1.968547] hub 1-0:1.0: 1 port detected
[ 1.968949] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 1.968970] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 1.968989] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 1.969290] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 1.969303] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.969314] usb usb2: Product: xHCI Host Controller
[ 1.969325] usb usb2: Manufacturer: Linux 4.19.118-v7l+ xhci-hcd
[ 1.969336] usb usb2: SerialNumber: 0000:01:00.0
[ 1.969822] hub 2-0:1.0: USB hub found
[ 1.969873] hub 2-0:1.0: 4 ports detected
[ 1.970978] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.971166] dwc_otg: FIQ enabled
[ 1.971175] dwc_otg: NAK holdoff enabled
[ 1.971183] dwc_otg: FIQ split-transaction FSM enabled
[ 1.971195] Module dwc_common_port init
[ 1.971411] usbcore: registered new interface driver uas
[ 1.971503] usbcore: registered new interface driver usb-storage
[ 1.971691] mousedev: PS/2 mouse device common for all mice
[ 1.972838] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 1.974432] sdhci: Secure Digital Host Controller Interface driver
[ 1.974441] sdhci: Copyright© Pierre Ossman
[ 1.974838] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[ 1.975243] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.978543] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.978692] hidraw: raw HID events driver © Jiri Kosina
[ 1.978811] usbcore: registered new interface driver usbhid
[ 1.978820] usbhid: USB HID core driver
[ 1.979739] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 1.981513] [vc_sm_connected_init]: start
[ 1.990510] [vc_sm_connected_init]: end - returning 0
[ 1.991617] Initializing XFRM netlink socket
[ 1.991644] NET: Registered protocol family 17
[ 1.991751] Key type dns_resolver registered
[ 1.992262] Registering SWP/SWPB emulation handler
[ 1.992845] registered taskstats version 1
[ 1.992862] Loading compiled-in X.509 certificates
[ 1.999882] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.999947] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
[ 2.005002] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 2.005550] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
[ 2.006188] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 2.006199] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 2.031367] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.3
[ 2.031445] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.4
[ 2.047915] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 2.049662] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.051263] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.054137] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 2.055739] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 2.060901] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[ 2.063606] of_cfs_init
[ 2.063774] of_cfs_init: OK
[ 2.072324] Freeing unused kernel memory: 2048K
[ 2.072584] Run /init as init process
[ 2.106055] random: fast init done
[ 2.158686] mmc0: new ultra high speed DDR50 SDXC card at address 1234
[ 2.162154] mmcblk0: mmc0:1234 SA64G 58.0 GiB
[ 2.162683] mmc1: new high speed SDIO card at address 0001
[ 2.164417] mmcblk0: p1 p2 p3
[ 2.230534] initramfs: Booting Volumio for BCM2835
[ 2.230688] initramfs: This script mounts rootfs RO with an overlay RW layer.
[ 2.253261] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.272567] fuse init (API version 7.27)
[ 2.273991] initramfs: IMGPART=/dev/mmcblk0p2
[ 2.274123] initramfs: IMGFILE=/volumio_current.sqsh
[ 2.274330] initramfs: Boot delay (except first time) will be 5 seconds
[ 2.318097] initramfs: /dev/mmcblk0p2:
[ 2.338258] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 2.519660] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
[ 2.519674] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 2.519687] usb 1-1: Product: USB2.0 Hub
[ 2.521616] hub 1-1:1.0: USB hub found
[ 2.521865] hub 1-1:1.0: 4 ports detected
[ 2.940643] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
[ 2.969394] usb 2-2: New USB device found, idVendor=1058, idProduct=25f3, bcdDevice=10.12
[ 2.969408] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2.969420] usb 2-2: Product: My Passport 25F3
[ 2.969433] usb 2-2: Manufacturer: Western Digital
[ 2.969444] usb 2-2: SerialNumber: 313934334850343032393438
[ 2.987658] scsi host0: uas
[ 2.989274] scsi 0:0:0:0: Direct-Access WD My Passport 25F3 1012 PQ: 0 ANSI: 6
[ 2.991031] sd 0:0:0:0: [sda] 1000148992 512-byte logical blocks: (512 GB/477 GiB)
[ 2.991045] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 2.991216] sd 0:0:0:0: [sda] Write Protect is off
[ 2.991231] sd 0:0:0:0: [sda] Mode Sense: 67 00 10 08
[ 2.991621] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, supports DPO and FUA
[ 2.991859] scsi 0:0:0:1: Enclosure WD SES Device 1012 PQ: 0 ANSI: 6
[ 2.992359] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 3.269025] sda: sda1 sda2
[ 3.271756] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
[ 3.271907] sd 0:0:0:0: [sda] Attached SCSI disk
[ 3.536160] EXT4-fs (mmcblk0p2): recovery complete
[ 4.845650] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 4.847838] initramfs: Doing a 5 second delay here to give kernel load a headstart
[ 9.852052] initramfs: Checking for USB updates
[ 9.971096] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 18.201845] EXT4-fs (mmcblk0p3): recovery complete
[ 18.205270] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[ 18.209329] initramfs: With Option:
[ 18.370599] initramfs: VOLUMIO_VERSION=“2.799”
[ 18.370745] initramfs: Finish initramfs, continue booting Volumio
[ 18.771437] random: systemd: uninitialized urandom read (16 bytes read)
[ 18.777724] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[ 18.778038] systemd[1]: Detected architecture ‘arm’.
[ 18.897775] NET: Registered protocol family 10
[ 18.899086] Segment Routing with IPv6
[ 18.899283] systemd[1]: Inserted module ‘ipv6’
[ 18.901215] systemd[1]: Set hostname to .
[ 18.990902] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read)
[ 19.068507] random: systemd: uninitialized urandom read (16 bytes read)
[ 19.143158] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue ‘ProtectKernelTunables’ in section ‘Service’
[ 19.143208] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue ‘ProtectControlGroups’ in section ‘Service’
[ 19.143253] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue ‘ProtectKernelModules’ in section ‘Service’
[ 19.143308] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue ‘RestrictNamespaces’ in section ‘Service’
[ 19.204672] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 19.207125] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 19.428005] i2c /dev entries driver
[ 19.464941] systemd-udevd[205]: starting version 215
[ 19.868019] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
[ 19.877447] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
[ 19.877969] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
[ 19.879900] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
[ 19.947684] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 19.950376] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 19.950392] [vc_sm_connected_init]: start
[ 19.962417] [vc_sm_connected_init]: installed successfully
[ 19.996922] media: Linux media interface: v0.10
[ 20.176081] videodev: Linux video capture interface: v2.00
[ 20.233936] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 20.269466] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 20.270524] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 20.289005] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 20.289051] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 20.292936] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 20.299194] snd_bcm2835: unknown parameter ‘index’ ignored
[ 20.301253] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 20.301289] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 20.304818] bcm2835_audio soc:audio: card created with 4 channels
[ 20.308987] bcm2835_audio soc:audio: card created with 4 channels
[ 20.309252] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 20.309281] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 20.469494] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 20.469712] scsi 0:0:0:1: Attached scsi generic sg1 type 13
[ 20.496665] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CPU DAI (null) not registered - will retry
[ 20.505503] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 20.600536] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 20.627818] cfg80211: Loaded X.509 cert ‘sforshee: 00b28ddf47aef9cea7’
[ 20.628974] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 20.628990] cfg80211: failed to load regulatory.db
[ 20.695265] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 20.714459] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 20.742400] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 20.746732] usbcore: registered new interface driver brcmfmac
[ 20.747280] snd-rpi-hifiberry-dacplus soc:sound: ASoC: CODEC DAI pcm512x-hifi not registered - will retry
[ 20.873035] pcm512x 1-004d: Linked as a consumer to regulator.1
[ 21.005317] snd-rpi-hifiberry-dacplus soc:sound: pcm512x-hifi <-> fe203000.i2s mapping ok
[ 21.099897] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 21.152755] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar 2 2020 23:30:41 version 7.45.202 (r724630 CY) FWID 01-72f6ece2
[ 21.184412] systemd-journald[194]: Received request to flush runtime journal from PID 1
[ 22.412734] bcmgenet: Skipping UMAC reset
[ 22.518952] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[ 22.558308] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled
[ 23.267822] Installing knfsd (copyright © 1996 okir@monad.swb.de).
[ 23.529404] bcmgenet fd580000.genet eth0: Link is Down
[ 23.701881] uart-pl011 fe201000.serial: no DMA platform data
[ 24.356775] Bluetooth: Core ver 2.22
[ 24.356841] NET: Registered protocol family 31
[ 24.356851] Bluetooth: HCI device and connection manager initialized
[ 24.356879] Bluetooth: HCI socket layer initialized
[ 24.356895] Bluetooth: L2CAP socket layer initialized
[ 24.356938] Bluetooth: SCO socket layer initialized
[ 24.470559] Bluetooth: HCI UART driver ver 2.3
[ 24.470574] Bluetooth: HCI UART protocol H4 registered
[ 24.470670] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 24.476746] Bluetooth: HCI UART protocol Broadcom registered
[ 25.524647] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 25.524653] Bluetooth: BNEP filters: protocol multicast
[ 25.524663] Bluetooth: BNEP socket layer initialized
[ 25.730181] random: crng init done
[ 25.730189] random: 7 urandom warning(s) missed due to ratelimiting
[ 25.827039] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 26.022903] hfsplus: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.
[ 28.794744] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled

Could you also try without modifying mpd.conf but with removing snd-bcm2835.enable_compat_alsa=0 from and adding snd_bcm2835.enable_headphones=1 to /boot/cmdline.txt?

gvolt - I’ve made the change to /boot/cmdline.txt and returned mpd.conf to its original state.

still no luck

I can repost logs and output if that would help

Yes, please!

do you have the chance of flashing latest image on a SD-card, changing cmdline.txt before first boot?

Guys, thanks for the troubleshooting effort!

From what I see from your logs, we have 2 problems as of now:

  1. Plugins such as equalizer and parametric eq do not get updated with the latest change (sharberger can you confirm the plugins you have installed? )
  2. On some configurations (PI0 with DSI screen, the audio jack is initialized.

I am doing another test build as of now (which adds snd_bcm2835.enable_headphones=1 ) as proposed by Darmur.

NOTE: We cannot remove compat salsa, since this work is required to prepare support for upcoming kernel 5.4

Please test and let us know, important: write also the plugins you have installed. In case you have equalizer and parametric eq, disable and enable them and save their configuration again.

original configuration has compat_alsa disabled (bcm2835.enable_compat_alsa=0)

do you mean this setting is required or the opposite (bcm2835.enable_compat_alsa=1)?

Please let me know, I can easily test both options together with snd_bcm2835.enable_headphones=1

Yes sorry I meant that.

Build is in progress :wink: Please test it and report back :wink:

thanks a lot for your contributions!

EDIT: it looks like a power cycle is required! Doing that I have correct configuration! even with bcm2835.enable_compat_alsa=0

with DSI touchscreen and snd_bcm2835.enable_headphones=1 snd-bcm2835.enable_compat_alsa=0

volumio@volumio-home:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
card 2: 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

1 Like

with DSI touchscreen NOT connected and snd_bcm2835.enable_headphones=1 snd-bcm2835.enable_compat_alsa=0

volumio@volumio-home:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
card 2: 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

I fixed the problem by editing the /etc/mpd.conf file according findings Darmur. Both the Spotify plugin’s don’t work (Spotify version 2.2.2 and Volumio Spotify Connect2 version 1.0.3), no sound on output of the Hifiberry DAC 2 HD audio board. Also installed Radio Paradise plugin version 1.1.3 and works.

It wasn’t me who suggested to edit /etc/mpd.conf, I don’t recommend that at all

Better to edit /boot/cmdline.txt adding snd_bcm2835.enable_headphones=1, don’t forget to power-cycle after that

@Darmur
You also seem to have a Hifiberry Amp2?
Did you manage to enable the hardware volume mixer with the suggested cmdline.txt?

I was not able to set it up with snd_bcm2835.enable_compat_alsa=0.

I don’t have that board, but the trick should work with any I2S DAC/AMP

The issue was caused by a “wrong” alsa configuration caused by the new kernel while Volumio was still referring to the old good one.

If your Hifiberry Amp2 will be mapped as card2 you should have back your HW volume mixer

For some reason I only have working volume controls with

remove snd-bcm2835.enable_compat_alsa=0
add snd_bcm2835.enable_headphones=1

when having both lines in the cmdline.txt I can’t change volume and after a reboot / powercycle the hardware mixer disappears and it says “undefined” in the mixer tab. I can’t set it to “hardware” as only “software” or “none” are available in the drop down menu.

Can I change the cmdline.txt with sudo nano and then power cycle? Or do I have to prepare a clean image everytime?

you can do that, this is the way I’m testing those changes.

Please try to post here the log of aplay -l and to apply again playback settings in Volumio, after applying the fix

Sorry, it was Panos70 that suggested to edit the /etc/etc/mpd.conf file!

I got it working using snd-bcm2835.enable_compat_alsa=1 + snd_bcm2835.enable_headphones=1
Here are the logs:

snd-bcm2835.enable_compat_alsa=0 + snd_bcm2835.enable_headphones=1

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0

snd-bcm2835.enable_compat_alsa=1 + snd_bcm2835.enable_headphones=1

**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 3/3
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
card 2: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0

Pi 3A+ Hifiberry Amp2 + DSI Display

EDIT: But as I understand the line snd-bcm2835.enable_compat_alsa=0 has to remain in the cmdline.txt? Or does it not matter whether the value is 0 or 1

you can set the variable snd-bcm2835.enable_compat_alsa from cmdline.txt to 0 or 1, it does not make sense to have both declarations (=0 and then =1)

default value for this option is 1, so when you remove the string is equivalent of setting snd-bcm2835.enable_compat_alsa=1

in your case, with snd-bcm2835.enable_compat_alsa=0 you don’t have HDMI output in alsamixer, your HiFiberry shifts to card1 instead of card2 so you lose playback and HW mixer

could you please try to add snd_bcm2835.enable_hdmi=1 too?

snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd-bcm2835.enable_compat_alsa=0

No sound with these settings:

log:

**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0