ASoC: wm_adsp: Add basic firmware selection support
[deliverable/linux.git] / sound / soc / codecs / wm_adsp.h
index ffd29a4609e2a50b1214fc5389a73906973d9538..5e71410f8b0519d80647e18f6029d55f79f5d4dd 100644 (file)
@@ -25,6 +25,13 @@ struct wm_adsp_region {
        unsigned int base;
 };
 
+struct wm_adsp_alg_region {
+       struct list_head list;
+       unsigned int alg;
+       int type;
+       unsigned int base;
+};
+
 struct wm_adsp {
        const char *part;
        int num;
@@ -34,9 +41,14 @@ struct wm_adsp {
 
        int base;
 
+       struct list_head alg_regions;
+
        const struct wm_adsp_region *mem;
        int num_mems;
 
+       int fw;
+       bool running;
+
        struct regulator *dvfs;
 };
 
@@ -50,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);
This page took 0.038712 seconds and 5 git commands to generate.