]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7847244ac763f725e1c4e15971d78903d81c1d84
tree793c474d7cffbf741378f708b7b7f03a64c6367d
parent4547f8672dcc0bebf1c26899e85fd68db5cf2855
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