OSDN Git Service

ASoC: wm_adsp: Support streams which can start/stop with DSP active
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 26 Feb 2018 10:49:47 +0000 (10:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2018 10:53:41 +0000 (10:53 +0000)
commit61fc060c40e6b92350c08a210619fc7d93c61e42
treee7b28daad22f1ce9298622c95f6325fa97e45a59
parente21a5acfab2f13eeffe50d5d5f87c099540a3bf3
ASoC: wm_adsp: Support streams which can start/stop with DSP active

Clear the buffer data structure on each trigger start such that the
buffer is in a sensible state even if the DSP itself didn't restart.
This is necessary to support voice control streams which can trigger
multiple times without reloading the firmware.

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