# No sound from pirate audio line out shim

**URL:** <https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033>\
**Category:** Support\
**Created:** [October 1, 2023, 9:38am UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033 "2023-10-01T09:38:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![louisandthecat](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@louisandthecat](https://forums.pimoroni.com/u/louisandthecat)\
**Post date:** [October 1, 2023, 9:38am UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/1 "2023-10-01T09:38:56Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [October 1, 2023, 3:43pm UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/2 "2023-10-01T15:43:22Z")

</div>

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](https://pinout.xyz/pinout/audio_dac_shim)

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [October 2, 2023, 5:30pm UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/3 "2023-10-02T17:30:25Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![louisandthecat](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@louisandthecat](https://forums.pimoroni.com/u/louisandthecat)\
**Post date:** [October 2, 2023, 5:45pm UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/4 "2023-10-02T17:45:37Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![louisandthecat](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@louisandthecat](https://forums.pimoroni.com/u/louisandthecat)\
**Post date:** [October 2, 2023, 5:46pm UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/5 "2023-10-02T17:46:53Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [October 3, 2023, 6:51am UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/6 "2023-10-03T06:51:30Z")

</div>

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`.

---

<div class="post-metadata">

**Author:** ![louisandthecat](https://avatars.discourse-cdn.com/v4/letter/l/f475e1/32.png) [@louisandthecat](https://forums.pimoroni.com/u/louisandthecat)\
**Post date:** [October 3, 2023, 8:17am UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/7 "2023-10-03T08:17:46Z")

</div>

Unfortunately no volumio doesn’t have a graphical environment.

I’ll try the other things though.

Thanks!

---

<div class="post-metadata">

**Author:** ![bablokb](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bablokb](https://forums.pimoroni.com/u/bablokb)\
**Post date:** [October 3, 2023, 9:09am UTC](https://forums.pimoroni.com/t/no-sound-from-pirate-audio-line-out-shim/23033/8 "2023-10-03T09:09:34Z")

</div>

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?
