[alsa-devel] [PATCH 1/2] ASoC: core: Allow DAIs to specify a base address

Mark Brown broonie at opensource.wolfsonmicro.com
Tue May 1 21:04:27 CEST 2012

Devices with many DAIs are becoming more and more common, and generally
the more modern devices have consistent register layouts between DAIs.
Rather than have drivers open code lookups based on the DAI ID or cause
uglification in UI by having register addresses for IDs provide a base
address field they can use.

Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
 include/sound/soc-dai.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h
index c63985b..2704ab0 100644
--- a/include/sound/soc-dai.h
+++ b/include/sound/soc-dai.h
@@ -198,6 +198,7 @@ struct snd_soc_dai_driver {
 	const char *name;
 	unsigned int id;
 	int ac97_control;
+	unsigned int base;
 	/* DAI driver callbacks */
 	int (*probe)(struct snd_soc_dai *dai);

More information about the Alsa-devel mailing list