Many years ago I wrote a script at
DigitalAC-3PulseaudioInstaller which automates the steps to enable SPDIF
surround sound on Ubuntu. However it has broken after 14.04, and I would
like to continue its development, supporting more Ubuntu versions and
making it more robust.
you need to join the ~ubuntu-wiki-editors team. The queue seems to be
long, so once you have applied, I'd suggest that you contact one of the
team administrators to call their attention to your application.