Since your TV has only two HDMI inputs and you need three you need to add an HDMI input selector with at least three inputs. Connect all the Roku, PS3, and HTIB to the switcher via HDMI. Connect the switch to the TV via HDMI. Connect the TV optical audio out to the HTIB.