The device is not the fault, it's the cable.
Your TV may have a port labelled for optical audio, but it's a sorely underused port that most consumers may not even realize they have. Here's what it does.
If you have a fancy home theater system with a soundbar and surround sound speakers, then how you connect it to your TV is an important consideration. There are legacy options you may be more familiar ...