PS4 Slim not getting sound through soundbar?

Soundbar is connected to the tv through digital out optical.... I get sound from the soundbar when using cable tv which is connected to the tv through by an hdmi cable.... when I change input to the ps4 which is connected by hdmi cable the sound will not work with the ps4...and the only way I can get sound at all... show more Soundbar is connected to the tv through digital out optical.... I get sound from the soundbar when using cable tv which is connected to the tv through by an hdmi cable.... when I change input to the ps4 which is connected by hdmi cable the sound will not work with the ps4...and the only way I can get sound at all from the ps4 is through the tv’s internal speakers......I have gone into ps4 setting in and the audio setting is at “linear pcm”...... how can I get the ps4 slim to have its audio go through the soundbar?

If you can help, thank you very much
1 answer 1