Make sure the front panel support type in the BIOS is set to AC'97. This page gives detailed descriptions of the audio connector and shows you what the pin numbers are. Pin 10 in your image is incorrect. It is not BLINE_OUT_R. It is actually BLINE_OUT_L. There may be a jumper on the audio connector which connects pin 5 and 6 and another jumper which connects pin 9 and 10. If you have those jumpers then remove them.
You only need to connect one of the ground wires and it doesn't matter which one.
mic-in - (pin 1) mic2 ground - (pin 2) agnd mic-power - (pin 3) micpwr R out - (pin 5) line out_R R ret - (pin 6) BLINE_OUT_R L out - (pin 9) line out_L L ret - (pin 10) BLINE_OUT_L (this is labeled incorrectly in your image!)