]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[ALSA] maestro3.c: fix BUG, optimization
authorAndreas Mohr <andi@lisas.de>
Tue, 28 Mar 2006 10:56:14 +0000 (12:56 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 31 Mar 2006 15:59:00 +0000 (17:59 +0200)
commit0b2dcd5d6a9a3e27fdd67053e526388f9f2ea33b
treed380fb45aa120b2499aa03753717f3ecbf0ad099
parenta1e8d2da03b3a1017aab01d49666ec9b67927de5
[ALSA] maestro3.c: fix BUG, optimization

- fix brown-paper-bag locking bug (lock() / return / unlock())
- improve central function snd_m3_update_ptr()
  (avoid expensive integer divisions)
- add cpu_relax() to busy-wait I/O loop as recommended
  (does this require special macro support in ALSA for older kernels??)
- constify several structs
- spelling updates

Signed-off-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/maestro3.c