Remove redundant ALSA plugins (plug, rate) from build

We use direct hw: device access with SpeexDSP for resampling, so the
ALSA plugin layer (plug) and rate conversion plugin are not needed.
This reduces library size while maintaining all required functionality.
This commit is contained in:
Alex P 2025-11-21 20:02:53 +02:00
parent 3692cdae83
commit 698978253b
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@ export CXXFLAGS="$OPTIM_CFLAGS"
cd alsa-lib-${ALSA_VERSION} cd alsa-lib-${ALSA_VERSION}
if [ ! -f .built ]; then if [ ! -f .built ]; then
chown -R $(whoami):$(whoami) . chown -R $(whoami):$(whoami) .
# Minimal ALSA configuration for audio capture/playback # Minimal ALSA configuration for direct hw: device access with SpeexDSP resampling
CFLAGS="$OPTIM_CFLAGS" ./configure --host $BUILDKIT_FLAVOR \ CFLAGS="$OPTIM_CFLAGS" ./configure --host $BUILDKIT_FLAVOR \
--enable-static=yes --enable-shared=no \ --enable-static=yes --enable-shared=no \
--with-pcm-plugins=plug,rate,linear,copy \ --with-pcm-plugins=linear,copy \
--disable-seq --disable-rawmidi --disable-ucm \ --disable-seq --disable-rawmidi --disable-ucm \
--disable-python --disable-old-symbols \ --disable-python --disable-old-symbols \
--disable-topology --disable-hwdep --disable-mixer \ --disable-topology --disable-hwdep --disable-mixer \