Could someone help me diagnose why I’m not getting any sound out of my pirate audio line out shim?
It’s set as the default device (it shows up as such with aplay -L)
When I use aplay with a sample wav I get no sound. I tried this with the headphone out (just to make sure) and it worked ok.
I have checked the volume with alsamixer and it is at 100.
This is my /boot/config.txt
initramfs volumio.initrd
gpu_mem=32
max_usb_current=1
dtparam=audio=on
audio_pwm_mode=2
dtparam=i2c_arm=on
disable_splash=1
hdmi_force_hotplug=1
force_eeprom_read=0
hdmi_force_hotplug=1
hdmi_cvt=640 480 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
display_rotate=0
dtparam=spi=on
Volumio i2s setting below: do not alter
dtoverlay=hifiberry-dac
gpio=25=op,dh
Anyone got any ideas? Note that I haven’t soldered in but I am assuming that the device wouldn’t be showing up if the connection was dodgy? Or do I definitely need to solder it? I have it fairly tightly in there with some chunky dupont connectors above it.
Any help really appreciated!
It showing up is due to the config.txt etc edits. You could still have a faulty connection on one of the pins. It shouldn’t need to be soldered, but I have done so to some of my Pimoroni “shims”. Some wouldn’t work until I soldered on a female header. I prefer to use a header so I can unplug said shim if need be.
I hope this is the correct pinout.
Audio DAC SHIM at Raspberry Pi GPIO Pinout
If your device shows up it is probably not a soldering issue (first guess, but you never know). When you write about headphone and that is worked, do you refer to the on-board headphone-jack of a “big” (i.e. non-zero) Pi?
If so, the output is configured for the on-board headphone-jack and not for the audio-shim. Can you please post the commands that you are using and the output of aplay -L
.
Hey - yes it was through the headphone output of an RPI4, however I had to turn on the option in /boot/confit.txt to make it work (I forget now but something like dt audio param on)
When this option is turned off I get this from aplay -L
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default
Playback/recording through the PulseAudio sound server
volumio
softvolume
volumioSoftVol
postVolume
volumioOutput
volumioHw
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
usbstream:CARD=sndrpihifiberry
snd_rpi_hifiberry_dac
USB Stream Output
Thanks for your help!
When you say the commands, I’m trying to use it with volumio. It shows up as an option and plays but no sound comes out.
I did try aplay example.wav too which works with the standard headphone out but not the audio dac
Thanks!
I assume you have a graphical environment. Please run “pavucontrol” and check the configured output-device of the PulseAudio server. Maybe this gives some insights.
You can also route the output of aplay to a specific device, e.g. something like aplay -D sndrpihifiberry mysoundfile.wav
.
BTW: you should find some wav-example files in /usr/share/sounds/alsa
.
Unfortunately no volumio doesn’t have a graphical environment.
I’ll try the other things though.
Thanks!
I checked my pirate-audio configuration, which uses the exact same dac. The only difference I see is that I use dtparam=audio=off
which turns off normal BCM-audio and should configure the system to only have the dac which hopefully is then automatically used. Did you try this already?