OK, I had the same problem. If the above solution doesnt work for you...this is what I did. I have a samsung tv (smart tv) and harmon/kardon sound bar.
Go to Samsung TV Menu
Click Sound option
Change Speaker Setting to "External Speaker"
Then go into SPDIF Output and change setting to PCM...