ALSA: ak411x: Fix race of reinit() calls
authorTakashi Iwai <tiwai@suse.de>
Fri, 16 Jan 2015 12:03:28 +0000 (13:03 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Jan 2015 21:30:18 +0000 (22:30 +0100)
commit1781e78c63317c04e6ae6a076acfd53236f420bc
treeb8358b38b7a3eba0da92bbce316d2bcb01e84900
parent1293617cddc40971917150e3f5bf66b7306e2e7e
ALSA: ak411x: Fix race of reinit() calls

Protect the call with a mutex, as this may be called in parallel
(either from the PCM rate change and the clock change).

Acked-by: Jaroslav Kysela <perex@perex.cz>
Tested-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/ak4113.h
include/sound/ak4114.h
sound/i2c/other/ak4113.c
sound/i2c/other/ak4114.c