From 01a62372ff7c248ee587b68d38fcc0f0e7ebfbe9 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 9 Sep 2025 08:07:34 -0400 Subject: [PATCH] flac: Fix build on Cowon D2. Not enough IRAM on this target to support larger MAX_BLOCKSIZE even with only 2ch. Change-Id: I91675b9eb294f8af3f7d17aa9c76c7cb83ce0bd7 --- lib/rbcodec/codecs/libffmpegFLAC/bitstream.h | 2 +- manual/appendix/file_formats.tex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rbcodec/codecs/libffmpegFLAC/bitstream.h b/lib/rbcodec/codecs/libffmpegFLAC/bitstream.h index 824991f57d..ab17309a3b 100644 --- a/lib/rbcodec/codecs/libffmpegFLAC/bitstream.h +++ b/lib/rbcodec/codecs/libffmpegFLAC/bitstream.h @@ -35,7 +35,7 @@ #define IBSS_ATTR_FLAC_XXLARGE_IRAM #endif -#if (ARCH == ARCH_M68K) || defined(CPU_PP) || MEMORYSIZE <= 2 +#if (ARCH == ARCH_M68K) || defined(CPU_PP) || defined(CPU_TCC780X) || (MEMORYSIZE <= 2) #define MAX_BLOCKSIZE 4608 #else #define MAX_BLOCKSIZE 8192 diff --git a/manual/appendix/file_formats.tex b/manual/appendix/file_formats.tex index ae3f321646..cb37d9b532 100644 --- a/manual/appendix/file_formats.tex +++ b/manual/appendix/file_formats.tex @@ -147,7 +147,7 @@ Free Lossless Audio & \fname{.flac} & Multichannel and/or high-resolution files will be downmixed to 16-bit stereo. - \opt{ipod,iriverh10,sansaclip,sansam200v4,sansac200v2,iriverh100,iriverh300,iaudiox5,iaudiom5,iaudiom3,mpiohd200,mpiphd300}{ + \opt{ipod,iriverh10,sansaclip,sansam200v4,sansac200v2,iriverh100,iriverh300,iaudiox5,iaudiom5,iaudiom3,mpiohd200,mpiphd300,cowond2}{ \nopt{ipodnano2g,ipod6g}{Due to resource constraints, files with large block sizes are not supported, and realtime playback may not be possible where downmixing is necessary.}} \\ Apple Lossless