balena-io-experimental / audio

Audio building block for balenaOS, based on pulseaudio.
https://hub.balena.io/blocks
31 stars 13 forks source link

rpi4: snd_bcm2835 kernel module not being loaded on newer balenaOS versions #100

Open tmigone opened 2 years ago

tmigone commented 2 years ago

Latest balenaOS versions don't load the snd_bcm2835 driver by default. This results in the following problems:

Investigating the exact balenaOS version where this broke and the solution.

Working on replicating this issue so far with no success.

tmigone commented 2 years ago

For future reference, affected device:

root@balena:~# cat /etc/os-release
ID="balena-os"
NAME="balenaOS"
VERSION="2.95.8"
VERSION_ID="2.95.8"
PRETTY_NAME="balenaOS 2.95.8"
MACHINE="raspberrypi4-64"
META_BALENA_VERSION="2.95.8"
BALENA_BOARD_REV="91ad4e1"
META_BALENA_REV="133b50d2"
SLUG="raspberrypi4-64"
root@balena:~# lsmod | grep snd
root@balena:~# cat /proc/asound/cards
 0 [vc4hdmi0       ]: vc4-hdmi - vc4-hdmi-0
                      vc4-hdmi-0
 1 [vc4hdmi1       ]: vc4-hdmi - vc4-hdmi-1
                      vc4-hdmi-1
tmigone commented 2 years ago

Seems to be related to DT Overlays. Haven't identified which balenaOS version this broke but:

tmigone commented 2 years ago

Looks like vc4-kms-vd3 does not do analog audio so we need snd_bcm2835 module to take care of it. However we also need the snd_bcm2835 to only take care of analog audio.

Solutions (maybe?):

Sources:

rahul-thakoor commented 2 years ago

@tmigone perhaps we need conf files similar to the ones here

ViiMorales commented 6 months ago

Sorry if this is a dumb question, but how can i reorder the entries in the conf file? Balena always reboots an reorders them alphabetically if i modify them manually. and if i add the entries via the configuration in the dashboard i wont matter the order as it always builds the file in that order.

this actually fixes my problem but only briefly as i said balena reboots and resets the config.txt