we are developing and AVB <-> I2S slave application on a custom board derived from xCORE-200 Multichannel Audio platform version 2. The different thing is that the I2S interface is slave and not master.
We have modified the AN0202 example (Gigabit Ethernet AVB endpoint example using I2S master) and the application is now almost working.
What we can't figure out is how the audio clock management works:
- in DEVICE_MEDIA_CLOCK_LOCAL_CLOCK mode we would like to syncronize the AVB communication with the I2S word clock, but it seems like that the core uses the internal clock (we are not sure).
* Can anyone give us some hints on how the audio clock is handled on AVB library? - in DEVICE_MEDIA_CLOCK_INPUT_STREAM_DERIVED we would like to extract a word clock (or something similar) from the AVB stream and send it to a CS2000 (a pll/clock recovery chip) to recover it. From the reference board we thought that the PLL_SYNC signal on X0D0 (p_fs port on the example code) was what we needed, but we are not sure that it is the correct signal: from what we have understood that signal is always generated from the internal clock of the XMOS.
* Can anyone help us to understand this?
* In case the signal is not correct, there is a way to generate a reference clock from the AVB stream?
I'm not sure if I was clear. I can provide more information if necessary.
Many thanks in advance,
Andrea