I have tried so many things to try to get my realtek speakers to work after my computer's hard drive failed and I had to reinstall XP. I finally fixed the Code 10 problem by downloading the realtek drivers, they should be located at this website:
http://www.softwarepatch.com/utilities/ac97.html
I didn't download the driver from here but I cannot remember where it was, though somewhere in the realtek official website, the download I am pretty sure was 17MB so this seems like the right driver.
Download the driver to a file, then extract the contents of the downloaded file to a file that you can find easily, then go to that file, doubleclick on the realtek setup.exe file and it should install itself to your windows folder, repairing the Realtek AC97 Code 10 problem. If someone could do these steps and tell me that it does indeed work it would be appreciated, thanks and I hope that this solution works for all of you who don't have it fixed yet. Thanks,
Catachan Man.