Tool/software: Linux
hardware: imx6q AUD3 port connect with TLV320AIC3100
software linux: 3.14.28
I want to config TLV320AIC3100 as i2s master.
My source code of codec is come from linux kernel.
Now 24Mhz clock on mclk is OK.
my reg map like below:
--------------------[BANK = 0]----------------------
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
----------------------------------------------------
00 | 00 00 01 66 03 a1 07 14 90 00 00 88 82 00 80 80
10 | 08 00 88 82 80 80 04 00 00 00 01 0c 00 00 88 00
20 | 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 00
30 | 00 00 00 02 32 12 03 02 02 11 10 00 01 04 00 14
40 | 00 d8 d8 00 6f 38 00 00 00 00 00 ee 10 d8 7e e3
50 | 00 00 80 00 00 00 00 00 7f 00 00 00 00 00 00 00
60 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70 | 00 00 00 00 00 74 00 00 00 00 00 00 00 00 00 00
80 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
e0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0 | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
kernel log:
[ 2.235413] ASoC: Registered codec 'tlv320aic31xx-codec.2-0018'
[ 2.372431] ## aic31xx_set_dai_sysclk: clk_id = 0, freq = 24000000, dir = 0
[ 2.385707] ## aic31xx_set_dai_sysclk: p_div = 2, i=0
[ 2.393066] tlv320aic31xx sound-tlv32.23: tlv320aic31xx-hifi <-> 202c000.ssi mapping ok
root@imx6qsabresd:~# aplay temp.wav
## aic31xx_hw_params: width 16 rate 44100
[ 30.128044] pll 7.5264/2 dosr 128 n 8 m 2 aosr 128 n 8 m 2 bclk_n 8