Tv to sounbar

Solution
If the TV has a headphone jack or analog audio output (not an input) then connect that to the soundbar.
If the TV has a digital audio output then you will need a digital to analog converter.
Check the TV manual on how to configure and use the digital audio output.