rgnano: Shrink CODEC and PLUGIN buffer sizes to reasonable sizes

(From 4MB->2MB and 8MB->2MB, respectively)

This is a hosted platform with a decent amount of free RAM; however
plugins and codecs are dlopen() which doesn't count against those
buffers.  Furthermore, the rgnano uses musl libc which does NOT
implement dlclose() so plugins, codecs, etc stick around in RAM
indefinitely even if they are never used again.

By shrinking these buffers we free up a bit more headroom for dlopen()
to leak, and for the host OS to provide disk caches and whatnot.

Change-Id: Ie657bd3b9fc8bd2a1f4bbc07debe3b10538c41c3
This commit is contained in:
Solomon Peachy 2025-09-13 08:41:10 -04:00
parent c14ea0e01e
commit 14157860b9

View file

@ -51,10 +51,10 @@
#define CONFIG_RTC APPLICATION
/* The number of bytes reserved for loadable codecs */
#define CODEC_SIZE 0x400000
#define CODEC_SIZE 0x200000
/* The number of bytes reserved for loadable plugins */
#define PLUGIN_BUFFER_SIZE 0x800000
#define PLUGIN_BUFFER_SIZE 0x200000
#define AB_REPEAT_ENABLE