There is no HDMI input terminal on Sound Bar, so you cannot output audio from a device other than the TV even if they are connected directly by HDMI cable.
If you want to output the audio of a device other than the TV, connect it to the TV's HDMI input terminal by HDMI cable and output the audio through the TV.