SAI1 MCLK Active State Query in i.MX8MM

cancel
Showing results for 
Search instead for 
Did you mean: 

SAI1 MCLK Active State Query in i.MX8MM

482 Views
sreedhar_appala
Contributor IV

Hi,

I am working with i.MX8MM EVK and 4.14 imx-sumo yocto distribution.

SAI1 is designed as Master, Audio System Clock (MCLK) is generated by SAI1 and send to codec we interfaced.

what we observe is during aplay or arecord functionality MCLK is active and alive.

Is it possible to keep SAI1 MCLK alive(running) always once enabled?

Please let me know your suggestions.

Thank you, Sreedhar

 

0 Kudos
3 Replies

470 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Sreedhar

 

one can try to comment "clk_disable_unprepare(sai->mclk_clk...)" in fsl_sai.c

https://source.codeaurora.org/external/imx/linux-imx/tree/sound/soc/fsl/fsl_sai.c?h=imx_4.14.98_2.3....

 

Best regards
igor

456 Views
sreedhar_appala
Contributor IV

Hi Igor,

Thank you, I have tested this weekend.

Just by commenting out clk_disable_unprepare(sai->mclk_clk....) is not solving my problem.

The MCLK is seen on CRO only during aplay is executing and dies down when it stops.

Could you please let me know any other code changes are needed.

Thank you, Sreedhar

 

 

0 Kudos

441 Views
sreedhar_appala
Contributor IV

Hi Igor,

Thank you very much for sending the reply separately with required technical support details.

Our system design is mostly similar to the one which is described in the document specified.

Thank you once again,

Sreedhar

@Igor 

0 Kudos