How can i hook my smart tv up pto my onkyo amplifier to hear my tv thru surround sound

What outputs does your Sony have? What inputs does your Onkyo have? Model numbers would help a lot...

For surround, you need optical or coax audio out from the TV. As a general rule - optical Out from Sony -> Optical In to Onkyo