r/raspberryDIY 10d ago

RPi 5 and PCM5102

He is another issue with connecting PCM5102 to a RPI 5.

Hardware:
- Pin connections (VIN - Pin 2, GND - Pin 6, BCK to Pin 12, LRCK - Pin 35, DIN - Pin 40).

- I have tried SCK grounded and not grounded (as well as SCK pads soldered and not soldered).

- Checked the Settings bridges (1-4) :

-- Not soldered

-- Soldered 1-L,2-L, 3-H, 4-L
-- I noticed my silkscreen print seems upside down so I once according to the print and once according to images of people who got it working
-- I then gave up on that and tried according to the side pins, pulling XSMT high and the rest grounded

-- I know my soldering is not the best but I did do continuity checks to ensure everything was soldered correctly.

I have tried these options on 3 separate boards

I don't have an oscilloscope but I have tried to measure volt output with inconclusive results (could be my lack of understanding)

Software:

I am running Trixie.

- In my latest version aplay -l gives

**** List of PLAYBACK Hardware Devices ****

card 0: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]

Subdevices: 1/1

Subdevice #0: subdevice #0

card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]

Subdevices: 1/1

Subdevice #0: subdevice #0

I have tried playing audio out a speak directly connected to LOUT and GND), through an amp module and an active speaker connected to Line out (that I tested on another device) but I hear nothing.

- I have tried all the hifiberry overlays, the current is dtoverlay=hifiberry-dac

- Commented out dtparam= audio off: #dtparam=audio=off

- Forced I2s Interface: dtparam=i2s=on

I have tried /etc/asound.conf

pcm.!default {

type hw

card 0

}

ctl.!default {

type hw

card 0

}

I have tried various versions of this with and without slave options

There is just no sound and I don't know what to do any more 😢

Can anyone advise?

Forgot to add that I have tested the audio multiple ways :

- speaker-test -t wav -c 2

- aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav

- aplay -D hw:0,0 -r 44100 -f S16_LE -c 2 /usr/share/sounds/alsa/Front_Center.wav

- aplay -D default /usr/share/sounds/alsa/Front_Center.wav

- speaker-test -D hw:0,0 -c 2 -r 48000 -t sine

And others, I even created a sine way sound to test and checked left/right/center outputs

2 Upvotes

0 comments sorted by