thanks for the reply.
Unfortunatly, i cannot connect directly the box to my amp bacause of lack of input. My amp is internal connected to the Raspberry. This is one box containing amp & rasp with only USB/HDMI/Ethernet ports of the rasp are available.
I would imagine a software solution with a usb device to get the SPDIF signal.