diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-17 08:29:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-20 12:27:58 -0400 |
commit | bd1dd8856998408dd72768930958ea2dc84296a9 (patch) | |
tree | e2911e85aae2a15c6036c466f35530de7dcf10ca | |
parent | a64cbb949a18a8eefc40881e6e68734ca7275d36 (diff) |
ASoC: arizona: Provide simple DAI ops for autoconfiguring interfaces
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/arizona.c | 7 | ||||
-rw-r--r-- | sound/soc/codecs/arizona.h | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 389f23253831..de625813c0e6 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c | |||
@@ -1198,6 +1198,13 @@ const struct snd_soc_dai_ops arizona_dai_ops = { | |||
1198 | }; | 1198 | }; |
1199 | EXPORT_SYMBOL_GPL(arizona_dai_ops); | 1199 | EXPORT_SYMBOL_GPL(arizona_dai_ops); |
1200 | 1200 | ||
1201 | const struct snd_soc_dai_ops arizona_simple_dai_ops = { | ||
1202 | .startup = arizona_startup, | ||
1203 | .hw_params = arizona_hw_params_rate, | ||
1204 | .set_sysclk = arizona_dai_set_sysclk, | ||
1205 | }; | ||
1206 | EXPORT_SYMBOL_GPL(arizona_simple_dai_ops); | ||
1207 | |||
1201 | int arizona_init_dai(struct arizona_priv *priv, int id) | 1208 | int arizona_init_dai(struct arizona_priv *priv, int id) |
1202 | { | 1209 | { |
1203 | struct arizona_dai_priv *dai_priv = &priv->dai[id]; | 1210 | struct arizona_dai_priv *dai_priv = &priv->dai[id]; |
diff --git a/sound/soc/codecs/arizona.h b/sound/soc/codecs/arizona.h index af39f1006427..b60b08ccc1d0 100644 --- a/sound/soc/codecs/arizona.h +++ b/sound/soc/codecs/arizona.h | |||
@@ -57,7 +57,7 @@ | |||
57 | #define ARIZONA_CLK_98MHZ 5 | 57 | #define ARIZONA_CLK_98MHZ 5 |
58 | #define ARIZONA_CLK_147MHZ 6 | 58 | #define ARIZONA_CLK_147MHZ 6 |
59 | 59 | ||
60 | #define ARIZONA_MAX_DAI 4 | 60 | #define ARIZONA_MAX_DAI 6 |
61 | #define ARIZONA_MAX_ADSP 4 | 61 | #define ARIZONA_MAX_ADSP 4 |
62 | 62 | ||
63 | struct arizona; | 63 | struct arizona; |
@@ -213,6 +213,7 @@ extern int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id, | |||
213 | int source, unsigned int freq, int dir); | 213 | int source, unsigned int freq, int dir); |
214 | 214 | ||
215 | extern const struct snd_soc_dai_ops arizona_dai_ops; | 215 | extern const struct snd_soc_dai_ops arizona_dai_ops; |
216 | extern const struct snd_soc_dai_ops arizona_simple_dai_ops; | ||
216 | 217 | ||
217 | #define ARIZONA_FLL_NAME_LEN 20 | 218 | #define ARIZONA_FLL_NAME_LEN 20 |
218 | 219 | ||