aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/arizona.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-04 12:32:05 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-04 14:15:45 -0400
commit5b2eec3f98e08a8442ada41c4a63658b95a355f2 (patch)
tree50ab53b1ab5496a232c753095cee31d51dc4465a /sound/soc/codecs/arizona.h
parent949e6bc75fea779b433679601641ea641456283b (diff)
ASoC: arizona: Implement AIF clock configuration
Allow the user to select which of the system clocks each AIF is referenced to and constran the DAI to the set of frequencies which can be generated from that clock. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/arizona.h')
-rw-r--r--sound/soc/codecs/arizona.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.h b/sound/soc/codecs/arizona.h
index 8c2ca1d9dbae..896711e19baa 100644
--- a/sound/soc/codecs/arizona.h
+++ b/sound/soc/codecs/arizona.h
@@ -44,12 +44,19 @@
44#define ARIZONA_MIXER_VOL_SHIFT 1 44#define ARIZONA_MIXER_VOL_SHIFT 1
45#define ARIZONA_MIXER_VOL_WIDTH 7 45#define ARIZONA_MIXER_VOL_WIDTH 7
46 46
47#define ARIZONA_MAX_DAI 3
48
47struct arizona; 49struct arizona;
48 50
51struct arizona_dai_priv {
52 int clk;
53};
54
49struct arizona_priv { 55struct arizona_priv {
50 struct arizona *arizona; 56 struct arizona *arizona;
51 int sysclk; 57 int sysclk;
52 int asyncclk; 58 int asyncclk;
59 struct arizona_dai_priv dai[ARIZONA_MAX_DAI];
53}; 60};
54 61
55#define ARIZONA_NUM_MIXER_INPUTS 55 62#define ARIZONA_NUM_MIXER_INPUTS 55
@@ -146,4 +153,6 @@ extern int arizona_init_fll(struct arizona *arizona, int id, int base,
146extern int arizona_set_fll(struct arizona_fll *fll, int source, 153extern int arizona_set_fll(struct arizona_fll *fll, int source,
147 unsigned int Fref, unsigned int Fout); 154 unsigned int Fref, unsigned int Fout);
148 155
156extern int arizona_init_dai(struct arizona_priv *priv, int dai);
157
149#endif 158#endif