Audio+ V2 error

I am receiving the following error message:


We can now test your RASPIAUDIO DAC+ and SPEAKER+ models
Set your speakers at a low volume!
Do you wish to test your system now? [y/N] y
Testing...

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -524,Unknown error 524

All done!

music@raspberrypi:~ $ sudo speaker-test

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -524,Unknown error 524

This is a pi zero w running pi os lite, bookworm.

I about 3 weeks prior got the board ], soldered the pin connector in, connected the board, loaded the SD Card, run the audio script for setting up the audio+ v2. All worked will… I messed up the setup trying setup an ad-hoc network. So today I pulled the SD card and loaded it fresh again but this time when I ran the audio+ V2 install script and I am receiveing the above.

I am about to run through a full setup again just to make sure…

I am indeed getting the same error on this second load also…

Playback open error: -524,Unknown error 524

Here is the load i am doing:

  • DD the image to the CD Card
  • boot the Pi zero
  • Set the keyboard localization
  • Create the user account
  • Run “raspi-config” to set all localization settings & enable SSH
  • Connect to Wifi with nmtui
  • SSH into the system
  • Run all updates
  • Attempt the Audo+ V2 setup from - AUDIO+ installation guide

I have tried the Audo+ V2 guide with and without sudo. I end up with the same error message.

I decided to try the install again fresh…

music@music:~ $ sudo wget -O - script.raspiaudio.com | bash

Redirecting output to ‘wget-log’.

This script will install everything needed to use
RASPIAUDIO DAC+ and SPEAKER+ models

Do you wish to continue? [y/N] yes

Checking hardware requirements...

Adding Device Tree Entry to /boot/config.txt
dtoverlay=hifiberry-dac

Default sound driver currently not loaded
Configuring sound output

We can now test your RASPIAUDIO DAC+ and SPEAKER+ models
Set your speakers at a low volume!
Do you wish to test your system now? [y/N] y
Testing...

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -524,Unknown error 524

All done!

Enjoy your new RASPIAUDIO DAC+ and SPEAKER+ models!

Some changes made to your system require
your computer to reboot to take effect.

Would you like to reboot now? [y/N] y

Broadcast message from root@music on pts/1 (Sat 2024-02-17 13:19:08 CST):

The system will reboot now!

music@music:~ $ Connection to 192.168.138.87 closed by remote host.
Connection to 192.168.138.87 closed.
raksasas@T560:~$ ssh music@192.168.138.87
music@192.168.138.87's password: 
Linux music 6.1.0-rpi8-rpi-v6 #1 Raspbian 1:6.1.73-1+rpt1 (2024-01-25) armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Feb 17 11:57:48 2024 from 192.168.138.38
music@music:~ $ speaker-test -l5 -c2 -t wav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -524,Unknown error 524
music@music:~ $ sudo speaker-test -l5 -c2 -t wav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Playback open error: -524,Unknown error 524
music@music:~ $ 

I have tried again this morning and it is working check that you did the same starting with a new SD card to try:
-Took a fresh SD card and burnt RPI OS 64bit Bookworm Released 2023-12-05
-Inserted it in my RPI5 with on top the MIC+ hat
-Opened a terminal and typed :

sudo wget -O - script.raspiaudio.com | bash

-When prompted to, I rebooted
-Back on the desktop right click on the speaker on the top right corner to select the device “snd_rpi…”
-Opened a youtube video and can hear the music

Are you also using this RPI OS version?

@Raspiaudio

2023-12-11-raspios-bookworm-armhf-lite.img

Raspberry Pi OS Lite

Release date: December 11th 2023
System: 32-bit
Kernel version: 6.1
Debian version: 12 (bookworm)
Size: 520MB

pi zero w

Correct me if I’m wrong but the Rpi Imager does not allow to install Debian version: 12 (bookworm) on Pi Zero:

Well, first off, I am not able to use the “Raspberry Pi Imager” … Which I think is junk… I don’t run Windows, nor Ubuntu/Debian. So that isn’t an option. I am using the “dd” command

As you can see 12 Bookworm is an option for “All Raspberry Pi Models”.

@Raspiaudio

music@music:~ $ cat /proc/device-tree/model
Raspberry Pi Zero W Rev 1.1

Please try a manual install using command line

sudo nano /boot/config.txt

delete the line:

dtparam=audio=on

at then end of the file add the line:

dtoverlay=hifiberry-dac

Save and reboot

try to play something

@Raspiaudio

This is what this file looks like for me:

DO NOT EDIT THIS FILE

The file you are looking for has moved to /boot/firmware/config.txt
dtoverlay=hifiberry-dac


doing what you said in “/boot/firmware/config.txt” I have audio now… when i run the

music@music:~ $ speaker-test -l5 -c2 -t wav

speaker-test 1.2.8

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8 to 131072
Period size range from 4 to 65536
Using max buffer size 131072
Periods = 4
was set period_size = 32768
was set buffer_size = 131072
 0 - Front Left
 1 - Front Right
Time per period = 0.733013
 0 - Front Left
 1 - Front Right
Time per period = 2.734532
 0 - Front Left
 1 - Front Right
Time per period = 3.404926
 0 - Front Left
 1 - Front Right
Time per period = 2.735595
 0 - Front Left
 1 - Front Right
Time per period = 4.085502

ok great!

updating the installation guide