How are you supposed to get 5.1 audio out of your PC? When I hook the SPDIF device from my STAC9227/HDA audio up to pulse, pulse says that the SPDIF channel only supports stereo.
So I go digging around the in STAC9227 datasheet. http://www.idt.com/?genID=STAC9227
STAC9227 codec only supports 192Khz SPDIF with 4/1*48Khz channels. It doesn't support 384Khz with 8/1*48Khz channels.
So there are two problems, first the existing Intel HDA/STAC9227 driver is not exposing the 4 channel SPDIF support. Or I can't figure out how to get to it.
Second, the hardware doesn't seem to support any way to get digital 5.1 audio out of the codec and into my Sony amp. STAC9227 does have six channel analog out, but my Sony amp doesn't have 6 channel analog in. Sony amp supports 384Khz 8-channel SPDIF in.