Skip to content

Commit

Permalink
Topology2: fix obs size for src converter from 48k
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
btian1 committed Nov 14, 2023
1 parent 6703729 commit 5aa7c35
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]"
}
]

Expand Down

0 comments on commit 5aa7c35

Please sign in to comment.