[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)
- 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>

No differences found