My sound receiver is still one of the older models, without an HDMI input. So I have my Raspberry Pi connected to my tv through HDMI, and then from the tv to the receiver through an optical cable. On my tv the sound is set to External Speakers. On my Raspberry PI with RasPlex on, the sound is set to HDMI (5.1), and both Dolby and DTS enabled selected.
When I play a Dolby or DTS movie from RasPlex, I'm only getting stereo on my receiver.
When I play a Dolby or DTS movie through USB on the tv, the receiver detects the Dolby or DTS stream and plays it.
Also, I have my Xbox 360 connected the same way, HDMI to tv, and the same optical cable to my receiver. When I use my Xbox, the receiver detects the Dolby stream without a problem.
The tv is a 2013 series 6 model Samsung.
Any idea what might be wrong?