I have modified original AN00231 project for my self-made board.

I want to convert input 44.1/48/88.2/96 to 192 output.

After changing ASRC_N_OUT_IN_RATIO_MAX from 3(default) to 5 in the app_config.h conversion from 44.1/48 -> 192 works correctly.

But in modes 88.2/96 -> 192 the output sound has distortion.

Here is console output

Code: Select all

`Starting I2S`

SR change in lib_audio_codec - 192000

Initializing I2S to 192000Hz and MCLK to 24576000Hz

// input 48k

New rate in SRC in=1, out=5

New rate in SRC in=1, out=5

spdif rate ave=48003, valid=1, i2s rate=191999, valid=1, i2s_buff=-1, fs_ratio=0x400010F, nom_fs=0x4000000

spdif rate ave=48003, valid=1, i2s rate=191999, valid=1, i2s_buff=-1, fs_ratio=0x4000067, nom_fs=0x4000000

spdif rate ave=48003, valid=1, i2s rate=191999, valid=1, i2s_buff=-2, fs_ratio=0x3FFFE26, nom_fs=0x4000000

// change input to 44.1k

New rate in SRC in=0, out=5

New rate in SRC in=0, out=5

spdif rate ave=44102, valid=1, i2s rate=191999, valid=1, i2s_buff=-15, fs_ratio=0x3ACB121, nom_fs=0x3ACCCCC

spdif rate ave=44102, valid=1, i2s rate=192000, valid=1, i2s_buff=-7, fs_ratio=0x3ACCDA7, nom_fs=0x3ACCCCC

spdif rate ave=44101, valid=1, i2s rate=191999, valid=1, i2s_buff=2, fs_ratio=0x3ACD9D0, nom_fs=0x3ACCCCC

// change input to 32k

spdif rate ave=7662, valid=0, i2s rate=191103, valid=0, i2s_buff=-3, fs_ratio=0x3ACCCCC, nom_fs=0x3ACCCCC

// change input to 96k

spdif rate ave=61037, valid=0, i2s rate=191496, valid=0, i2s_buff=55, fs_ratio=0x3ACCCCC, nom_fs=0x3ACCCCC

spdif rate ave=61232, valid=0, i2s rate=191443, valid=0, i2s_buff=19, fs_ratio=0x3ACCCCC, nom_fs=0x3ACCCCC

// change input to 88.2k

spdif rate ave=61061, valid=0, i2s rate=191494, valid=0, i2s_buff=66, fs_ratio=0x3ACCCCC, nom_fs=0x3ACCCCC

spdif rate ave=61233, valid=0, i2s rate=191449, valid=0, i2s_buff=19, fs_ratio=0x3ACCCCC, nom_fs=0x3ACCCCC

// change input to 48k

New rate in SRC in=1, out=5

New rate in SRC in=1, out=5

spdif rate ave=48003, valid=1, i2s rate=191999, valid=1, i2s_buff=-1, fs_ratio=0x4000712, nom_fs=0x4000000

Could anybody confirm that original project on the xCORE-200 Multichannel Audio Platform can convert 88.2/96 -> 192 ?

Do I need to change any defines in the app_config.h ?