From 50b38430ba00d4154dff01d54cb305b308b5c966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nahuel=20G=C3=B3mez?= Date: Thu, 7 Nov 2024 21:01:00 -0300 Subject: [PATCH] sound: abox: Bump buffer sizes up MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm not sure if this will help, but the idea is to give the codec more room for error, since currently there is audio crackling under moderate CPU load. Signed-off-by: Nahuel Gómez --- sound/soc/samsung/abox/abox.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sound/soc/samsung/abox/abox.h b/sound/soc/samsung/abox/abox.h index 9d5dbc036..0efa98006 100755 --- a/sound/soc/samsung/abox/abox.h +++ b/sound/soc/samsung/abox/abox.h @@ -28,9 +28,9 @@ #define DEFAULT_MIF_FREQ_ID DEFAULT_CPU_GEAR_ID #define DEFAULT_SYS_POWER_ID DEFAULT_CPU_GEAR_ID -#define BUFFER_BYTES_MIN (SZ_64K) +#define BUFFER_BYTES_MIN (SZ_512K) #define BUFFER_BYTES_MAX (SZ_1M) -#define PERIOD_BYTES_MIN (SZ_16) +#define PERIOD_BYTES_MIN (SZ_64) #define PERIOD_BYTES_MAX (BUFFER_BYTES_MAX / 2) #define SRAM_FIRMWARE_SIZE CONFIG_SND_SOC_SAMSUNG_ABOX_SRAM_SIZE @@ -95,7 +95,7 @@ | SNDRV_PCM_FMTBIT_S32) #define ABOX_SUPPLEMENT_SIZE (SZ_128) -#define ABOX_IPC_QUEUE_SIZE (SZ_128) +#define ABOX_IPC_QUEUE_SIZE (SZ_64) #define CALLIOPE_VERSION(class, year, month, minor) \ ((class << 24) | \