]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] at73c213: replace spinlock in mixer functions with a mutex
authorHans-Christian Egtvedt <hcegtvedt@atmel.com>
Mon, 17 Dec 2007 16:30:06 +0000 (17:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 31 Jan 2008 16:29:39 +0000 (17:29 +0100)
commitd7c104891ff19f2be677d68d2c7f567e1ead7351
tree701cfaeb3f883a6cc7cfc65356c03d7221e55237
parentda82b0524f577db8b5a2f2ab37e00b08dd2a8df3
[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 <hcegtvedt@atmel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/spi/at73c213.c