DIY stereo (mpd player, vol-control, spdif switch)

Hi Linux-works.
I'm a fellow audio guy from Headfi.
How does the audio part work?
Did you do it with the arduino, or is there somethin else involved.
Would be awesome to have a arduino controlled mpd player that outputs spdif or i2s. If you already did that, great :).