HifiBerry DAC Light: Playback open error: -16,Device or resource busy
Started by besibesi




1 posts in this topic
besibesi

1 posts 1 threads Joined: May 2022
05-05-22, 06:21 -
#1
I have a RaspberryPi Zero W and the HifiBerry DAC.
[Image: dacplus-zero.jpg]

I have used it before without problems and now I have an image with [samplerbox](https://homspace.nl/samplerbox) and I added the line to `/boot/config.txt`:

Code:
dtoverlay=hifiberry-dac


I now get the error when running `speaker-test`:


Code:
ALSA lib pcm_dmix.c:1108:(snd_pcm_dmix_open) unable to open slave
Playback open error: -16,Device or resource busy


I did also run the script for the adafruit i2s DAC:

Code:
curl -sS https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | bash



Some debugging:

Code:
    cat /proc/asound/cards
    0 [sndrpihifiberry]: RPi-simple - snd_rpi_hifiberry_dac
                          snd_rpi_hifiberry_dac

    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: 0/1
      Subdevice #0: subdevice #0
   

    aplay -L
    null
        Discard all samples (playback) or generate zero samples (capture)
    speakerbonnet
    dmixer
    softvol
    default
    sysdefault:CARD=sndrpihifiberry
        snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
        Default Audio Device
    dmix:CARD=sndrpihifiberry,DEV=0
        snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
        Direct sample mixing device
    dsnoop:CARD=sndrpihifiberry,DEV=0
        snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
        Direct sample snooping device
    hw:CARD=sndrpihifiberry,DEV=0
        snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
        Direct hardware device without any conversions
    plughw:CARD=sndrpihifiberry,DEV=0
        snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
        Hardware device with all software conversions



    sudo vcdbg log msg
    001358.826: brfs: File read: /mfs/sd/config.txt
    001359.779: brfs: File read: 1955 bytes
    001448.714: brfs: File read: /mfs/sd/config.txt
    001449.597: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
    001469.225: brfs: File read: 1955 bytes
    001646.660: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
    001646.714: *** Restart logging
    001685.082: HDMI0: hdmi_pixel_encoding: 162000000
    001686.834: dtb_file 'bcm2708-rpi-zero-w.dtb'
    001694.353: brfs: File read: /mfs/sd/bcm2708-rpi-zero-w.dtb
    001694.378: Loading 'bcm2708-rpi-zero-w.dtb' to 0x100 size 0x67b1
    001707.167: brfs: File read: 26545 bytes
    001720.812: brfs: File read: /mfs/sd/overlays/overlay_map.dtb
    001787.035: brfs: File read: 1523 bytes
    001791.609: brfs: File read: /mfs/sd/config.txt
    001791.768: dtparam: i2c_arm=on
    001799.957: dtparam: i2s=on
    001806.934: dtparam: spi=on
    001814.329: dtwarn: overlay 'pi3-miniuart-bt' has been renamed 'miniuart-bt'
    001814.967: brfs: File read: 1955 bytes
    001825.018: brfs: File read: /mfs/sd/overlays/miniuart-bt.dtbo
    001847.704: Loaded overlay 'pi3-miniuart-bt'
    001897.525: brfs: File read: 1819 bytes
    001906.627: brfs: File read: /mfs/sd/overlays/midi-uart0.dtbo
    001913.351: Loaded overlay 'midi-uart0'
    001930.586: brfs: File read: 716 bytes
    001948.697: brfs: File read: /mfs/sd/overlays/hifiberry-dac.dtbo
    001958.428: Loaded overlay 'hifiberry-dac'
    001988.412: brfs: File read: 655 bytes
    001992.686: brfs: File read: /mfs/sd/cmdline.txt
    001992.730: Read command line from file 'cmdline.txt':
    001992.754: 'console=tty1 root=PARTUUID=3146c77c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro rfkill.default_state=1 systemd.restore_state=0 ipv6.disable=1'
    002007.360: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined
    003704.380: brfs: File read: 179 bytes
    004109.597: brfs: File read: /mfs/sd/kernel.img
    004109.614: Loading 'kernel.img' to 0x8000 size 0x5b46f8
    004109.636: Device tree loaded to 0x1bfe9200 (size 0x6d22)
    004112.399: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
    008697.270: vchiq_core: vchiq_init_state: slot_zero = 0x97d80000, is_master = 1
    008701.545: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
    008707.992: TV service:host side not connected, dropping notification 0x00000002, 0x00000001, 0x00000010

config.txt

Code:
    # For more options and information see
    # http://rpf.io/configtxt
    # Some settings may impact device functionality. See link above for details
   
    # File is manually customized for samplerbox, see
    #  config.txt.org for the one initially adapted via raspi-config
   
    gpu_mem=64
    boot_delay=0
    boot_delay_ms=0
    disable_splash=1
    disable_audio_dither=1
   
    # Distribution enables I2C and SPI by default to ease customization
    # If you need affected pins for other purpose, comment applicable peripheral
    dtparam=i2c_arm=on
    dtparam=i2s=on
    dtparam=spi=on
   
    # Distribution enables the serial midi port (DIY 5-pole DIN) to ease customization
    # If you need affected pins for other purpose, comment lines below
    enable_uart=1
    dtoverlay=pi3-miniuart-bt
    dtoverlay=midi-uart0
   
    # Enable onboard, hdmi or usb-dac audio (loads snd_bcm2835)
    # Set this to off to use a dac requiring an overlay statement below
    #dtparam=audio=on
   
    # For a complete list of all available overlays, see overlays/README
    # For hifiberry (or compatible like PiFi) dacs uncomment appropriate parm:
    #dtoverlay=hifiberry-dacplus
    #dtoverlay=hifiberry-digi
    #dtoverlay=hifiberry-amp
    # For some hifiberries (see https://www.hifiberry.com/docs/software -> Linux) uncomment:
    #force_eeprom_read=0
   
    # For Pimoroni PirateAudio uncomment the following (and dtoverlay=hifiberry-dac above)
    #gpio=25=op,dh
   
   
    [pi4]
    # Enable DRM VC4 V3D driver on top of the dispmanx display stack
    #dtoverlay=vc4-fkms-v3d,audio=off
    #max_framebuffers=2
   
    #hdmi_ignore_edid_audio
    # Setting hdmi_ignore_edid_audio to 1 pretends that all audio formats are unsupported by the display.
    # This means ALSA will default to the analogue audio (headphone) jack.
   
    #hdmi_force_edid_audio
    # Setting hdmi_force_edid_audio to 1 pretends that all audio formats are supported by the display,
    # allowing passthrough of DTS/AC3 even when this is not reported as supported.
   
    [all]
    #dtoverlay=vc4-fkms-v3d
    #dtoverlay=i2s-mmap
   
   
    force_eeprom_read=0
    dtoverlay=hifiberry-dac

dmesg

Code:
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.10.17+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1421 Thu May 27 13:58:02 BST 2021
    [    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    [    0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] Reserved memory: created CMA memory pool at 0x17c00000, size 64 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]  Normal  [mem 0x0000000000000000-0x000000001bffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]  node  0: [mem 0x0000000000000000-0x000000001bffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001bffffff]
    [    0.000000] On node 0 totalpages: 114688
    [    0.000000]  Normal zone: 1008 pages used for memmap
    [    0.000000]  Normal zone: 0 pages reserved
    [    0.000000]  Normal zone: 114688 pages, LIFO batch:31
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 113680
    [    0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:D4:A5:66 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  console=tty1 root=PARTUUID=3146c77c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fastboot noswap ro rfkill.default_state=1 systemd.restore_state=0 ipv6.disable=1
    [    0.000000] Kernel parameter elevator= does not have any effect anymore.
                  Please use sysfs to set IO scheduler for individual devices.
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 374452K/458752K available (8638K kernel code, 1324K rwdata, 2816K rodata, 420K init, 837K bss, 18764K reserved, 65536K cma-reserved)
    [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] ftrace: allocating 30576 entries in 60 pages
    [    0.000000] ftrace: allocated 60 pages with 4 groups
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] random: get_random_bytes called from start_kernel+0x324/0x564 with crng_init=0
    [    0.000024] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
    [    0.000094] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
    [    0.000180] bcm2835: system timer (irq = 27)
    [    0.000837] Console: colour dummy device 80x30
    [    0.001508] printk: console [tty1] enabled
    [    0.001604] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
    [    0.060338] pid_max: default: 32768 minimum: 301
    [    0.060631] LSM: Security Framework initializing
    [    0.060953] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.061021] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.063169] Disabling memory control group subsystem
    [    0.063466] CPU: Testing write buffer coherency: ok
    [    0.065269] Setting up static identity map for 0x8200 - 0x8238
    [    0.066531] devtmpfs: initialized
    [    0.079605] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
    [    0.079991] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.080074] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.087942] pinctrl core: initialized pinctrl subsystem
    [    0.089814] NET: Registered protocol family 16
    [    0.094742] DMA: preallocated 1024 KiB pool for atomic coherent allocations
    [    0.101160] audit: initializing netlink subsys (disabled)
    [    0.102649] thermal_sys: Registered thermal governor 'step_wise'
    [    0.103837] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
    [    0.103926] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.104187] Serial: AMBA PL011 UART driver
    [    0.110687] audit: type=2000 audit(0.100:1): state=initialized audit_enabled=0 res=1
    [    0.131280] bcm2835-mbox 2000b880.mailbox: mailbox enabled
    [    0.150819] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-05-27T14:04:13, variant start
    [    0.160837] raspberrypi-firmware soc:firmware: Firmware hash is 7d9a298cda813f747b51fe17e1e417e7bf5ca94d
    [    0.219148] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1
    [    0.222337] SCSI subsystem initialized
    [    0.222812] usbcore: registered new interface driver usbfs
    [    0.222958] usbcore: registered new interface driver hub
    [    0.223091] usbcore: registered new device driver usb
    [    0.225981] clocksource: Switched to clocksource timer
    [    2.224305] VFS: Disk quotas dquot_6.6.0
    [    2.224485] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    2.224769] FS-Cache: Loaded
    [    2.225156] CacheFiles: Loaded
    [    2.243293] NET: Registered protocol family 2
    [    2.244607] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [    2.244757] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    2.244875] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    2.244978] TCP: Hash tables configured (established 4096 bind 4096)
    [    2.245182] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    2.245257] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    2.245748] NET: Registered protocol family 1
    [    2.247086] RPC: Registered named UNIX socket transport module.
    [    2.247158] RPC: Registered udp transport module.
    [    2.247194] RPC: Registered tcp transport module.
    [    2.247227] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    2.248965] hw perfevents: no irqs for PMU, sampling events not supported
    [    2.249086] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
    [    2.253610] Initialise system trusted keyrings
    [    2.254307] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    2.266428] zbud: loaded
    [    2.269457] FS-Cache: Netfs 'nfs' registered for caching
    [    2.270906] NFS: Registering the id_resolver key type
    [    2.271017] Key type id_resolver registered
    [    2.271057] Key type id_legacy registered
    [    2.271340] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    2.273268] Key type asymmetric registered
    [    2.273343] Asymmetric key parser 'x509' registered
    [    2.273462] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    [    2.273514] io scheduler mq-deadline registered
    [    2.273551] io scheduler kyber registered
    [    2.276836] bcm2708_fb soc:fb: FB found 1 display(s)
    [    2.336006] random: fast init done
    [    2.337596] Console: switching to colour frame buffer device 228x61
    [    2.371478] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1824x984
    [    2.378061] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
    [    2.382738] bcm2835-rng 20104000.rng: hwrng registered
    [    2.383680] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
    [    2.385756] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
    [    2.410558] brd: module loaded
    [    2.427652] loop: module loaded
    [    2.430117] Loading iSCSI transport class v2.0-870.
    [    2.433093] libphy: Fixed MDIO Bus: probed
    [    2.433764] usbcore: registered new interface driver smsc95xx
    [    2.434037] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    [    3.162621] Core Release: 2.80a
    [    3.162787] Setting default values for core params
    [    3.162980] Finished setting default values for core params
    [    3.363527] Using Buffer DMA mode
    [    3.363715] Periodic Transfer Interrupt Enhancement - disabled
    [    3.363949] Multiprocessor Interrupt Enhancement - disabled
    [    3.364171] OTG VER PARAM: 0, OTG VER FLAG: 0
    [    3.364514] Dedicated Tx FIFOs mode
   
    [    3.365731] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = d7d14000 dma = 0x97d14000 len=9024
    [    3.366291] FIQ FSM acceleration enabled for :
                  Non-periodic Split Transactions
                  Periodic Split Transactions
                  High-Speed Isochronous Endpoints
                  Interrupt/Control Split Transaction hack enabled
    [    3.384785] dwc_otg: Microframe scheduler enabled
   
    [    3.385078] WARN::hcd_init_fiq:457: FIQ on core 0
   
    [    3.402779] WARN::hcd_init_fiq:458: FIQ ASM at c0652330 length 36
   
    [    3.420225] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
    [    3.437734] dwc_otg 20980000.usb: DWC OTG Controller
    [    3.446566] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
    [    3.455853] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
    [    3.464828] Init: Port Power? op_state=1
    [    3.473964] Init: Power Port (0)
    [    3.483320] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    3.492609] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    3.501493] usb usb1: Product: DWC OTG Controller
    [    3.510617] usb usb1: Manufacturer: Linux 5.10.17+ dwc_otg_hcd
    [    3.519416] usb usb1: SerialNumber: 20980000.usb
    [    3.529629] hub 1-0:1.0: USB hub found
    [    3.538898] hub 1-0:1.0: 1 port detected
    [    3.549568] dwc_otg: FIQ enabled
    [    3.549596] dwc_otg: NAK holdoff enabled
    [    3.549612] dwc_otg: FIQ split-transaction FSM enabled
    [    3.549641] Module dwc_common_port init
    [    3.550285] usbcore: registered new interface driver usb-storage
    [    3.560327] mousedev: PS/2 mouse device common for all mice
    [    3.571227] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
    [    3.584041] sdhci: Secure Digital Host Controller Interface driver
    [    3.593410] sdhci: Copyright(c) Pierre Ossman
    [    3.603346] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe
    [    3.613484] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
    [    3.623359] sdhci-pltfm: SDHCI platform and OF driver helper
    [    3.633329] ledtrig-cpu: registered to indicate activity on CPUs
    [    3.643352] hid: raw HID events driver (C) Jiri Kosina
    [    3.652701] usbcore: registered new interface driver usbhid
    [    3.661966] usbhid: USB HID core driver
    [    3.678494] Initializing XFRM netlink socket
    [    3.688402] NET: Registered protocol family 17
    [    3.697448] Key type dns_resolver registered
    [    3.707688] registered taskstats version 1
    [    3.716325] Loading compiled-in X.509 certificates
    [    3.742627] uart-pl011 20201000.serial: there is not valid maps for state default
    [    3.751834] uart-pl011 20201000.serial: cts_event_workaround enabled
    [    3.761071] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
    [    3.775038] 20215040.serial: ttyS0 at MMIO 0x20215040 (irq = 53, base_baud = 50000000) is a 16550
    [    3.785955] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
    [    3.797867] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0
    [    3.807293] mmc-bcm2835 20300000.mmcnr: DMA channel allocated
    [    3.817112] Indeed it is in host mode hprt0 = 00021501
    [    3.902442] sdhost: log_buf @ (ptrval) (97d13000)
    [    3.948707] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
    [    3.959950] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    3.968964] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
    [    3.982942] of_cfs_init
    [    4.012592] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
    [    4.022145] of_cfs_init: OK
    [    4.034383] Waiting for root device PARTUUID=3146c77c-02...
    [    4.043745] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
    [    4.052693] usb 1-1: new full-speed USB device number 2 using dwc_otg
    [    4.062733] Indeed it is in host mode hprt0 = 00021501
    [    4.195171] mmc0: host does not support reading read-only switch, assuming write-enable
    [    4.211216] mmc0: new high speed SDHC card at address aaaa
    [    4.222662] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
    [    4.240270]  mmcblk0: p1 p2 p3
    [    4.280667] mmc1: new high speed SDIO card at address 0001
    [    4.304744] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    4.315938] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [    4.326869] usb 1-1: New USB device found, idVendor=05ac, idProduct=026c, bcdDevice= 8.52
    [    4.336410] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    4.345786] usb 1-1: Product: Magic Keyboard with Numeric Keypad
    [    4.355218] usb 1-1: Manufacturer: Apple Inc.
    [    4.364461] usb 1-1: SerialNumber: F0T92730023HTH7A2
    [    4.385403] devtmpfs: mounted
    [    4.396270] hid-generic 0003:05AC:026C.0001: hiddev96,hidraw0: USB HID v1.10 Device [Apple Inc. Magic Keyboard with Numeric Keypad] on usb-20980000.usb-1/input0
    [    4.413658] Freeing unused kernel memory: 420K
    [    4.423704] Kernel memory protection not selected by kernel config.
    [    4.434842] Run /sbin/init as init process
    [    4.444952]  with arguments:
    [    4.444970]    /sbin/init
    [    4.444983]    fastboot
    [    4.444994]    noswap
    [    4.445005]  with environment:
    [    4.445035]    HOME=/
    [    4.445048]    TERM=linux
    [    4.452313] input: Apple Inc. Magic Keyboard with Numeric Keypad Keyboard as /devices/platform/soc/20980000.usb/usb1/1-1/1-1:1.1/0003:05AC:026C.0002/input/input0
    [    4.527922] input: Apple Inc. Magic Keyboard with Numeric Keypad Consumer Control as /devices/platform/soc/20980000.usb/usb1/1-1/1-1:1.1/0003:05AC:026C.0002/input/input1
    [    4.541240] hid-generic 0003:05AC:026C.0002: input,hiddev97,hidraw1: USB HID v1.10 Keyboard [Apple Inc. Magic Keyboard with Numeric Keypad] on usb-20980000.usb-1/input1
    [    5.238181] systemd[1]: System time before build time, advancing clock.
    [    5.439140] IPv6: Loaded, but administratively disabled, reboot required to enable
    [    5.563080] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
    [    5.589103] systemd[1]: Detected architecture arm.
    [    5.659426] systemd[1]: Set hostname to <samplerbox>.
    [    8.136422] random: systemd: uninitialized urandom read (16 bytes read)
    [    8.454686] random: systemd: uninitialized urandom read (16 bytes read)
    [    8.467467] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    8.494437] random: systemd: uninitialized urandom read (16 bytes read)
    [    8.507256] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    8.535132] systemd[1]: Listening on udev Control Socket.
    [    8.563405] systemd[1]: Listening on Journal Socket.
    [    8.611751] systemd[1]: Starting Load Kernel Modules...
    [    8.661744] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
    [    8.718250] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    [    8.939906] i2c /dev entries driver
    [  10.690822] systemd[1]: Starting File System Check on Root Device...
    [  10.898150] systemd[1]: Starting Apply Kernel Variables...
    [  11.030153] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
    [  11.217841] systemd[1]: Mounting Kernel Configuration File System...
    [  11.506741] systemd[1]: Started File System Check on Root Device.
    [  11.706469] systemd[1]: Started Apply Kernel Variables.
    [  11.749962] systemd[1]: Mounted Kernel Configuration File System.
    [  11.891236] systemd[1]: Starting Remount Root and Kernel File Systems...
    [  11.947422] systemd[1]: Started Journal Service.
    [  12.980713] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    [  14.389957] systemd-journald[93]: Received request to flush runtime journal from PID 1
    [  16.312245] mc: Linux media interface: v0.10
    [  16.556352] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
    [  16.559460] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
    [  16.559502] [vc_sm_connected_init]: start
    [  16.648788] [vc_sm_connected_init]: installed successfully
    [  16.723125] videodev: Linux video capture interface: v2.00
    [  16.936569] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [  16.941069] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
    [  16.988566] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
    [  17.022186] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
    [  17.071235] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
    [  17.175308] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
    [  17.182074] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
    [  17.206769] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
    [  17.212548] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
    [  17.212605] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
    [  17.212642] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
    [  17.212672] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
    [  17.212701] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
    [  17.226221] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
    [  17.226315] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
    [  17.227381] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
    [  17.298697] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
    [  17.298802] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
    [  17.372001] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
    [  17.372109] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
    [  20.598371] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [  21.218907] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [  22.097172] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
    [  22.107958] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    [  22.108481] usbcore: registered new interface driver brcmfmac
    [  22.143502] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
    [  22.442506] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
    [  22.442778] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
    [  22.444096] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 22 2019 01:59:28 version 7.45.98.94 (r723000 CY) FWID 01-3b33decd
    [  22.458127] apple 0003:05AC:026C.0001: hiddev96,hidraw0: USB HID v1.10 Device [Apple Inc. Magic Keyboard with Numeric Keypad] on usb-20980000.usb-1/input0
    [  22.649823] input: Apple Inc. Magic Keyboard with Numeric Keypad as /devices/platform/soc/20980000.usb/usb1/1-1/1-1:1.1/0003:05AC:026C.0002/input/input3
    [  22.767935] apple 0003:05AC:026C.0002: input,hiddev97,hidraw1: USB HID v1.10 Keyboard [Apple Inc. Magic Keyboard with Numeric Keypad] on usb-20980000.usb-1/input1
    [  25.205255] random: crng init done
    [  25.205289] random: 7 urandom warning(s) missed due to ratelimiting
    [  26.324655] fuse: init (API version 7.32)
    [  31.331165] 8021q: 802.1Q VLAN Support v1.8
    [  39.661065] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
    [  451.617136] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

Please note that I did cross-post my question to https://raspberrypi.stackexchange.com/q/137342
This post was last modified: 05-05-22, 06:24 by besibesi.
noek

37 posts 0 threads Joined: Jan 2021
06-05-22, 21:49 -
#2
Hi Besibesi,
I assume that you started your actions because you don't have sound now.

Some remarks:

If samplerbox is started, the audio device is busy, because it's in use by samplerbox.
There was no need to install extra software. Samplerbox is reported to run hifiberry out of the box, after making two changes in the config.txt.
One change is adding the appropriate overlay, which you (or the install) did.
I noticed you (or the install) also commented the dtparam line in the config (the second config change), which should rule out any conflicts there, but the comments state you should set it to off.
You also added force_eeprom_read=0, but I doubt this has influence here and I understood this has to be used from some hifiberry models..
In other words: config looks OK apart from that dtparam line.
As it happens I also use a hifiberry: debugging info gives similar results, apart from model differences
Looking OK too except for one line that I see, but is missing in your log:
Code:
002023.147: dtparam: audio=off
So I checked my config.txt and saw I use explicit dtparam=audio=off

It's also useful to start the debugging actions as explained on the Build it page.
The messages during startup and play when running manually may reveal more.
And when samplerbox is inactive, you can also test with speakertest.

Hope this helps, Noek.