Optical cable is the best. S/PDIF You will never get 5.1 out of the receiver over 3.5mm.
Am I safe to assume you are using onboard audio? What motherboard do you have?