i2S Audio issues retropie using adafruit class D-DAc and amplifier
-
Hello! I am running into issues when setting up i2s audio using the following guide:
https://cdn-learn.adafruit.com/downloads/pdf/adafruit-max98357-i2s-class-d-mono-amp.pdf
I can get the sound to play when using speaker-test c2, but only on "Right" and not at all in retropie/emulationStation.RPi 4B
Pisugar S Plus
Made from official Rpi imager, retropie V. 4.8 -
Did you disable the onboard audio on the Pi ? What's the output of
aplay -l aplay -L amixer
-
pi@retropie:~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 0: MAX98357A [MAX98357A], device 0: bcm2835-i2s-HiFi HiFi-0 [bcm2835-i2s-HiFi HiFi-0] Subdevices: 0/1 Subdevice #0: subdevice #0
pi@retropie:~ $ aplay -L null Discard all samples (playback) or generate zero samples (capture) jack JACK Audio Connection Kit pulse PulseAudio Sound Server speakerbonnet dmixer softvol default sysdefault:CARD=MAX98357A MAX98357A, bcm2835-i2s-HiFi HiFi-0 Default Audio Device dmix:CARD=MAX98357A,DEV=0 MAX98357A, bcm2835-i2s-HiFi HiFi-0 Direct sample mixing device dsnoop:CARD=MAX98357A,DEV=0 MAX98357A, bcm2835-i2s-HiFi HiFi-0 Direct sample snooping device hw:CARD=MAX98357A,DEV=0 MAX98357A, bcm2835-i2s-HiFi HiFi-0 Direct hardware device without any conversions plughw:CARD=MAX98357A,DEV=0 MAX98357A, bcm2835-i2s-HiFi HiFi-0 Hardware device with all software conversions usbstream:CARD=MAX98357A MAX98357A USB Stream Output
pi@retropie:~ $ amixer Simple mixer control 'PCM',0 Capabilities: volume Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 255 Front Left: 204 [80%] Front Right: 204 [80%]
I think i disabled the onboard audio, where is that? I'll add my asound.conf file here as well. Thank you for the help! I realised that pulseaudio for some reason is still mentioned here, even though i uninstalled that or i thought i did. I added the asound.conf file as well.
pcm.speakerbonnet { type hw card 0 } pcm.dmixer { type dmix ipc_key 1024 ipc_perm 0666 slave { pcm "speakerbonnet" period_time 0 period_size 1024 buffer_size 8192 rate 44100 channels 2 } } ctl.dmixer { type hw card 0 } pcm.softvol { type softvol slave.pcm "dmixer" control.name "PCM" control.card 0 } ctl.softvol { type hw card 0 } pcm.!default { type plug slave.pcm "softvol" }
-
@arvis1 NEVERMIND, i found the issue. In this thread: https://retropie.org.uk/forum/topic/34661/solved-remove-pulseaudio-and-revert-back-to-alsa/3
The issue was that using purge on pulseaudio did not fully uninstall, so you have to go into the retropie setup as detailed in this guide.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.