Code 10 is a lack of resources or the wrong driver entirely.

You need to uninstall the realtek stuff. The sound didn't work on XP because you did not use the XP driver at Gateway I imagine.

Is the sound turned on in bios/setup?