From f28fd43ea5855808fb9dd684997ac78e983391f4 Mon Sep 17 00:00:00 2001 From: Baofeng Tian Date: Mon, 30 Oct 2023 15:03:08 +0800 Subject: [PATCH] Topology2: fix obs size for src converter from 48k From 48k, the obs for 11025/22050/44100/88200/176400 setting need take care, previous implementation left 5 words redundency for output, this change only keep 1 words redundency. Signed-off-by: Baofeng Tian --- .../include/components/src_format_s32_convert_from_48k.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf b/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf index a1b25d5fbc5b..61f5d9a3252e 100644 --- a/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf +++ b/tools/topology/topology2/include/components/src_format_s32_convert_from_48k.conf @@ -27,7 +27,7 @@ ] out_bit_depth [ 32 ] out_valid_bit_depth [ 32 ] - obs "$[($out_channels * (($[($out_rate + 999)] / 1000) + 4)) * ($out_bit_depth / 8)]" + obs "$[$out_channels * (($out_rate / 1000) + 1) * ($out_bit_depth / 8)]" } ]