SPDIF Example for STM32F7?
Amazing explanation, Thank you tjaekel! Really appreciated.
For now, I've decided to modify the original code, so at least UI stays responsive while we are waiting for spdif buffer to be able to receive new data. Also, checking the issue with double buffering as you suggested.
Meanwhile, I've tried to switch to optical input instead of coax. Using PLR135/T10 and by removing U2 op-amp from the input of PD7 (STM32f7 DISCOVERY). It works but some frames are played twice. Looks like some code modifications needed in this case as well :/
Hope I'll have some code to share at the end!