diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-11-30 18:31:24 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2008-12-09 05:49:26 -0500 |
commit | 9115171a6b79b6b4d5c6697f123556b6efc37f1f (patch) | |
tree | 0889dc28a991c27947c5b65f611e2e8f600deb69 /include/sound | |
parent | c5af3a2e192d333997d1e191f3eba7fd2f869681 (diff) |
ASoC: Add DAI registration API
Add API calls to register and unregister DAIs with the core. Currently
these APIs are ineffective. Since multiple DAIs for a given device are
a common case bulk variants are provided.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dai.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index e2d5f76838c6..24247f763608 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h | |||
@@ -100,6 +100,12 @@ struct snd_soc_dai_ops; | |||
100 | struct snd_soc_dai; | 100 | struct snd_soc_dai; |
101 | struct snd_ac97_bus_ops; | 101 | struct snd_ac97_bus_ops; |
102 | 102 | ||
103 | /* Digital Audio Interface registration */ | ||
104 | int snd_soc_register_dai(struct snd_soc_dai *dai); | ||
105 | void snd_soc_unregister_dai(struct snd_soc_dai *dai); | ||
106 | int snd_soc_register_dais(struct snd_soc_dai *dai, size_t count); | ||
107 | void snd_soc_unregister_dais(struct snd_soc_dai *dai, size_t count); | ||
108 | |||
103 | /* Digital Audio Interface clocking API.*/ | 109 | /* Digital Audio Interface clocking API.*/ |
104 | int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, | 110 | int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id, |
105 | unsigned int freq, int dir); | 111 | unsigned int freq, int dir); |
@@ -186,6 +192,8 @@ struct snd_soc_dai { | |||
186 | unsigned int id; | 192 | unsigned int id; |
187 | int ac97_control; | 193 | int ac97_control; |
188 | 194 | ||
195 | struct device *dev; | ||
196 | |||
189 | /* DAI callbacks */ | 197 | /* DAI callbacks */ |
190 | int (*probe)(struct platform_device *pdev, | 198 | int (*probe)(struct platform_device *pdev, |
191 | struct snd_soc_dai *dai); | 199 | struct snd_soc_dai *dai); |