firmware: cs_dsp: Add locked wrappers for coeff read and write
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 25 Mar 2024 11:31:23 +0000 (11:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2024 15:10:27 +0000 (16:10 +0100)
commit4d0333798ebbfa1683cc3bc056d1b25b8c24344c
tree13e12cd19701428123883f00814844c4689438d8
parentf193957b0fbbba397c8bddedf158b3bf7e4850fc
firmware: cs_dsp: Add locked wrappers for coeff read and write

It is a common pattern for functions to take and release the DSP
pwr_lock over the cs_dsp calls to read and write firmware controls.
Add wrapper functions to do this sequence so that the calling code can
be simplified to a single function call..

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://msgid.link/r/20240325113127.112783-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/cs_dsp.c
include/linux/firmware/cirrus/cs_dsp.h