diff options
author | Simon Trimmer <simont@opensource.cirrus.com> | 2023-03-20 12:22:39 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-21 13:13:18 +0100 |
commit | 0cd1fd571719e19bd6824a98855382a70e47d932 (patch) | |
tree | 7e5b07cebba226cff51638d149ea124abcd7d427 /sound/soc/codecs/wm_adsp.c | |
parent | firmware: cs_dsp: Introduce no_core_startstop for self-booting DSPs (diff) | |
download | linux-0cd1fd571719e19bd6824a98855382a70e47d932.tar.xz linux-0cd1fd571719e19bd6824a98855382a70e47d932.zip |
ASoC: wm_adsp: Use no_core_startstop to prevent creating preload control
The no_core_startstop flag indicates a self-booting DSP - they are
considered to be always running and therefore cannot be pre-loaded.
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230320112245.115720-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.c')
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index ea0dbc634ecf..854d9366a745 100644 --- a/sound/soc/codecs/wm_adsp.c +++ b/sound/soc/codecs/wm_adsp.c @@ -1102,8 +1102,10 @@ int wm_adsp2_component_probe(struct wm_adsp *dsp, struct snd_soc_component *comp { char preload[32]; - snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); - snd_soc_component_disable_pin(component, preload); + if (!dsp->cs_dsp.no_core_startstop) { + snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->cs_dsp.name); + snd_soc_component_disable_pin(component, preload); + } cs_dsp_init_debugfs(&dsp->cs_dsp, component->debugfs_root); |