From bba6a4cb0438405f2b7f60a5c83b3a235c7e3808 Mon Sep 17 00:00:00 2001 From: Peter Ujfalusi Date: Wed, 17 Apr 2024 14:55:19 +0300 Subject: [PATCH] topology2: common: pcm_caps: Revisit default period and buffer sizes Increase the default period_size_max to a much larger value which is commonly used by sound cards from 16384 to 2097152. Adjust the buffer_size limits to minimum 384 (2 * period_size_min) and the maximum to 4194304 (2 * period_size_max). Applications do not need to use these large buffers, but there is no technical reason to not allow them, like they available on other sound hardware. Signed-off-by: Peter Ujfalusi --- tools/topology/topology2/include/common/pcm_caps.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/topology/topology2/include/common/pcm_caps.conf b/tools/topology/topology2/include/common/pcm_caps.conf index dcd6f6aeab7d..d4cc20568311 100644 --- a/tools/topology/topology2/include/common/pcm_caps.conf +++ b/tools/topology/topology2/include/common/pcm_caps.conf @@ -87,8 +87,8 @@ Class.PCM."pcm_caps" { periods_max 1024 channels_min 2 channels_max 2 - period_size_min 192 - period_size_max 16384 - buffer_size_min 65536 - buffer_size_max 65536 + period_size_min 192 # "$[((2 * $channels_min) * 48000) / 1000]" (48K, S16_LE, 1ms) + period_size_max 2097152 # Large enough to cover user's needs + buffer_size_min 384 # "$[$period_size_min * $periods_min]" + buffer_size_max 4194304 # "$[2 * $period_size_max]" }