ASoC: wm_adsp: Add initialisation function for ADSP1
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 16 Jan 2013 01:03:56 +0000 (10:03 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 16 Jan 2013 01:21:57 +0000 (10:21 +0900)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h

index 1f8e8e2a1a6a518305299ef8617350b5dedd0e32..58cac071456b52c55cfeea8ae5e2b8f702274ca7 100644 (file)
@@ -780,6 +780,14 @@ out:
        return 0;
 }
 
+int wm_adsp1_init(struct wm_adsp *adsp)
+{
+       INIT_LIST_HEAD(&adsp->alg_regions);
+
+       return 0;
+}
+EXPORT_SYMBOL_GPL(wm_adsp1_init);
+
 int wm_adsp1_event(struct snd_soc_dapm_widget *w,
                   struct snd_kcontrol *kcontrol,
                   int event)
index 5e71410f8b0519d80647e18f6029d55f79f5d4dd..41206d79e038c5c65441704794fab8665a98cff4 100644 (file)
@@ -64,6 +64,7 @@ struct wm_adsp {
 
 extern const struct snd_kcontrol_new wm_adsp_fw_controls[];
 
+int wm_adsp1_init(struct wm_adsp *adsp);
 int wm_adsp2_init(struct wm_adsp *adsp, bool dvfs);
 int wm_adsp1_event(struct snd_soc_dapm_widget *w,
                   struct snd_kcontrol *kcontrol, int event);