aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/codecs/wm_adsp.c8
-rw-r--r--sound/soc/codecs/wm_adsp.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 1f8e8e2a1a6a..58cac071456b 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -780,6 +780,14 @@ out:
780 return 0; 780 return 0;
781} 781}
782 782
783int wm_adsp1_init(struct wm_adsp *adsp)
784{
785 INIT_LIST_HEAD(&adsp->alg_regions);
786
787 return 0;
788}
789EXPORT_SYMBOL_GPL(wm_adsp1_init);
790
783int wm_adsp1_event(struct snd_soc_dapm_widget *w, 791int wm_adsp1_event(struct snd_soc_dapm_widget *w,
784 struct snd_kcontrol *kcontrol, 792 struct snd_kcontrol *kcontrol,
785 int event) 793 int event)
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 5e71410f8b05..41206d79e038 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -64,6 +64,7 @@ struct wm_adsp {
64 64
65extern const struct snd_kcontrol_new wm_adsp_fw_controls[]; 65extern const struct snd_kcontrol_new wm_adsp_fw_controls[];
66 66
67int wm_adsp1_init(struct wm_adsp *adsp);
67int wm_adsp2_init(struct wm_adsp *adsp, bool dvfs); 68int wm_adsp2_init(struct wm_adsp *adsp, bool dvfs);
68int wm_adsp1_event(struct snd_soc_dapm_widget *w, 69int wm_adsp1_event(struct snd_soc_dapm_widget *w,
69 struct snd_kcontrol *kcontrol, int event); 70 struct snd_kcontrol *kcontrol, int event);