The new driver files are attached. Since the changes are widespread, I have not made patches (but will on request). Can someone please check the sqUnixSoundSun.c file into SVN (assuming it's OK)? I have included the other file, sqUnixSoundSun-select.c, for comparison only.
Sorry, I forgot to turn on compiler warnings and fix them. (I also forgot to update the subject line. It's late...)
This is a cleaned-up version of the new driver.