I am moving a Raspberry Pi project to BalenaOS. A Raspberry Pi connects to a camera, a screen, an Adafruit speaker bonnet (Adafruit I2S 3W Stereo Speaker Bonnet for Raspberry Pi [Mini Kit] : ID 3346 : $12.95 : Adafruit Industries, Unique & fun DIY electronics and kits). All this works on a Raspberry Pi 3 B+, and used to work on balenablocks/audio until it moved to Alpine Linux. So I am looking for another base image that supports this hardware.
If possible, I would also like to include an I2S microphone (Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H : ID 3421 : $6.95 : Adafruit Industries, Unique & fun DIY electronics and kits), which I did not include in the Raspberry Pi because it used the same pins as the speaker and I could not find in the code of either the microphone or the speaker how to change the pin numbers.
I would also like to remove the popping sound present at the beginning and end of playing an audio file, which this tutorial solves with
an extra helper systemd script that will play quiet audio when the I2S peripheral isn’t in use. This removes popping when playback starts or stops. It uses a tiny amount of CPU time.
I tried those instructions on the balenablocks/audio image and still had the popping sound.
Finally I would also like to control the volume of the speaker bonnet. The tutorial suggests rebooting twice, which I did, but
alsamixer does not show a volume control when launching it from a shell on Balena Cloud.
I appreciate any suggestions of base images, projects, or hacks!