Commit 0671da18 authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
parent be3ea3b9
...@@ -261,6 +261,7 @@ extern struct snd_ac97_bus_ops soc_ac97_ops; ...@@ -261,6 +261,7 @@ extern struct snd_ac97_bus_ops soc_ac97_ops;
enum snd_soc_control_type { enum snd_soc_control_type {
SND_SOC_I2C = 1, SND_SOC_I2C = 1,
SND_SOC_SPI, SND_SOC_SPI,
SND_SOC_REGMAP,
}; };
enum snd_soc_compress_type { enum snd_soc_compress_type {
......
...@@ -132,6 +132,10 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, ...@@ -132,6 +132,10 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec,
&config); &config);
break; break;
case SND_SOC_REGMAP:
/* Device has made its own regmap arrangements */
break;
default: default:
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment