Skip to content

Commit ab1bb1d

Browse files
author
Lucas Tanure
committed
ASoC: wm_adsp: Add a no_preloader flag
Change-Id: I1af50a1ff1e6224289052c715e245da6c1528171 Signed-off-by: Lucas Tanure <[email protected]>
1 parent c019bba commit ab1bb1d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sound/soc/codecs/wm_adsp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,8 +3894,10 @@ int wm_adsp2_codec_probe(struct wm_adsp *dsp, struct snd_soc_codec *codec)
38943894
{
38953895
char preload[32];
38963896

3897-
snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->name);
3898-
snd_soc_component_disable_pin(&codec->component, preload);
3897+
if(!dsp->no_preloader){
3898+
snprintf(preload, ARRAY_SIZE(preload), "%s Preload", dsp->name);
3899+
snd_soc_component_disable_pin(&codec->component, preload);
3900+
}
38993901

39003902
wm_adsp2_init_debugfs(dsp, codec);
39013903

sound/soc/codecs/wm_adsp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ struct wm_adsp {
8484
int fw;
8585
int fw_ver;
8686

87+
bool no_preloader;
8788
bool preloaded;
8889
bool booted;
8990
bool running;

0 commit comments

Comments
 (0)