mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 18:13:04 +00:00
84bc278b1f
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>
22 lines
517 B
C
22 lines
517 B
C
/*
|
|
* 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_ */
|