On Mon, May 2, 2016 at 4:30 PM, Petr Kulhavy brain@jikos.cz wrote:
Mine plays at the correct speed. For the correct speed the clock assignment from the Freescale DTS needs to be copied, so that the SAI2 clock generates 12.288MHz. Below are the relevant nodes from my DTS:
&clks { assigned-clocks = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>; assigned-clock-rates = <786432000>; };
That was the part I was missing, thanks!
It plays correctly now, but I get this error message from the wm8960 driver:
$ aplay /home/clarinet.wav [ 55.007221] wm8960 1-001a: failed to configure clock [ 55.012583] wm8960 1-001a: ASoC: Failed to prepare bias: -22
Do you see this too?
- Find a proper way to enable MCLK.
I would tend to put the control of the SAIx_MCLK_DIR into the SAI driver and if needed add an extra boolean property like "enable-mclk-output".
Yes, I think this makes sense.
I will propose some patches today or tomorrow and will keep you on Cc.
Thanks for the cooperation :-)