ASoC: Add regmap as a control type
PATCH 1/1 ASoC: Add regmap as a control type
Allow drivers to set up their own regmap API structures. This is mainly useful with MFDs where the core driver will have set up regmap at the minute, though it may make sense to push the existing regmap setup out of the core into the drivers.
Signed-off-by Mark Brown <[email protected]>
--- include/sound/soc.h | 1 + sound/soc/soc-io.c | 4 ++++ 2 files changed, 5 insertions(+), 0 deletions(-)
include/sound/soc.h +1 -0
@@ -261,6 +261,7 @@ extern struct snd_ac97_bus_ops soc_ac97_ops;enum snd_soc_control_type {SND_SOC_I2C =1 ,SND_SOC_SPI , +SND_SOC_REGMAP , };enum snd_soc_compress_type {
sound/soc/soc-io.c +4 -0
@@ -132,6 +132,10 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, &config);break ; +case SND_SOC_REGMAP : +/* Device has made its own regmap arrangements */ +break ; +default :return -EINVAL ; }
Signature · 1 line
1.7.5.4
Quoted 7 lines · Mark Brown
Allow drivers to set up their own regmap API structures. This is mainly useful with MFDs where the core driver will have set up regmap at the minute, though it may make sense to push the existing regmap setup out of the core into the drivers.
Signed-off-by Mark Brown <[email protected]>
Acked-by Liam Girdwood <[email protected]>