From: Simon Trimmer Date: Mon, 20 Mar 2023 11:22:39 +0000 (+0000) Subject: ASoC: wm_adsp: Use no_core_startstop to prevent creating preload control X-Git-Tag: v6.6.7~2882^2~8^2~109^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cd1fd571719e19bd6824a98855382a70e47d932;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Richard Fitzgerald Link: https://lore.kernel.org/r/20230320112245.115720-3-rf@opensource.cirrus.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c index ea0dbc6..854d936 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);