summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-01 02:31:24 +0300
committerMark Brown <broonie@opensource.wolfsonmicro.com>2008-12-09 13:49:26 +0300
commit9115171a6b79b6b4d5c6697f123556b6efc37f1f (patch)
tree0889dc28a991c27947c5b65f611e2e8f600deb69 /include
parentc5af3a2e192d333997d1e191f3eba7fd2f869681 (diff)
downloadlinux-9115171a6b79b6b4d5c6697f123556b6efc37f1f.tar.xz
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')
-rw-r--r--include/sound/soc-dai.h8
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;
struct snd_soc_dai;
struct snd_ac97_bus_ops;
+/* Digital Audio Interface registration */
+int snd_soc_register_dai(struct snd_soc_dai *dai);
+void snd_soc_unregister_dai(struct snd_soc_dai *dai);
+int snd_soc_register_dais(struct snd_soc_dai *dai, size_t count);
+void snd_soc_unregister_dais(struct snd_soc_dai *dai, size_t count);
+
/* Digital Audio Interface clocking API.*/
int snd_soc_dai_set_sysclk(struct snd_soc_dai *dai, int clk_id,
unsigned int freq, int dir);
@@ -186,6 +192,8 @@ struct snd_soc_dai {
unsigned int id;
int ac97_control;
+ struct device *dev;
+
/* DAI callbacks */
int (*probe)(struct platform_device *pdev,
struct snd_soc_dai *dai);