Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62368294 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: core: Allow DAIs to specify a base address



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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent 94aa733a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -198,6 +198,7 @@ struct snd_soc_dai_driver {
	const char *name;
	const char *name;
	unsigned int id;
	unsigned int id;
	int ac97_control;
	int ac97_control;
	unsigned int base;


	/* DAI driver callbacks */
	/* DAI driver callbacks */
	int (*probe)(struct snd_soc_dai *dai);
	int (*probe)(struct snd_soc_dai *dai);