Depends on what connections your TV had available and what connections the soundbar had available, you need to add those details to your post, or at least list the bands and models of the devices.
Depends on what connections your TV had available and what connections the soundbar had available, you need to add those details to your post, or at least list the bands and models of the devices.