{"id":44,"date":"2006-03-20T21:05:01","date_gmt":"2006-03-20T20:05:01","guid":{"rendered":"http:\/\/blog.blackdown.de\/2006\/03\/20\/miscellaneous-alsa-dmix-patches\/"},"modified":"2016-10-29T03:51:01","modified_gmt":"2016-10-29T01:51:01","slug":"miscellaneous-alsa-patches","status":"publish","type":"post","link":"https:\/\/blackdown.de\/articles\/miscellaneous-alsa-patches\/","title":{"rendered":"Miscellaneous ALSA Patches"},"content":{"rendered":"

I got a new PowerMac G5 Quad a couple of weeks ago. Nice machine, except for the weak graphics and non-existent sound support on Linux.<\/p>\n

The built-in sound card is completely unsupported at this time. As I did not feel like writing a driver for it, I plugged in an old USB sound device (Creative Sound Blaster Audigy 2 NX). At first this did not work, I just got oopses. But with a small fix<\/a> (included in the kernel since 2.6.15.5) it started to work.<\/p>\n

Next I tried to set up ALSA<\/a>‘s dmix plug-in with S16 which resulted in horrible crackling: The byte swapping code was broken.<\/p>\n

Also, ALSA’s softvol<\/code> plug-in (not strictly necessary but nice to have with GNOME’s volume control applet) didn’t work, it did not support any format available with snd-usb-audio on big-endian machines.<\/p>\n

Here are the fixes for these two problems (against alsa-lib-1.0.11rc3):<\/p>\n