codec works in slave mode, ssi generate the sclk and frame clock .
the sys's clock is 24M, i follow the nex table to configure registers :
Table 61-7. SSI Bit Clock and Frame Rate as a Function of PSR, PM, and DIV2.
but bit clock and frame sync clock dnot work correctly .
how can i call function imx_ssi_set_dai_clkdiv according to the sample_rate and sample_format?
Do you have relevant document or demo to introduce the configure ?
Hi 明镜 明
for frequency selection examples please refer to Chapter 7
Audio attached Linux Manual and unit tests:
imx-test (folder /mxc_sound_test)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
HI, igorpadykov
thanks a lot.
there is no audio attached Linux manual in imx-test-5.7.tar.gz.
how can i get the audio attached ?
can you provide for me ?
sorry, it is ../mxc_sound_test, it is attached.
SDK (../drivers/audio)
swp-report/iMX6_Platform_SDK/sdk/drivers/audio at master · backenklee/swp-report · GitHub
Best regards
igor
HI,igorpadykov
Thanks a lot.
HI,@igorpadykov
Thank you for your answer.
I need to configure the i2s clock in kernel ,not in app。
ssi works in master mode。
how can i configur the ssi‘s register according to the sample rate and date format.
in machine driver (imx-sgtl5000.c) 。
thanks a lot。
I do not think that this is possible thorugh some simple
register settings using "imx_ssi_set_dai_clkdiv ", as alsa subsystem configures
it using own apis.
Please check attached in previous answer linux manual and
look at sources in Table 7-1. Stereo Codec SoC Driver Files
For better understanding probably may be useful to look at baremetal audio tests
Github SDK (/drivers/audio)
https://github.com/backenklee/swp-report/tree/master/iMX6_Platform_SDK
Best regards
igor