Topology2: fix obs size for src converter from 48k

From 48k input, the obs for 11025/22050/44100/88200/176400 setting
need take care, previous implementation left 5 words redundancy
for output, this change removed redundancy, since actual output
buffer size always use double obs size.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
This commit is contained in:
Baofeng Tian 2023-10-30 15:03:08 +08:00 committed by Kai Vehmanen
parent 85a15e5a06
commit a451d6b69a
1 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,8 @@
]
out_bit_depth [ 32 ]
out_valid_bit_depth [ 32 ]
obs "$[($out_channels * (($[($out_rate + 999)] / 1000) + 4)) * ($out_bit_depth / 8)]"
# actual buffer size in sof is obs * 2, so here simply set to its period size
obs "$[$out_channels * ($out_bit_depth / 8) * (($out_rate / 1000)) * ($period / 1000)]"
}
]