summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-of-simple.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-07-29 11:42:28 +0100
committerJaroslav Kysela <perex@perex.cz>2008-07-29 21:32:20 +0200
commit84bc278b1f04920e867e4b46e094bcc066393d41 (patch)
tree3c4dfdabeee65ebe0b781f14b7df3d82c0444eaf /include/sound/soc-of-simple.h
parentf8ba0b7bfd06a2a5b3c49ff8d71cad31f57b0d51 (diff)
downloadlinux-84bc278b1f04920e867e4b46e094bcc066393d41.tar.bz2
ALSA: ASoC: Add OpenFirmware helper for matching bus and codec drivers
Simple utility layer for creating ASoC machine instances based on data in the OpenFirmware device tree. OF aware platform drivers and codec drivers register themselves with this framework and the framework automatically instantiates a machine driver. At the moment, the driver is not very capable and it is expected to be extended as more features are needed for specifying the configuration in the device tree. This is most likely temporary glue code to work around limitations in the ASoC v1 framework. When v2 is merged, most of this driver will need to be reworked. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'include/sound/soc-of-simple.h')
-rw-r--r--include/sound/soc-of-simple.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/sound/soc-of-simple.h b/include/sound/soc-of-simple.h
new file mode 100644
index 000000000000..696fc513e234
--- /dev/null
+++ b/include/sound/soc-of-simple.h
@@ -0,0 +1,21 @@
+/*
+ * OF helpers for ALSA SoC
+ *
+ * Copyright (C) 2008, Secret Lab Technologies Ltd.
+ */
+
+#ifndef _INCLUDE_SOC_OF_H_
+#define _INCLUDE_SOC_OF_H_
+
+#include <linux/of.h>
+#include <sound/soc.h>
+
+int of_snd_soc_register_codec(struct snd_soc_codec_device *codec_dev,
+ void *codec_data, struct snd_soc_dai *dai,
+ struct device_node *node);
+
+int of_snd_soc_register_platform(struct snd_soc_platform *platform,
+ struct device_node *node,
+ struct snd_soc_dai *cpu_dai);
+
+#endif /* _INCLUDE_SOC_OF_H_ */