HI:
I want to set sai1 run in tdm mode ,16slot ,The following error occurred:
///////////////////////////////////////////////
[ 61.669281] ####imx_aif_hw_params 11111111111 get mclk_freq 45158400
[ 61.669281]
[ 61.679312] #############start 1452 substream->stream 0 , val 0
[ 61.693463] ######################## adau 1452 i2c read reg 0x81c , value 0x76
[ 61.700801] ######################## adau 1452 i2c write reg 0x81c , value 0x74
[ 61.708240] ######end 1452 substream->stream 0 , val 0 --rate 44100
[ 61.714631] ###### chend fsl_sai_set_bclk id 0, clk_rate 0, freq 22579200
[ 61.721708] ###### chend fsl_sai_set_bclk id 1, clk_rate 43750000, freq 22579200
[ 61.729395] ####chend fsl_sai_set_bclk freq 22579200, ratio 1, ret 21170800
[ 61.736638] ###### chend fsl_sai_set_bclk id 2, clk_rate 0, freq 22579200
[ 61.743724] ###### chend fsl_sai_set_bclk id 3, clk_rate 0, freq 22579200
[ 61.750795] fsl-sai 30010000.sai: failed to derive required Tx rate: 22579200
[ 61.757975] fsl-sai 30010000.sai: ASoC: can't set 30010000.sai hw params: -22
//////////////////////////////////////////////////
this is my sai1 dts config
//////////////////////////
&sai1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sai1_tdm>;
assigned-clocks = <&clk IMX8MM_CLK_SAI1_SRC>,
<&clk IMX8MM_CLK_SAI1_DIV>;
assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>;
/* assigned-clock-rates = <0>, <131072000>;*/
assigned-clock-rates = <0>, <43750000>;
fsl,sai-multi-lane;
fsl,sai1;
/* fsl,sai-asynchronous;*/
fsl,dataline,dsd = <0 0xff 0xff 2 0xff 0x11>;
dmas = <&sdma2 0 26 0>, <&sdma2 1 26 0>;
status = "okay";
};
///////////////////////////////////////////////
How to set the clock use 16 slot?
Thanks!
Hi chen
for tdm configuration one can check suggestions on:
How to setup sai1 tdm mode for imx8mq-evk?
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------