From: Hans-Christian Egtvedt Date: Mon, 17 Dec 2007 16:30:06 +0000 (+0100) Subject: [ALSA] at73c213: replace spinlock in mixer functions with a mutex X-Git-Tag: v2.6.25-rc1~1127^2~179 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f488d9fcc84692ca0060b4e16c1c61a8d514cea8;p=pandora-kernel.git [ALSA] at73c213: replace spinlock in mixer functions with a mutex This patch fixes the locking bug in the at73c213 SPI sound driver. This bug was triggered because spinlocks were wrapped around the spi_sync call which might sleep. The fix was to add a mutex to the sound driver and replace the spinlocks in the mixer functions with mutex lock/unlock. Tested on STK1000/STK1002. Signed-off-by: Hans-Christian Egtvedt Signed-off-by: Takashi Iwai Signed-off-by: Jaroslav Kysela --- Reading git-diff-tree failed