Hello:
I encountered the following problems when recording with imx8mp:
Kernel version: Linux imx8mpevk 5.15.71
I configured sai3 as slave i2s mode. The following is a screenshot of some codes
When I execute arecord -f dat > test.wav command, theoretically should record sample rate 48000, but params_rate(params); This kernel interface always returns 44100, the sound I am recording is distorted, I suspect it is partly caused by this, please help to analyze the reason
Hi @yzg
Please check below code in your kernel :
if (format_is_dsd(params)) {
/* Use the maximum freq from DSD512 (512*44100 = 22579200) */
if (!(params_rate(params) % 11025))
mclk_freq = IMX_CARD_MCLK_22P5792MHZ;
else
mclk_freq = IMX_CARD_MCLK_24P576MHZ;
}