Boot your PC using a LiveCD like Knoppix or Mepis. If those OS's recognize your soundcard test it by playing some sound music. If you still get bad sound output, then it is a hardware problem and you should get a warranty replacement (if you still have warranty), get the laptop repaired, or live with it if repairing is too dear.
http://knoppix.nethttp://mepis.org