I am facing some issues in playing i2s audio on ad9889b.
My board contains an audio codec STA529 and and HDMI transmitter AD9889b.
same i2s input goes to both sta529 and ad9889b .
When i type the following command:
aplay -f S16_LE -r 48000 -c 2 -t raw -D plughw:0,0 /opt/48_16_2.pcm,
I observe that I am getting audio aoutput from STA529 but not from HDMI receiver.
I am using an HDMI analyzer(Astro-VA-1809A) as HDMI sink and it shows AUDIO FIFO ERROR and PLL lock error in audio timing.
I have tried both manual and automatic methods for CTS.
I am using N as 6144 and CTS calculated in automatic mode is 148230(while playing audio it keeps toggling between 14229 and 14230).
For manual mode I use a value of 74250 as per the programming guide.
In automatic mode I only get audio fifo error but in manual mode i get both audio fifo and pll lock error.
I observe that Audio info frame is correct in both the cases but channel status bit shows audio fifo error and pll lock error.
Could any body please tell me where I am making mistake ?
The value of the audio setup related registers are as follows:
0x04 = 0x02
0x05 = 0x43
0x06 = 0x06
0x0a ---> 1
0x0e = 0x01
0x0f = 0x13
0x 11 = 0x37
0x12 = 0x00
0x13 = 0x00
0x 14 = 0x02
0x15 = 0x20
0x40 = 0x00
0x44 = 0x78
0x51 = 0x00
Please let me know where I am making mistake. Is there anything else that I need to check.
Thanks in advance,