Thank you for your donation!


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


8.2.5 -> 8.3.2: lost audio device
#1
I just updated in-place from 8.2.5 (which was working fine) to 8.3.2, and now I have no audio. When I attempt to play a radio station, the following briefly flashes on the screen:

Code:
MPD error
Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory

Not sure what to do about this./var/log/mpd/log contains multiple copies of the following:

Code:
ALSA lib pcm_hw.c:1829:(_snd_pcm_hw_open) Invalid value for card
Apr 26 13:54 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory
Apr 26 13:54 : exception: Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory
Apr 26 13:55 : player: played "http://158.69.74.203:80/"

I did make a backup of my configuration before I did the update. Should I restore my backup? Burn a new SD card from scratch? My audio device appears to be correct in the configuration screen though. Any suggestions would be appreciated.

Regards,

- Steve
Reply
#2
Post the startup log.

moodeutl -l

--or--

Download it from the logs section of System Config
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(04-26-2023, 10:56 PM)Tim Curtis Wrote: Post the startup log.

moodeutl -l

--or--

Download it from the logs section of System Config

Here's the output of 'moodeutl -l":

Code:
20230426 152615 worker: --
20230426 152616 worker: -- Start moOde 8 series
20230426 152616 worker: --
20230426 152616 worker: Successfully daemonized
20230426 152616 worker: Waiting for Linux startup...
20230426 152622 worker: Linux startup complete
20230426 152622 worker: WARNING: Boot config restored
20230426 152622 worker: WARNING: Restart required
20230426 152628 worker: File check (OK)
20230426 152630 worker: Session vacuumed
20230426 152630 worker: Session loaded
20230426 152630 worker: Debug logging (OFF)
20230426 152630 worker: --
20230426 152630 worker: -- Audio debug
20230426 152630 worker: --
20230426 152630 worker: ALSA cards: (0:empty | 1:empty | 2:empty | 3:empty
20230426 152630 worker: MPD config: (0:Audiophonics ES9028/9038 DAC (Pre 2019) | mixer:(Digital) | card:0)
20230426 152630 worker: ALSA mixer actual (Digital)
20230426 152631 worker: ALSA Digital volume set to (Invalid card number.)
20230426 152631 worker: --
20230426 152631 worker: -- System
20230426 152631 worker: --
20230426 152635 worker: Host      (moode)
20230426 152635 worker: Hardware  (Pi-3B+ 1.3 1GB)
20230426 152635 worker: moOde     (8.3.2 2023-04-21)
20230426 152635 worker: RaspiOS   (11.6)
20230426 152635 worker: Kernel    (6.1.21-v8+ #1642)
20230426 152635 worker: Procarch  (aarch64, 64-bit)
20230426 152635 worker: MPD ver   (0.23.12)
20230426 152635 worker: CPU gov   (ondemand)
20230426 152635 worker: Userid    (pi)
20230426 152635 worker: Homedir   (/home/pi)
20230426 152635 worker: USB boot  (enabled)
20230426 152635 worker: File sys  (expanded)
20230426 152635 worker: HDMI port (Off)
20230426 152635 worker: Sys LED0  (On)
20230426 152635 worker: Sys LED1  (On)
20230426 152635 worker: --
20230426 152635 worker: -- Network
20230426 152635 worker: --
20230426 152635 worker: eth0 adapter exists
20230426 152635 worker: eth0 address check (Off)
20230426 152635 worker: IP addr (172.17.1.216)
20230426 152635 worker: Netmask (255.255.0.0)
20230426 152635 worker: Gateway (172.17.1.10)
20230426 152635 worker: Pri DNS (172.17.1.10)
20230426 152635 worker: Domain  (localdomain)
20230426 152636 worker: wlan0 adapter exists
20230426 152636 worker: wlan0 country (US)
20230426 152636 worker: wlan0 configured SSID (None (activates AP mode))
20230426 152636 worker: wlan0 SSID alternates (None)
20230426 152636 worker: wlan0 router mode (Off)
20230426 152636 worker: wlan0 address not assigned
20230426 152636 worker: wlan0 AP mode not activated, eth0 active but Router mode is Off
20230426 152636 worker: wlan0 address not assigned
20230426 152636 worker: --
20230426 152636 worker: -- Software update
20230426 152636 worker: --
20230426 152636 worker: Automatic check (On)
20230426 152636 worker: Checking for available update...
20230426 152636 worker: Software is up to date
20230426 152636 worker: --
20230426 152636 worker: -- Audio config
20230426 152636 worker: --
20230426 152637 worker: MPD conf updated
20230426 152637 worker: ALSA card number (0)
20230426 152637 worker: MPD audio output (Audiophonics ES9028/9038 DAC (Pre 2019))
20230426 152637 worker: WARNING: No device found at MPD configured card 0
20230426 152637 worker: ALSA mixer name (Digital)
20230426 152637 worker: MPD mixer type (fixed 0dB)
20230426 152637 worker: Hdwr volume controller exists
20230426 152637 worker: Max ALSA volume (100%)
20230426 152637 worker: ALSA output mode (Default: plughw)
20230426 152637 worker: ALSA loopback (Off)
20230426 152637 worker: Reset renderer active flags
20230426 152637 worker: CamillaDSP configuration (off)
20230426 152637 worker: CamillaDSP volume sync   (off)
20230426 152637 worker: CamillaDSP volume range  (60)
20230426 152637 worker: --
20230426 152637 worker: -- File sharing
20230426 152637 worker: --
20230426 152637 worker: SMB file sharing (Off)
20230426 152637 worker: NFS file sharing (Off)
20230426 152637 worker: --
20230426 152637 worker: -- MPD startup
20230426 152637 worker: --
20230426 152638 worker: MPD started
20230426 152638 worker: MPD accepting connections
20230426 152638 worker: MPD output 1 ALSA Default (On)
20230426 152638 worker: MPD output 2 ALSA Bluetooth (Off)
20230426 152638 worker: MPD output 3 HTTP Server (Off)
20230426 152638 worker: MPD crossfade (off)
20230426 152638 worker: MPD ignore CUE files (yes)
20230426 152638 worker: --
20230426 152638 worker: -- Music sources
20230426 152638 worker: --
20230426 152638 worker: USB sources
20230426 152638 worker: No drives found
20230426 152638 worker: NAS sources
20230426 152638 worker: None configured
20230426 152638 worker: --
20230426 152638 worker: -- Feature availability
20230426 152638 worker: --
20230426 152638 worker: Input select (available)
20230426 152638 worker: Input (MPD)
20230426 152638 worker: Output (Audiophonics ES9028/9038 DAC (Pre 2019))
20230426 152638 worker: Bluetooth (available)
20230426 152638 worker: AirPlay renderer (available)
20230426 152638 worker: Spotify renderer (available)
20230426 152638 worker: Squeezelite (available)
20230426 152638 worker: RoonBridge renderer (not installed)
20230426 152638 worker: Multiroom sender (available)
20230426 152638 worker: Multiroom receiver (available)
20230426 152638 worker: UPnP renderer (available)
20230426 152638 worker: DLNA server (available)
20230426 152638 worker: GPIO button handler (available)
20230426 152638 worker: Stream recorder (available: not installed)
20230426 152638 worker: HTTPS-Only mode (n/a)
20230426 152638 worker: --
20230426 152638 worker: -- Other
20230426 152638 worker: --
20230426 152638 worker: USB volume knob (Off)
20230426 152638 worker: USB auto-mounter (udisks-glue)
20230426 152638 worker: Saved MPD vol level (0)
20230426 152638 worker: Preamp volume level (0)
20230426 152638 worker: MPD volume level (0) restored
20230426 152639 worker: ALSA Digital volume (Invalid card number.)
20230426 152639 worker: Auto-play (On)
20230426 152639 worker: Auto-playing id (53)
20230426 152639 worker: LocalUI (Off)
20230426 152639 worker: Automatic CoverView (Off)
20230426 152639 worker: On-screen keyboard (Off)
20230426 152639 worker: Library scope (all)
20230426 152639 worker: View reset to playback
20230426 152639 worker: Maintenance interval (360 minutes)
20230426 152639 worker: Screen saver activation (Never)
20230426 152639 worker: Session permissions (OK)
20230426 152639 worker: --
20230426 152639 worker: -- Startup complete
20230426 152639 worker: --
20230426 152639 worker: Mount monitor (off)
20230426 152640 worker: Watchdog monitor (started)
20230426 152640 worker: Ready

It seems that when moode probes for the configured audio device, it's not finding it but it did in v8.2.5. Did something change about the probe method or driver?

- Steve
Reply
#4
(04-27-2023, 09:50 PM)Busybox Wrote:
Code:
...
20230426 152622 worker: WARNING: Boot config restored
20230426 152622 worker: WARNING: Restart required
...

Did you, by any chance, reboot the device after the upgrade?
Reply
#5
The log entries below indicate a problem with the file /boot/config.txt

Code:
20230426 152622 worker: WARNING: Boot config restored
20230426 152622 worker: WARNING: Restart required

The /boot/config.txt file looks like below on a fresh image.

Code:
pi@sig:~ $ cat /boot/config.txt
[cm4]
otg_mode=1

[pi4]
hdmi_force_hotplug:0=1
hdmi_force_hotplug:1=1

[all]
disable_splash=1
disable_overscan=1
hdmi_drive=2
hdmi_blanking=1
hdmi_force_edid_audio=1
hdmi_force_hotplug=1
hdmi_group=0
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=on
#dtoverlay=disable-wifi
#dtoverlay=disable-bt

If yours is empty or otherwise looks corrupted then edit it and replace the contents with the above, then reboot.

Code:
sudo nano /boot/config.txt

Ctrl-x y to save

sudo reboot

You will prolly need to reset Audio Config to HDMI 1, reboot and then set it to your preferred audio device.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Well, my /boot/config.txt file was empty! So I copied in the proper text and rebooted. After doing so and rebooting, when I run 'moodectl -l' I get the messages shown below. The system comes up without any complaints and looks like it's playing, but I get no audio. I can't seem to set my audio device to HDMI- the only option I have in the 'audio device" drop-down is "I2S audio device." I assume I'll have to edit some file(s) manually but I have no idea where to look. I did a recursive grep in several places but nothing relevant turned up. Please advise.

Thanks,

- Steve

Code:
20230427 194107 worker: --
20230427 194107 worker: -- Start moOde 8 series
20230427 194107 worker: --
20230427 194107 worker: Successfully daemonized
20230427 194107 worker: Waiting for Linux startup...
20230427 194113 worker: Linux startup complete
20230427 194114 worker: Boot config backed up
20230427 194120 worker: File check (OK)
20230427 194122 worker: Session vacuumed
20230427 194122 worker: Session loaded
20230427 194122 worker: Debug logging (OFF)
20230427 194122 worker: --
20230427 194122 worker: -- Audio debug
20230427 194122 worker: --
20230427 194122 worker: ALSA cards: (0:b1 | 1:Headphones | 2:empty | 3:empty
20230427 194122 worker: MPD config: (0:Audiophonics ES9028/9038 DAC (Pre 2019) | mixer:(Digital) | card:0)
20230427 194122 worker: ALSA mixer actual (Digital)
20230427 194122 worker: ALSA Digital volume set to (amixer: Unable to find simple control 'Digital',0)
20230427 194122 worker: --
20230427 194122 worker: -- System
20230427 194122 worker: --
20230427 194126 worker: Host      (moode)
20230427 194126 worker: Hardware  (Pi-3B+ 1.3 1GB)
20230427 194126 worker: moOde     (8.3.2 2023-04-21)
20230427 194126 worker: RaspiOS   (11.6)
20230427 194126 worker: Kernel    (6.1.21-v8+ #1642)
20230427 194126 worker: Procarch  (aarch64, 64-bit)
20230427 194126 worker: MPD ver   (0.23.12)
20230427 194126 worker: CPU gov   (ondemand)
20230427 194126 worker: Userid    (pi)
20230427 194126 worker: Homedir   (/home/pi)
20230427 194126 worker: USB boot  (enabled)
20230427 194126 worker: File sys  (expanded)
20230427 194126 worker: HDMI port (Off)
20230427 194126 worker: Sys LED0  (On)
20230427 194126 worker: Sys LED1  (On)
20230427 194126 worker: --
20230427 194126 worker: -- Network
20230427 194126 worker: --
20230427 194127 worker: eth0 adapter exists
20230427 194127 worker: eth0 address check (Off)
20230427 194127 worker: IP addr (172.17.1.216)
20230427 194127 worker: Netmask (255.255.0.0)
20230427 194127 worker: Gateway (172.17.1.10)
20230427 194127 worker: Pri DNS (172.17.1.10)
20230427 194127 worker: Domain  (localdomain)
20230427 194127 worker: wlan0 adapter exists
20230427 194127 worker: wlan0 country (US)
20230427 194127 worker: wlan0 configured SSID (None (activates AP mode))
20230427 194127 worker: wlan0 SSID alternates (None)
20230427 194127 worker: wlan0 router mode (Off)
20230427 194127 worker: wlan0 address not assigned
20230427 194127 worker: wlan0 AP mode not activated, eth0 active but Router mode is Off
20230427 194127 worker: wlan0 address not assigned
20230427 194127 worker: --
20230427 194127 worker: -- Software update
20230427 194127 worker: --
20230427 194127 worker: Automatic check (On)
20230427 194127 worker: Checking for available update...
20230427 194128 worker: Software is up to date
20230427 194128 worker: --
20230427 194128 worker: -- Audio config
20230427 194128 worker: --
20230427 194128 worker: MPD conf updated
20230427 194128 worker: ALSA card number (0)
20230427 194128 worker: MPD audio output (Audiophonics ES9028/9038 DAC (Pre 2019))
20230427 194129 worker: Audio formats (U8, S16_LE)
20230427 194129 worker: ALSA mixer name (Digital)
20230427 194129 worker: MPD mixer type (fixed 0dB)
20230427 194129 worker: Hdwr volume controller not detected
20230427 194129 worker: ALSA output mode (Default: plughw)
20230427 194129 worker: ALSA loopback (Off)
20230427 194129 worker: Reset renderer active flags
20230427 194129 worker: CamillaDSP configuration (off)
20230427 194129 worker: CamillaDSP volume sync   (off)
20230427 194129 worker: CamillaDSP volume range  (60)
20230427 194129 worker: --
20230427 194129 worker: -- File sharing
20230427 194129 worker: --
20230427 194129 worker: SMB file sharing (Off)
20230427 194129 worker: NFS file sharing (Off)
20230427 194129 worker: --
20230427 194129 worker: -- MPD startup
20230427 194129 worker: --
20230427 194130 worker: MPD started
20230427 194130 worker: MPD accepting connections
20230427 194130 worker: MPD output 1 ALSA Default (On)
20230427 194130 worker: MPD output 2 ALSA Bluetooth (Off)
20230427 194130 worker: MPD output 3 HTTP Server (Off)
20230427 194130 worker: MPD crossfade (off)
20230427 194130 worker: MPD ignore CUE files (yes)
20230427 194130 worker: --
20230427 194130 worker: -- Music sources
20230427 194130 worker: --
20230427 194130 worker: USB sources
20230427 194130 worker: No drives found
20230427 194130 worker: NAS sources
20230427 194130 worker: None configured
20230427 194130 worker: --
20230427 194130 worker: -- Feature availability
20230427 194130 worker: --
20230427 194130 worker: Input select (available)
20230427 194130 worker: Input (MPD)
20230427 194130 worker: Output (Audiophonics ES9028/9038 DAC (Pre 2019))
20230427 194130 worker: Bluetooth (available)
20230427 194130 worker: AirPlay renderer (available)
20230427 194130 worker: Spotify renderer (available)
20230427 194130 worker: Squeezelite (available)
20230427 194130 worker: RoonBridge renderer (not installed)
20230427 194130 worker: Multiroom sender (available)
20230427 194130 worker: Multiroom receiver (available)
20230427 194130 worker: UPnP renderer (available)
20230427 194130 worker: DLNA server (available)
20230427 194130 worker: GPIO button handler (available)
20230427 194130 worker: Stream recorder (available: not installed)
20230427 194130 worker: HTTPS-Only mode (n/a)
20230427 194130 worker: --
20230427 194130 worker: -- Other
20230427 194130 worker: --
20230427 194130 worker: USB volume knob (Off)
20230427 194130 worker: USB auto-mounter (udisks-glue)
20230427 194130 worker: Saved MPD vol level (0)
20230427 194130 worker: Preamp volume level (0)
20230427 194130 worker: MPD volume level (0) restored
20230427 194130 worker: ALSA volume level (None)
20230427 194130 worker: Auto-play (On)
20230427 194130 worker: Auto-playing id (53)
20230427 194131 worker: LocalUI (Off)
20230427 194131 worker: Automatic CoverView (Off)
20230427 194131 worker: On-screen keyboard (Off)
20230427 194131 worker: Library scope (all)
20230427 194131 worker: View reset to playback
20230427 194131 worker: Maintenance interval (360 minutes)
20230427 194131 worker: Screen saver activation (Never)
20230427 194131 worker: Session permissions (OK)
20230427 194131 worker: --
20230427 194131 worker: -- Startup complete
20230427 194131 worker: --
20230427 194131 worker: Mount monitor (off)
20230427 194131 worker: Watchdog monitor (started)
20230427 194131 worker: Ready
Reply
#7
(04-28-2023, 02:14 AM)Busybox Wrote: ...
ALSA cards: (0:b1 | 1:Headphones | 2:empty | 3:empty
20230427 194122 worker: MPD config: (0:Audiophonics ES9028/9038 DAC (Pre 2019) | mixerSadDigital) | card:0)
20230427 194122 worker: ALSA mixer actual (Digital)
20230427 194122 worker: ALSA Digital volume set to (amixer: Unable to find simple control 'Digital',0)
...
20230427 194126 worker: HDMI port (Off)
...
20230427 194130 worker: Saved MPD vol level (0)
20230427 194130 worker: Preamp volume level (0)
20230427 194130 worker: MPD volume level (0) restored
20230427 194130 worker: ALSA volume level (None)

1) ALSA seems not happy with the mixer

2) it looks like you have the HDMI port disabled (I don't know if this is relevant only for VIDEO out, though). If you use it as audio out, I remember somewhere having read that the audio is enabled ONLY if the video is; so, worth a check.

3) your sound levels seem to be 0 (zero, not 0dB)

Have you tried changing (and then reverting, eventually) some audio parameters? Just to see if the defaults, for some reason, are incompatible with your actual setup.

I'd first try the volume type => Software, then back => Fixed (0 dB). Maybe a reboot between the changes is necessary, cannot tell for sure, but it isn't hard to find out.

Hope this helps a little more.
Reply
#8
I had this too. (After in-place upgrade to 8.3.2)    (I do not need support thankyou)
Upgrade proceeded as expected and I played music for hours. (I also changed * below, but I don't this this is relevant.)
Shutdown fine, started today and same symptom as Mr. Busybox reports above: "MPD error Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": No such file or directory".
After hunting around I saw there was an extra option for my DAC in the list under "Output device" under "Audio":
- Pi HDMI 1
- ADI-2 DAC         (my DAC)
- ADI-2 DAC         (identical entry)

I changed "ADI-2 DAC" to "ADI-2 DAC" and all is fine.

Immediately afterwards, there are again only two entries in the list:

- Pi HDMI 1
- ADI-2 DAC

*yesterday I changed "UPnP Client for MPD" from "UPnP-A/V" to "OpenHome", and all worked fine. Today, upon "ALSA" error, I tried switching back to "UPnP-A/V" but this had no effect.

15 minutes later - I have tried restarting moOde, and all is still fine, with only two entries in the list.
Reply
#9
Things are mostly working now.

Quote:Nutul Wrote:
2) it looks like you have the HDMI port disabled (I don't know if this is relevant only for VIDEO out, though). If you use it as audio out, I remember somewhere having read that the audio is enabled ONLY if the video is; so, worth a check.

Makes sense- I had the HDMI port shut off. So I did the following:

Enabled HDMI. Set I2S audio device to "none". Reboot
Now HDMI appears as an audio output device option. Selected it. Set volume control to "software" instead of "0 dB." Reboot.
Changed the audio device back to my original selection (Audiophonics ES9028/9038 DAC (Pre 2019)). Reboot.
Set the volume and audio now plays!
Disabled HDMI and set volume back to fixed 0 dB. Reboot.
System comes up and audio plays.

However, all the radio stations I added before the upgrade have gone missing. But I can track those down and add them again.

Thanks for all the help!

- Steve
Reply


Forum Jump: