Satellite Receiver HDMI out to TV HDMI1 in.
DVD Player HDMI out to TV HDMI2 in.
TV Optical out to Sound Bar Optical in.
If you want anything more detailed than that, you're going to need to give us more details (manufacturers and model numbers of each component).
-Wolf sends