firmware: cs_dsp: Add pre_stop callback
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 22 Jul 2022 09:48:50 +0000 (10:48 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jul 2022 12:39:59 +0000 (13:39 +0100)
commitdea997733575c5793ca77e166bbbf89097987eb4
tree793c474d7cffbf741378f708b7b7f03a64c6367d
parent90023c6ede7583ca2e059a98ce3421225d367002
firmware: cs_dsp: Add pre_stop callback

The code already has a post_stop callback, add a matching pre_stop
callback to the client_ops that is called before execution is stopped.
This callback provides a convenient place for the client code to
communicate with the DSP before it is stopped.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220722094851.92521-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c
include/linux/firmware/cirrus/cs_dsp.h