linux/sound/i2c
Takashi Iwai 2451dcefc2 ALSA: ak411x: Fix stall in work callback
commit 4161b4505f upstream.

When ak4114 work calls its callback and the callback invokes
ak4114_reinit(), it stalls due to flush_delayed_work().  For avoiding
this, control the reentrance by introducing a refcount.  Also
flush_delayed_work() is replaced with cancel_delayed_work_sync().

The exactly same bug is present in ak4113.c and fixed as well.

Reported-by: Pavel Hofman <pavel.hofman@ivitera.com>
Acked-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-02-11 14:54:49 +08:00
..
other ALSA: ak411x: Fix stall in work callback 2015-02-11 14:54:49 +08:00
Makefile ALSA: drop outdated and broken sa11xx-uda1341 driver 2009-03-17 17:58:13 +01:00
cs8427.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
i2c.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
tea6330t.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00