Hi @VladanJovanovic
We can make sure to synchronize every audio-stream recipient using for instance PTP or NTP, but we will still have clock-drift between the synchronized audio-stream and the audio-codec on a specific device since the audio-codec clock is derived from the local oscillator on that device. To my knowledge we cannot use PTP for making the audio-codec run synchronized to PTP-master, but maybe that is possible?
So hence my question about running the asrc without an input-clock (since we do not have a physical PTP-synchronized input-clock) and then adjust the ideal_ratio to make the input-side of the asrc consume audio in the rate of the synchronized audio-stream while the output-side is running using the audio-codec clock.
We should be able to use for instance a PID-regulator to match the rates between the synchronized audio-stream and the asrc input-side since we know when we get audio-buffers and when the asrc requests more audio. So if we could run the asrc without a physical input-clock and adjust the ideal_ratio register in runtime, then we should be able to match the rates and remove the clock-drift.
But if it is possible to synchronize the audio-codec clock with PTP, that would probably be a much simpler solution but I have not seen such possibilities.
BR,
Danny