]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7b671621d605c09472074cbaaabb0ea8a6421b55
treeb8358b38b7a3eba0da92bbce316d2bcb01e84900
parent5be505a7101e4078dfd1e03375b7b499e2f6272d
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