Cannot control volume on Adafruit MAX98357

Hello there,

Does anyone have any experience with the Adafruit MAX98357 I2S Class-D Mono Amp ?
I’ve connected this board with my Pi Zero W. Everything works great except I cannot control the volume.
I have tried several settings Generic I2S, HiFiBErry Amp,… but it doesn’t change anything :s

Do you guys have any idea/advise?

Thanks

The MAx98357 doesnt support Hardware volume control so you must set Vollumio to:
Mixertype=software
MixercontrolName=software volume control

Give it a try!

Kind regards

Harry

Thanks for your answer Buckler!
I first modified the dacs.json file to add my Adafruit chip to the list (as mentioned here >https://github.com/volumio/Volumio2/issues/1541), then I changed my settings like you said and it works like a charm :smiley:
I still have pops and cracks between tracks but that’s an other issue I guess.
Thanks Again!
Roger

I still have a little static pop when the Pi boots but I can live with that.
I use the MAX98357 with a “vintage”-radio and the static-pop makes it really sounds “old” :slight_smile:

Vintage.jpg

I posted a message at the Adafruit-forum:
https://forums.adafruit.com/viewtopic.php?f=50&t=104049&hilit=MAX98357

Adafruit added the information to their tuturial:

Tweak for reducing the popping:
https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/pi-i2s-tweaks

The static-pop when the raspberry pi boots:
https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/i2s-audio-faq#faq-2

By the way, I have never used the MAX98357 with Volumio.

Kind regards

Harry

Thanks again for your feedback Buckler!
I’ll definitely have a look at your workaround tonight and will keep you posted :slight_smile:

By the way your Philips radio looks gorgeous :astonished:
Here’s a picture of my first mod (Hacker RP34)

Cheers,

Roger

I modified the following files according to what’s mentioned on the I2S tweaks page:

/boot/config.txt
/etc/asound.conf
~/.asoundrc

The pops disappeared but I couldn’t control the volume anymore, even after setting Mixertype & MixercontrolName :angry:
I flashed my card and got back to the previous config (pops between tracks but volume control works), otherwise the wife couldn’t use it anymore. I’ll probably try again this weekend because I’m sure I was very close to get it working…