Audio with MAX98357A on RetroPie

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
vlsim
 
Posts: 4
Joined: Mon Nov 21, 2022 2:18 pm

Audio with MAX98357A on RetroPie

Post by vlsim »

Hi

I am trying to setup audio for my Pi Zero 2 W with MAX98357A on RetroPie. I am using the following tutorial:
https://learn.adafruit.com/adafruit-max ... y-pi-usage

The issue I am facing is that the installation script (https://raw.githubusercontent.com/adafr ... /i2samp.sh) just exists with the following:

Code: Select all

The i2s amplifier installer
does not work on this version of Raspbian.
I have checked what the script does and it seems that it checks for support by checking the OS release name. For my installation of RetroPie I have the following:

Code: Select all

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
Is there a way for me to setup audio through MAX98357A with my current setup? I have tried searching for a similar setup, but failed to find any tutorials or samples. Maybe there is an entirely different setup or a product that I should try to add audio support to my Pi Zero 2 W?

Thanks.

User avatar
vlsim
 
Posts: 4
Joined: Mon Nov 21, 2022 2:18 pm

Re: Audio with MAX98357A on RetroPie

Post by vlsim »

As always after a little bit more of searching I have found a solution. Leaving it in case someone else stumbles upon the same issue.

We first need to edit the /boot/config.txt to contain the following:

dtparam=i2s=os
dtoverlay=max98357a,no-sdmode

Then just change the system options -> audio in raspi-config to 1 HiFi-0

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”