Commit 2ce4616e authored by Mark Brown's avatar Mark Brown

Merge remote-tracking branch 'asoc/topic/adsp' into asoc-wm2200

parents 9931faca 5e7a7a22
This diff is collapsed.
...@@ -25,6 +25,13 @@ struct wm_adsp_region { ...@@ -25,6 +25,13 @@ struct wm_adsp_region {
unsigned int base; unsigned int base;
}; };
struct wm_adsp_alg_region {
struct list_head list;
unsigned int alg;
int type;
unsigned int base;
};
struct wm_adsp { struct wm_adsp {
const char *part; const char *part;
int num; int num;
...@@ -34,9 +41,14 @@ struct wm_adsp { ...@@ -34,9 +41,14 @@ struct wm_adsp {
int base; int base;
struct list_head alg_regions;
const struct wm_adsp_region *mem; const struct wm_adsp_region *mem;
int num_mems; int num_mems;
int fw;
bool running;
struct regulator *dvfs; struct regulator *dvfs;
}; };
...@@ -50,6 +62,9 @@ struct wm_adsp { ...@@ -50,6 +62,9 @@ struct wm_adsp {
.shift = num, .event = wm_adsp2_event, \ .shift = num, .event = wm_adsp2_event, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD } .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
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_adsp2_init(struct wm_adsp *adsp, bool dvfs);
int wm_adsp1_event(struct snd_soc_dapm_widget *w, int wm_adsp1_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event); struct snd_kcontrol *kcontrol, int event);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment