In my bedroom I have a Roku Smart Soundbar with my 2019 SOny BRAVIA TV and Xbox One X and it works great. All I have to do is to change the input on my TV and I can get sound through HDMI to my XBox.
I added a Smart Soundbar to my living room with my 2014 Sony 4K TV, but cannot get sound to the XBOX. The TV doesn't support ARC so I am using an optical cable between the Soundbar and the TV and I get sound on Roku and Roku apps, but don't get any sound from the soundbar on XBox.
Any ideas would be appreciated.