Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

No audio from UDA1334A I2S Stereo DAC
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

No audio from UDA1334A I2S Stereo DAC

by fetimo on Tue Dec 07, 2021 2:08 pm

Hi Adafruit!

I'm trying to get sound output from this DAC, but there's just no output. I've run the install script and manually verified each step and rebooted a few times. I've tried connecting to an external amp and some cheap headphones to try debugging it.

I'm testing it by running
Code: Select all | TOGGLE FULL SIZE
speaker-test -c2 --test=wav -w /usr/share/sounds/alsa/Front_Center.wav


Code: Select all | TOGGLE FULL SIZE
speaker-test -c2 --test=wav -w /usr/share/sounds/alsa/Front_Center.wav

speaker-test 1.2.4

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 2229 to 8916
Period size range from 1114 to 1115
Using max buffer size 8916
Periods = 4
was set period_size = 1114
was set buffer_size = 8916
 0 - Front Left
 1 - Front Right
Time per period = 2.696776
 0 - Front Left
 1 - Front Right
Time per period = 2.854197
 0 - Front Left
 1 - Front Right
Time per period = 2.854534
 0 - Front Left
 1 - Front Right
Time per period = 2.854280
 0 - Front Left
 1 - Front Right
Time per period = 2.853814
 0 - Front Left
 1 - Front Right
Time per period = 2.855340
 0 - Front Left
 1 - Front Right
Time per period = 2.854094
 0 - Front Left
 1 - Front Right
Time per period = 2.854542
 0 - Front Left
 1 - Front Right


aplay -l lists the following

Code: Select all | TOGGLE FULL SIZE
aplay -l
**** 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: vc4hdmi [vc4-hdmi], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


I'm running it on a Raspberry Pi Zero W and the latest Raspberry OS Lite:
Code: Select all | TOGGLE FULL SIZE
Distributor ID:   Raspbian
Description:   Raspbian GNU/Linux 11 (bullseye)
Release:   11
Codename:   bullseye


I can also see output in hw_params when audio is playing and alsamixer recognises the device but there's still nothing out of the headphone jack. Any ideas?

fetimo
 
Posts: 2
Joined: Tue Dec 07, 2021 2:01 pm

Re: No audio from UDA1334A I2S Stereo DAC

by adafruit_support_mike on Wed Dec 08, 2021 10:38 pm

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

adafruit_support_mike
 
Posts: 63921
Joined: Thu Feb 11, 2010 2:51 pm

Re: No audio from UDA1334A I2S Stereo DAC

by fetimo on Sat Dec 11, 2021 3:13 am

@adafruit_support_mike I'm ashamed to say that it was simply because I hadn't soldered the header onto the Zero. When it said it was solderless I took that a bit too literally! Sorry

fetimo
 
Posts: 2
Joined: Tue Dec 07, 2021 2:01 pm

Re: No audio from UDA1334A I2S Stereo DAC

by adafruit_support_mike on Sat Dec 11, 2021 10:34 pm

Glad to hear you got it working. Happy hacking!

adafruit_support_mike
 
Posts: 63921
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.