summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm_adsp.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 21:20:32 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-28 21:36:23 +0400
commit973838a030d2a91fbd524c95281991510ed0a865 (patch)
treeadc37d441edd6f7cf9d565a17bb51e9a4936966a /sound/soc/codecs/wm_adsp.h
parent2159ad936b7e7a8b26c99cf5b4476cfbb8c13e22 (diff)
downloadlinux-973838a030d2a91fbd524c95281991510ed0a865.tar.xz
ASoC: wm_adsp: Enable DVFS for ADSP2
Some ADSP devices can make use of DVFS to optimise power consumption depending on the operating frequency of the DSP core. Implement support for this in the generic ADSP code. 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 b303b1f29c49..ffd29a4609e2 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -18,6 +18,8 @@
#include "wmfw.h"
+struct regulator;
+
struct wm_adsp_region {
int type;
unsigned int base;
@@ -34,6 +36,8 @@ struct wm_adsp {
const struct wm_adsp_region *mem;
int num_mems;
+
+ struct regulator *dvfs;
};
#define WM_ADSP1(wname, num) \
@@ -46,6 +50,7 @@ struct wm_adsp {
.shift = num, .event = wm_adsp2_event, \
.event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD }
+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);
int wm_adsp2_event(struct snd_soc_dapm_widget *w,