]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ASoC: Add regmap as a control type
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 24 Jul 2011 11:23:37 +0000 (12:23 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 8 Aug 2011 05:59:55 +0000 (14:59 +0900)
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 <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/soc.h
sound/soc/soc-io.c

index 4d04b4b86aa1c73b78c076c304758d7b02d3c7a4..d02269437de3f7aaaef45978bf5936a969303dba 100644 (file)
@@ -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 {
index b56e1c4bb9e6f9a6ca1510c53fde6fbb23a954a7..e471ed667fe9fec4f6c30c861439ebbbc5351871 100644 (file)
@@ -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;
        }