Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with I2S Adafruit Amp #66

Open
Esser50K opened this issue Apr 26, 2021 · 0 comments
Open

Issues with I2S Adafruit Amp #66

Esser50K opened this issue Apr 26, 2021 · 0 comments

Comments

@Esser50K
Copy link

I'm trying to get this image working with the Adafruit I2S amp -> https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp

Supposedly it is supported as mentioned here: https://github.com/balenalabs/balena-sound/blob/master/docs/05-audio-interfaces.md#dtoverlay-values

I've managed to get it working on the host machine. (I'm using RaspbianLite and not balenaOS btw)

When I run this image for raspberrypi3 (docker run --privileged -d -p 4317:4317 balenablocks/audio:raspberrypi3) and exec inside it I can run the alsa debug commands:

aplay -l:

**** List of PLAYBACK Hardware Devices ****
card 0: dac [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

So it seems to recognize the speaker. However running the speaker-test command produces no sound (although the command runs successfully). The command I use is speaker-test -c2 --test=wav -w /usr/share/sounds/alsa/Front_Center.wav. The same command works (e.g. produces sound) if I run it outside the container (although I have to run it with sudo).

What can I try to make this work? Do I need to use the balenaOS host image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant