Hi Alejandro,
Sorry it took me a while to respond. I did not try to use CKO1 to access SAI0 clock, quite possible that this is working. The problem does not seem to be the CCM_CSCMR1[SAIn_CLK_SEL] selection, but within the SAI IP itself.
The clock selection I'm trying to switch is SAIx_TCR2[MSEL]....
When using TCR2[MSEL] = 01, I expect the clock defined in CCM_CSCMR1 so it can be External clock, SPDIF clk or PLL4 Main clk. => This works fine!
When using TCR2[MSEL] = 00, I expect bus clock (IPS bus clock) as SAI input clock => This does not work. I get the same clock as when using 01 (like above)
So, what I'm saying is, that TCR2[MSEL] = 00 does not allow to select the IPS bus clock as documented...
--
Stefan