]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm_adsp: Detach compressed stream on free
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 4 May 2016 16:11:56 +0000 (17:11 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 4 May 2016 16:51:31 +0000 (17:51 +0100)
commit642ce53f66140efac6101bad339b7d49a79af493
tree8a51c7afcad1a0ec96afa4b4ffb1414166b7fde2
parent9b9bebd95817f0f66beedf8afe0da8e29840014f
ASoC: wm_adsp: Detach compressed stream on free

If someone powers down the DSP core (through routing changes
say) whilst a compressed record is in progress we can end up
using a freed pointer to the buffer object. When a compressed
audio stream is triggered we attach it to a buffer on a physical
DSP. This patch adds a detach of the buffer from the stream when
the stream is freed or when the DSP is powered down which avoids
the situation where we use a buffer when it is no longer valid.

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