]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Fix some subtle races on compressed stream
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Mon, 28 Mar 2016 13:29:22 +0000 (14:29 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 29 Mar 2016 17:10:36 +0000 (10:10 -0700)
commit36acd3ec3855787972420a57f9179a4b0a90cd28
treeffcf534f47313d0d8429c90d7fbb8e797f3b237d
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
ASoC: wm_adsp: Fix some subtle races on compressed stream

Firstly, we should be locking the pwr_lock when we initialise the
compressed buffer. Secondly, fixup a couple of places when we should be
pulling pointers only under the pwr_lock as they may be affected by
operations that take that lock.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c