summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-11 22:58:28 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-12 18:36:07 +0000
commit1023dbd90c1e3e87921198939917c1f50b4b6af7 (patch)
tree12d090ba617480996cd2eb997aeefb7a454804c1 /sound/soc/codecs/wm_adsp.h
parent471f488583c62e4daca7d24fc7c937a39de7d95f (diff)
downloadlinux-1023dbd90c1e3e87921198939917c1f50b4b6af7.tar.bz2
ASoC: wm_adsp: Add basic firmware selection support
There are many firmwares available for ADSP devices. Add basic support for selecting between them, including a couple of feature sets in the set of available firmware to start off with. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_adsp.h')
-rw-r--r--sound/soc/codecs/wm_adsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 48814198e24e..5e71410f8b05 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -46,6 +46,9 @@ struct wm_adsp {
const struct wm_adsp_region *mem;
int num_mems;
+ int fw;
+ bool running;
+
struct regulator *dvfs;
};
@@ -59,6 +62,8 @@ struct wm_adsp {
.shift = num, .event = wm_adsp2_event, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
+extern const struct snd_kcontrol_new wm_adsp_fw_controls[];
+
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);