Connect all your source to the TV.
Connect the optical audio output of the TV to an optical input on the receiver with a Toslink cable.
Check the owners manual of the TV on how to use the optical output.
Check the owners manual of the receiver on how to assign an optical connection to an input ( optical 1 to TV for example).