This ensures dt parameters like dtparam=audio=on which appear
after "include distroconfig" are applied to the base dt instead
of the last dtoverlay loaded in distroconfig.
Signed-off-by: Matthias Reichl <hias@horus.com>
RPi firmware allocates a 4k framebuffer in gpu mem when 4kp60 is
enabled which leads to H264 decoding failing because it's running
out of GPU memory.
This framebuffer isn't used/needed in LE at all, so limit it's size
to HD (which the firmware does in non-4kp60 setups) until the KMS driver
and the firmware support freeing the orphaned framebuffer.
Signed-off-by: Matthias Reichl <hias@horus.com>
The switch to HDMI_CODEC moved the IEC958 control from mixer to PCM,
adjust the ALSA card conf accordingly.
Signed-off-by: Matthias Reichl <hias@horus.com>
PR 5044 added incomplete kernel options for RPi4 which lead
to questions from "make oldconfig" during kernel build.
Fix this by processing RPi4 kernel config with oldconfig and
setting the missing options.
Signed-off-by: Matthias Reichl <hias@horus.com>
The default of 512k is too small at 192kHz/8ch, kodi can only get a
86ms buffer instead of the 200ms buffer it usually wants. That results
in occasional buffer underruns when playing media from local storage
which is uncached in kodi's default settings.
Increase the alsa buffer size to 1.2MB so kodi can get the audio buffer
size it likes to have.
Signed-off-by: Matthias Reichl <hias@horus.com>
valgrind is only included if VALGRIND is explicitly set to "yes",
setting it to "no" in some options files is not needed.
Signed-off-by: Matthias Reichl <hias@horus.com>