It sounds like you need a switch unless I’m misunderstanding. I have a rocketfish splitter that can handle 4K hdr and Atmos. It works well with my harmony remote for the additional commands to switch HDMI ports.
https://www.bestbuy.com/site/rocketf...?skuId=5055100
I have my PS4 Pro, Apple TV 4K and Nvidia Shield all going into the hdmi ports on the switch and then to my Samsung/ HK sound bar and works for me. HDMI out from sound bar goes to TV.