Skip to content

Commit c1b96e5

Browse files
committed
Audio: SRC: Tune: Change factors for 48 to 11.025 kHz conversion
The conversion from 48 to 11.025 kHz was done with fractions 21/80 * 7/8. With denominator 80 in the first fraction the first stage of SRC needed 80 input frames to consume source buffer produce output internally. The change to fractions 7/20 * 21/32 helps to start consuming source buffer in the first copy. However due to 32 frames (at intermediate 16.8 kHz) need for second stage to process the sink buffer fill starts still after two copies. It is addressed in another patch. The change also impacts conversion 192 to 44.1 kHz and 96 kHz to 22.05 kHz. This change only impact the coefficients generator. The actual coefficients change is in the next patch. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 3e6da5f commit c1b96e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/src/tune/src_factor2_lm.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
%% Hand fixing for some ratios, guide to reuse some common filters
5555
if (l==147) && (m==640)
56-
l01 = 7; m01 = 8; l02 = l/l01; m02 = m/m01; % 192 to 44.1
56+
l01 = 7; m01 = 20; l02 = l/l01; m02 = m/m01; % 192 to 44.1, 48 to 11.025
5757
end
5858
if (l==147) && (m==320)
5959
l01 = 7; m01 = 8; l02 = l/l01; m02 = m/m01; % 96 to 44.1

0 commit comments

Comments
 (0)