I have been using the Adafruit MAX98357 I2S Class-D Mono Amp and a Visaton FR58 Speaker with a Raspberry pi and it has been working pretty well, however after switching to the Rock Pi 4A, I am unsure how to use the speaker anymore. Adafruit has instructions for setting up the amp with the raspberry pi (https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-usage) but a lot of the instructions are raspberry pi specific and I have no idea how to set it up for use on the Rock Pi 4A.
Any help would be appreciated.
Cheers