In the SPDIF loopback example for the sharc processor there is a problem in the spdif_loopback.c file.
At line 534 and 540 in the SpdifInit function the validity bit for the Tx is set to one by calling the function :
Cfr the spec, the validity bit that is indicating if the audio samples are valid, should be zero (0) for a sample that may be used for the receiver, and the sample may not be used by the receiver if this bit is set. I know it is confusing but it is the spec, and some receivers do take this bit into account !
So this line should be changed in :
to be conform the spec.