Commit bd1dd885 authored by Mark Brown's avatar Mark Brown

ASoC: arizona: Provide simple DAI ops for autoconfiguring interfaces

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a64cbb94
...@@ -1198,6 +1198,13 @@ const struct snd_soc_dai_ops arizona_dai_ops = { ...@@ -1198,6 +1198,13 @@ const struct snd_soc_dai_ops arizona_dai_ops = {
}; };
EXPORT_SYMBOL_GPL(arizona_dai_ops); EXPORT_SYMBOL_GPL(arizona_dai_ops);
const struct snd_soc_dai_ops arizona_simple_dai_ops = {
.startup = arizona_startup,
.hw_params = arizona_hw_params_rate,
.set_sysclk = arizona_dai_set_sysclk,
};
EXPORT_SYMBOL_GPL(arizona_simple_dai_ops);
int arizona_init_dai(struct arizona_priv *priv, int id) int arizona_init_dai(struct arizona_priv *priv, int id)
{ {
struct arizona_dai_priv *dai_priv = &priv->dai[id]; struct arizona_dai_priv *dai_priv = &priv->dai[id];
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
#define ARIZONA_CLK_98MHZ 5 #define ARIZONA_CLK_98MHZ 5
#define ARIZONA_CLK_147MHZ 6 #define ARIZONA_CLK_147MHZ 6
#define ARIZONA_MAX_DAI 4 #define ARIZONA_MAX_DAI 6
#define ARIZONA_MAX_ADSP 4 #define ARIZONA_MAX_ADSP 4
struct arizona; struct arizona;
...@@ -213,6 +213,7 @@ extern int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id, ...@@ -213,6 +213,7 @@ extern int arizona_set_sysclk(struct snd_soc_codec *codec, int clk_id,
int source, unsigned int freq, int dir); int source, unsigned int freq, int dir);
extern const struct snd_soc_dai_ops arizona_dai_ops; extern const struct snd_soc_dai_ops arizona_dai_ops;
extern const struct snd_soc_dai_ops arizona_simple_dai_ops;
#define ARIZONA_FLL_NAME_LEN 20 #define ARIZONA_FLL_NAME_LEN 20
......
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