Look at other sound formats on the Samsung and if you use Apps, check them for sound options. Most soundbars are not Dolby, 5.1 or such but stereo. Try PCM, stereo, etc.
Sorry but I didn't check your models and manuals. However it's a common issue. If no settings work, then does the red light show on the end of the optical cable (use paper, not directly to your eyes.)
Wondering if anyone has an answer...
I recently sold off my Pioneer Receiver and surround sound speakers in favour of something that takes up a little less space. The problem I am having (that nobody at Samsung seems to be able to help me with) is I do not get any sound from my Optical Out on my TV to the Optical In on my Soundbar. Seems like a pretty simple set in theory but in practice...no dice.
The only two components being routed into the TV at the moment via HDMI is my HD Cable box and my Samsung Blu Ray player. The thing that is bothering my most is that I seemed to have no issue with the optical out on the TV when it was connected to the Pioneer Receiver and another Optical cable ran from my Blu Ray to the Receiver. I have checked and rechecked that the connections are good and even tried a second optical cable...still nothing.
I decided to route the optical direct from my cable box and Blu Ray directly and the sound play fine through the Yamaha Sound Bar (as does a bluetooth connection through my phone fyi). The problem there is that there is only 1 optical in port in the sound bar so that means plugging and unplugging when I switch between TV and Blu Ray.
Any help would be appreciated. I have tried all setting on the TV menu and cannot get it to work...I am beginning to think that the optical output may have just coincidentally decided to fail!?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic