RaspBerryZero W + Pimoroni Pirate DAX

Hi.

I’m testing Balena Sound, after following the manual (thanks really useful) there is no sound in the DAC 3.5mm, the current settings are:

Device configuration

BALENA_HOST_CONFIG_dtoverlay not defined hifiberry-dac

Define DT parameters not defined “i2c_arm=on”,“spi=on”,“audio=off”

How could I check if the DAC Hat is working ok?

Hey @Wontolla welcome to the forums. You can check to see if things are working correctly by opening a terminal to the audio service and running aplay -L. This will list all the devices found by the system. Could you do this and share the output?

Hi @Wontolla,

I have a RPi Zero W with a Pimoroni DAC, and I had to add the following environment variable for it to work. This is in addition to the dtoverlay variable you set above, but on the Environment Variables page.

SOUND_DEVICE = DAC

Also, this device config on mine looks different from yours:
Define DT parameters not defined “i2c_arm=on”,“spi=on”,“audio=on”

Try changing the audio part to “audio=on”

Hope that helps.

Cheers!
Mark-

aplay -L output:

null
Discard all samples (playback) or generate zero samples (capture)
default
Playback/recording through the PulseAudio sound server
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct hardware device without any conversions
plughw:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Hardware device with all software conversions
sysdefault:CARD=dac
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Default Audio Device
dmix:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct sample mixing device
usbstream:CARD=dac
snd_rpi_hifiberry_dac
USB Stream Output

I’m also, testing koyaanisqatsi config.

Thank you.

No luck I’ve added the variables:

Device environment variables

SOUND_DEVICE not defined DAC

Device configuration

Define DT parameters not defined “i2c_arm=on”,“spi=on”,“audio=on”

Device configuration

Custom Variable
BALENA_HOST_CONFIG_dtoverlay not defined hifiberry-dac

Hey Galvar, there’s a slight chance the dt_param was not successfully set for whatever reason so a quick test is to try power cycling the device as well and see if it’s resolved. I don’t think that will solve it but worth a shot for now until we provide more steps.

Hi, thanx, still no luck.

I’ve check that aplay -L showed a device:

snd_rpi_hifiberry_dac and I’ve set the CUSTOM CONFIGURATION VARIABLES
to:

BALENA_HOST_CONFIG_dtoverlay not defined snd_rpi_hifiberry_dac

But now, after several reboots:
/usr/src# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
Playback/recording through the PulseAudio sound server
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
hw:CARD=bcm2835-alsa,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct hardware device without any conversions
hw:CARD=bcm2835-alsa,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct hardware device without any conversions
hw:CARD=bcm2835-alsa,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct hardware device without any conversions
plughw:CARD=bcm2835-alsa,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Hardware device with all software conversions
plughw:CARD=bcm2835-alsa,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Hardware device with all software conversions
plughw:CARD=bcm2835-alsa,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Hardware device with all software conversions
sysdefault:CARD=bcm2835-alsa
bcm2835 ALSA, bcm2835 ALSA
Default Audio Device
dmix:CARD=bcm2835-alsa,DEV=0
bcm2835 ALSA, bcm2835 ALSA
Direct sample mixing device
dmix:CARD=bcm2835-alsa,DEV=1
bcm2835 ALSA, bcm2835 IEC958/HDMI
Direct sample mixing device
dmix:CARD=bcm2835-alsa,DEV=2
bcm2835 ALSA, bcm2835 IEC958/HDMI1
Direct sample mixing device
usbstream:CARD=bcm2835-alsa
bcm2835 ALSA
USB Stream Output

Could not find the DAC, the Pimoroni is not soldered it 's connected by a plastic piece with pins so I’m kinda lost here, because several other times the DAC was listed.

Hi.

After setting again the
CUSTOM CONFIGURATION VARIABLES

BALENA_HOST_CONFIG_dtoverlay not defined hifiberry-dac

aplay -L lists again:

hw:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct hardware device without any conversions
plughw:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Hardware device with all software conversions
sysdefault:CARD=dac
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Default Audio Device
dmix:CARD=dac,DEV=0
snd_rpi_hifiberry_dac, HifiBerry DAC HiFi pcm5102a-hifi-0
Direct sample mixing device
usbstream:CARD=dac
snd_rpi_hifiberry_dac
USB Stream Output

But still no audio.

Just an idea:

cat /proc/asound/modules
0 snd_bcm2835
1 snd_soc_rpi_simple_soundcard

Is that the sound cards order?.

Hi there, looks like the audio hardware is being detected. Can you try setting AUDIO_OUTPUT env var to DAC as per the notes on the audio block.