diff options
author | 2013-01-16 10:03:56 +0900 | |
---|---|---|
committer | 2013-01-16 10:21:57 +0900 | |
commit | 5e7a7a221fbae313a8635411b557e736ba044c98 (patch) | |
tree | 42b50f9ac62e6320ac4fa8494cabe433a9895c9c | |
parent | ASoC: wm_adsp: Add basic firmware selection support (diff) | |
download | wireguard-linux-5e7a7a221fbae313a8635411b557e736ba044c98.tar.xz wireguard-linux-5e7a7a221fbae313a8635411b557e736ba044c98.zip |
ASoC: wm_adsp: Add initialisation function for ADSP1
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm_adsp.c | 8 | ||||
-rw-r--r-- | sound/soc/codecs/wm_adsp.h | 1 |
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: 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) 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 { 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); |