We recently had a similar problem - but only via the headphones.
Remove the supplied sound card driver via add/remove programs, then reboot the laptop. At startup, it will use a generic driver for the sound and this should work without any problem. Don't reinstall the Compaq sound driver.
Hope this helps,