Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: Hi-Berry DAC+ - Failed to open Alsa default
#1
Hi, 
tl;dr- new Hi-Berry Dac+ has arrived, but I'm getting "Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": Invalid argument" error. 

As detailed above, raspberry pi3, hi-berry dac+ and the latest (litterally updated today) version of Moode. When I try to play anything I get the above message.

In settings, I've scanned for the audio devices and the software sees it. 

I also did a search on this forum and found a post saying to change i2s setting to none. tried that, and selecting the device too - no joy. there was also a post saying to change the MPD driver, but i couldnt find that in the settings, maybe it was an older version?

followed the hiberry guide to install drivers via Git - that hasnt worked either. (https://www.hifiberry.com/docs/software/...ux-kernel/)

bit stuck, im undoubtedly doing something silly, but i don't know what else to try.  I've attached some screen shots for further information

Could you please suggest further steps i could try? thanks in advance...


Attached Files Thumbnail(s)
           
Reply
#2
Reboot and then post the entire contents of the startup log so people can better understand your configuration.

The log can be viewed via the SSH command moodeutl -l or downloaded via the Logs section in System Config, or via Menu, System info from any of the Config screens. The startup log will be at the end of System info output.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Thanks Tim for the quick reply and suggestion - i hadnt thought to check logs (duh)

I've reviewd and found possible area for review: 

20250701 234558 worker: Audio device:  0Tonguei HDMI 1
20250701 234558 worker: ALSA card:     has not been reassigned
20250701 234600 worker: MPD config:    updated (iec958 device)
20250701 234600 worker: ALSA output:   HDMI


So I went in to the output setting in the GUI and it had indeed reverted to the hdmi output (and played fine) when I changed back to the hi-fi berry, same issue. 

I rebooted at lunch time, and the card was recognised but the logs showed the same as above, and the error message
snip from log

0250702 090309 worker: Audio device:  1:HiFiBerry DAC+
20250702 090309 worker: ALSA card:     has not been reassigned
20250702 090309 worker: MPD config:    update not needed
20250702 090310 worker: ALSA output:   I2S
20250702 090310 worker: ALSA mode:     Default (plughw)
20250702 090310 worker: ALSA mixer:    Digital
20250702 090310 worker: ALSA volume:   100% (0.00dB)
20250702 090310 worker: ALSA maxvol:   100%
20250702 090310 worker: ALSA loopback: off

and here's the full log from this afternoon's reboot

Code:
20250702 090252 worker: --
20250702 090252 worker: -- Start moOde 9 series
20250702 090252 worker: --
20250702 090252 worker: Daemonize:     complete
20250702 090258 worker: Linux startup: complete
20250702 090258 worker: Boot config:   ok
20250702 090258 worker: Boot folder:   ok
20250702 090258 worker: Radio table:   ok
20250702 090300 worker: PHP session:   cleaned
20250702 090300 worker: PHP session:   loaded
20250702 090304 worker: Package locks: applied
20250702 090305 worker: File check:    complete
20250702 090305 worker: Log to RAM:    on
20250702 090305 worker: Tmp to RAM:    on
20250702 090305 worker: Debug logging: off
20250702 090305 worker: --
20250702 090305 worker: -- System
20250702 090305 worker: --
20250702 090308 worker: Host name:     raspberrypi3b
20250702 090308 worker: RPi model:     Pi-3B 1.2 1GB
20250702 090308 worker: moOde release: 9.3.7 2025-06-26
20250702 090308 worker: RaspiOS:       12.11 Bookworm 64-bit
20250702 090308 worker: Linux Kernel:  33 64-bit
20250702 090308 worker: MPD version:   0.24.4
20250702 090308 worker: User id:       musicpi
20250702 090308 worker: Home folder:   /home/musicpi
20250702 090308 worker: Time zone:     Europe/London
20250702 090308 worker: Kbd layout:    us
20250702 090308 worker: HDMI ports(s): on
20250702 090308 worker: HDMI-CEC:      off
20250702 090308 worker: Sys LED0:      on
20250702 090308 worker: Sys LED1:      on
20250702 090308 worker: Reduce power:  n/a
20250702 090308 worker: Fan control:   n/a
20250702 090308 worker: CPU governor:  ondemand
20250702 090308 worker: --
20250702 090308 worker: -- Network
20250702 090308 worker: --
20250702 090308 worker: Eth0
20250702 090308 worker: Ethernet: adapter exists
20250702 090308 worker: Ethernet: timeout off
20250702 090308 worker: Ethernet: address not assigned
20250702 090308 worker: Wlan0
20250702 090309 worker: Wireless: adapter exists
20250702 090309 worker: Wireless: country GB
20250702 090309 worker: Wireless: SSID    sandwichesofallflavours
20250702 090309 worker: Wireless: other   None
20250702 090309 worker: Wireless: timeout up to 90 secs
20250702 090309 worker: Wireless: connect to sandwichesofallflavours
20250702 090309 worker: Wireless: method  dhcp
20250702 090309 worker: Wireless: address 192.168.1.64
20250702 090309 worker: Wireless: netmask 255.255.255.0
20250702 090309 worker: Wireless: gateway 192.168.1.254
20250702 090309 worker: Wireless: pri DNS 192.168.1.254
20250702 090309 worker: Wireless: domain  home
20250702 090309 worker: mDNS
20250702 090309 worker: Discover: IPv4 and IPv6
20250702 090309 worker: --
20250702 090309 worker: -- File sharing
20250702 090309 worker: --
20250702 090309 worker: SMB file sharing:  off
20250702 090309 worker: SMB password:      none
20250702 090309 worker: NFS file sharing:  off
20250702 090309 worker: DLNA file sharing: off
20250702 090309 worker: --
20250702 090309 worker: -- Special configs
20250702 090309 worker: --
20250702 090309 worker: Plexamp:          not installed
20250702 090309 worker: RoonBridge:       not installed
20250702 090309 worker: Allo Boss 2:      not detected, OLED script ok
20250702 090309 worker: Allo Piano 2.1:   not detected
20250702 090309 worker: IQaudIO DigiAMP+: not detected
20250702 090309 worker: RPi DigiAMP+:     not detected
20250702 090309 worker: Bluetooth:        session vars ok
20250702 090309 worker: --
20250702 090309 worker: -- ALSA debug
20250702 090309 worker: --
20250702 090309 worker: Cards:  0:vc4hdmi         1:sndrpihifiberry 2:empty           3:empty          
20250702 090309 worker:         4:empty           5:empty           6:empty           7:empty          
20250702 090309 worker: Mixers: 0:(PCM)           1:(Digital)       2:none            3:none            
20250702 090309 worker:         4:none            5:none            6:none            7:none            
20250702 090309 worker: --
20250702 090309 worker: -- Audio configuration
20250702 090309 worker: --
20250702 090309 worker: Audio device:  1:HiFiBerry DAC+
20250702 090309 worker: ALSA card:     has not been reassigned
20250702 090309 worker: MPD config:    update not needed
20250702 090310 worker: ALSA output:   I2S
20250702 090310 worker: ALSA mode:     Default (plughw)
20250702 090310 worker: ALSA mixer:    Digital
20250702 090310 worker: ALSA volume:   100% (0.00dB)
20250702 090310 worker: ALSA maxvol:   100%
20250702 090310 worker: ALSA loopback: off
20250702 090310 worker: MPD mixer      Software
20250702 090310 worker: Integ audio:   vc4-kms-v3d
20250702 132736 worker: Audio formats: Alsacap was unable to detect formats
20250702 132736 worker: CamillaDSP:    off
20250702 132736 worker: CDSP volume:   0dB
20250702 132736 worker: CDSP volrange: 60dB
20250702 132736 worker: --
20250702 132736 worker: -- MPD startup
20250702 132736 worker: --
20250702 132737 worker: MPD service:        started
20250702 132737 worker: MPD port 6600:      accepting connections
20250702 132737 worker: MPD ALSA Default:   on
20250702 132737 worker: MPD ALSA Bluetooth: off
20250702 132737 worker: MPD HTTP Server:    off
20250702 132737 worker: MPD volume:         100
20250702 132737 worker: Saved MPD vol:      -1
20250702 132737 worker: Saved SRC vol:      0
20250702 132737 worker: MPD crossfade:      off
20250702 132737 worker: MPD ignore CUE:     no
20250702 132737 worker: MPD CDSP volsync:   off
20250702 132737 worker: MPD DB stats:       Tracks:551 | Albums:57 | Artists:157
20250702 132737 worker: --
20250702 132737 worker: -- Music sources
20250702 132737 worker: --
20250702 132737 worker: USB drives:     none
20250702 132737 worker: NVMe drives:    none
20250702 132737 worker: SATA drives:    none
20250702 132737 worker: NAS source:     dmusicpermcoll (smb)
20250702 132747 - Try (mount -t cifs "//WDMYCLOUDEX2/DMusicStorage/perm collection" -o username="Guest",password="",rsize=61440,wsize=65536,iocharset=utf8,ro,noserverino,cache=none,dir_mode=0777,file_mode=0777 "/mnt/NAS/dmusicpermcoll")
20250702 132747 - Err (mount error(113): could not connect to 192.168.1.70Unable to find suitable address.)
20250702 132747 worker: --
20250702 132747 worker: -- Feature availability
20250702 132747 worker: --
20250702 132747 worker: Input select:    available, Source: MPD, Output: HiFiBerry DAC+
20250702 132747 worker: Bluetooth:       available, PIN: None, ALSA/CDSP maxvol: 100%/0dB, ALSA outmode: Standard
20250702 132749 worker: AirPlay:         started
20250702 132749 worker: Spotify Connect: available
20250702 132749 worker: Deezer Connect:  n/a
20250702 132749 worker: Squeezelite:     available
20250702 132749 worker: UPnP client:     available
20250702 132749 worker: Plexamp:         not installed, ALSA maxvol: 100%
20250702 132749 worker: RoonBridge:      not installed
20250702 132749 worker: Multiroom:       available
20250702 132749 worker: GPIO buttons:    started
20250702 132749 worker: Stream recorder: n/a
20250702 132749 worker: --
20250702 132749 worker: -- Security
20250702 132749 worker: --
20250702 132749 worker: Web SSH server:    off
20250702 132749 worker: XSS detection:     off
20250702 132749 worker: HTTPS mode:        available
20250702 132749 worker: --
20250702 132749 worker: -- Peripherals
20250702 132749 worker: --
20250702 132751 worker: Local display:   on
20250702 132751 worker: Chromium ver:    126.0.6478.164-rpt1
20250702 132751 worker: Chromium cfg:    directory ok
20250702 132751 worker: Screen blank     600
20250702 132751 worker: On-screen kbd:   off
20250702 132751 worker: Disable GPU:     off
20250702 132751 worker: HDMI orient:     landscape
20250702 132751 worker: HDMI 4K 60Hz:    off
20250702 132751 worker: DSI scn type:    none
20250702 132751 worker: DSI port:        1
20250702 132751 worker: DSI brightness:  255
20250702 132751 worker: DSI rotate:      0
20250702 132751 worker: Rotary encoder:  off
20250702 132751 worker: Triggerhappy:    off
20250702 132751 worker: LCD updater:     off
20250702 132751 worker: --
20250702 132751 worker: -- Miscellaneous
20250702 132751 worker: --
20250702 132751 worker: Software update:   Automatic check on
20250702 132751 worker: Software update:   Checking for available update...
20250702 132752 worker: Software update:   Software is up to date
20250702 132752 worker: Auto-CoverView:    off
20250702 132752 worker: CoverView timeout: Never
20250702 132752 worker: Auto-shuffle:      off
20250702 132752 worker: Auto-play:         off
20250702 132752 worker: Maintenance task:  360 mins
20250702 132752 worker: Current view:      reset to Playback
20250702 132752 worker: Active flags:      all false
20250702 132752 worker: Reset flags:       skipped
20250702 132752 worker: Session check:     ok
20250702 132752 worker: --
20250702 132752 worker: -- Startup complete
20250702 132752 worker: --
20250702 132752 worker: Mount monitor:    started
20250702 132752 worker: Radio monitor:    off
20250702 132752 worker: Watchdog monitor: started
20250702 132752 worker: Responsiveness:   Default
20250702 132753 worker: Ready
Reply
#4
This log entry is missing the kernel version number. Very odd.

Code:
20250702 090308 worker: Linux Kernel:  33 64-bit
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
Solved: I rememberd this afternoon i had programmed pin 3 for a power on/off. in the hiberry documentation it says it uses pin 3 so i commented it out and its now working.

so i'll leave this here in case it helps anyone else. i'll inevitably have to raise a new cry for help when i cant make the power button work!
Reply
#6
(07-02-2025, 04:52 PM)Tim Curtis Wrote: This log entry is missing the kernel version number. Very odd.

Code:
20250702 090308 worker: Linux Kernel:  33 64-bit
I dont really know what that would mean. I originally created the SDCard using the pi imager so presumably the linux came from there? I did some kernal update as instructed by the Hiberry github..
The issue with the DAC is resolved, but if its worth reflashing a SD card i can do so..
Reply
#7
Yes, definitely re-flash to get the official kernel used in our images :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#8
(07-02-2025, 08:07 PM)Tim Curtis Wrote: Yes, definitely re-flash to get the official kernel used in our images :-)

will do! thank you so much for the help
Reply


Forum Jump: