Attached patch fixes the SPDIF passthrough playback of the 14 bit LE DTS files
(often called as DTS-WAV). The issue with current code is that
"IEC958 header + DTS data" is longer than frames samples size and therefore
the DTS block is sent incompletely.
One of solutions is to send such block w/o IEC958 header and let receiver
auto-detect it. Another solution is to shrink the DTS data block (MPlayer
uses this way), but it doesn't work for many receivers.
The samples to test can be found e.g. here:
http://www.sr.se/laddahem/MultiKanal/Dts/SURROUNDTEST_011212.zip [^] 14MB
http://www.sr.se/laddahem/MultiKanal/Dts/electronics_dts.zip [^] 47MB