aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-07-29 06:42:28 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-29 15:32:20 -0400
commit84bc278b1f04920e867e4b46e094bcc066393d41 (patch)
tree3c4dfdabeee65ebe0b781f14b7df3d82c0444eaf /include/sound
parentf8ba0b7bfd06a2a5b3c49ff8d71cad31f57b0d51 (diff)
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')
-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 @@
1/*
2 * OF helpers for ALSA SoC
3 *
4 * Copyright (C) 2008, Secret Lab Technologies Ltd.
5 */
6
7#ifndef _INCLUDE_SOC_OF_H_
8#define _INCLUDE_SOC_OF_H_
9
10#include <linux/of.h>
11#include <sound/soc.h>
12
13int of_snd_soc_register_codec(struct snd_soc_codec_device *codec_dev,
14 void *codec_data, struct snd_soc_dai *dai,
15 struct device_node *node);
16
17int of_snd_soc_register_platform(struct snd_soc_platform *platform,
18 struct device_node *node,
19 struct snd_soc_dai *cpu_dai);
20
21#endif /* _INCLUDE_SOC_OF_H_ */