This suggests to me you should focus your efforts on
- his PC’s BIOS or
- on a newer alsa version or
- on power management (ACPI) / special boot code for his motherboard.
In the case of the BIOS, look for:
a. sound being turned ON in this motherboard’s BIOS, or
b. something else being switched OFF (or ON) in the BIOS causing problem (maybe switch OFF plug an play if ON (or visa versa)),
c. a newer BIOS version.
I assume, sound worked under MS-Windows. Note though, that Linux is more sensitive to BIOS settings than Windows (Windows will on occasion ignore the BIOS settings).
Ok, … so you tried the “alsa” route! … I personally avoid the realtek drivers like a plague. From what I have read they are undocumented edits to the alsa drivers … and one is typically better off with the alsa drivers.
Try booting with safe settings (fail safe) and check sound with that. Does it work? In terms of a sound test, I recommend this test from the audio troubleshooting guide: SDB:AudioTroubleshooting - openSUSE
speaker-test -Dplug:front -c2 -l5 -twav
However that dmesg warning needs to be addressed, and no optimized sound test will help until it is addressed.
Can you provide specific information on his motherboard? For example, some laptops (the Toshiba P100/105 series for example) required special boot codes to get sound codec recognized: How To Have Sound On A Toshiba P105/100 Series (oss 10.3) - openSUSE Forums
In the case of the Toshiba’s, one had to put in the boot code:
acpi_osi=!Linux
Also, try downloading an burning a “sidux” live cd, and/or a Kanotix “live cd”, and then booting with those. Does sound work? They have possibly the best hardware detection in Linux, and if sound works under any Linux, IMHO its most likely to work with those Live CDs.
If worst comes to worst, and a BIOS update, and safe setting boot fails, can you please write a bug report? I know, that’s an unsatisfactory solution from your and your friend’s viewpoint, but at least the community will benefit from your hard work, as by writing a bug report, this will be brought to the attention of the developers.
opensuse bug reposts: Submitting Bug Reports - openSUSE
alsa bug reports: https://bugtrack.alsa-project.org/alsa-bug/