sorry.. its a cumbersome answer.. let me put it in this way.. to get 5.1 ch audio.. connect your tv through this cable
www.amazon.in/BlueRigger-Digital-Optical-Audio-Toslink/...
so output from tv should be digital audio (just side of the 3.5 mm cable) and it should be the input for this...