diff options
author | Richard Fitzgerald <rf@opensource.cirrus.com> | 2022-11-09 17:53:29 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-11-23 12:10:42 +0100 |
commit | fe07130870c8540bc0cddbaa8d4521ecdba6b560 (patch) | |
tree | a59159e03a3629674ad9704741308b7afda25364 /sound/soc/codecs/wm_adsp.h | |
parent | ASoC: Intel: avs: Add missing audio amplifier for KBL (diff) | |
download | linux-fe07130870c8540bc0cddbaa8d4521ecdba6b560.tar.xz linux-fe07130870c8540bc0cddbaa8d4521ecdba6b560.zip |
ASoC: wm_adsp: Allow client to hook into pre_run callback
Some HALO-based codecs need some additional custom setup in the
pre_run stage of cs_dsp. Implement the callback in wm_adsp to call
an optional codec driver callback.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221109165331.29332-11-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r-- | sound/soc/codecs/wm_adsp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h index 375009a65828..dc2f7a096e26 100644 --- a/sound/soc/codecs/wm_adsp.h +++ b/sound/soc/codecs/wm_adsp.h @@ -36,6 +36,7 @@ struct wm_adsp { int fw; struct work_struct boot_work; + int (*pre_run)(struct wm_adsp *dsp); bool preloaded; bool fatal_error; |