* [PATCH] ASoC: Add regmap as a control type
@ 2011-07-24 21:52 Mark Brown
2011-07-25 9:41 ` Liam Girdwood
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-07-24 21:52 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel, patches, 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 <broonie@opensource.wolfsonmicro.com>
---
include/sound/soc.h | 1 +
sound/soc/soc-io.c | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 4d04b4b..d022694 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -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 {
diff --git a/sound/soc/soc-io.c b/sound/soc/soc-io.c
index b56e1c4..e471ed6 100644
--- a/sound/soc/soc-io.c
+++ b/sound/soc/soc-io.c
@@ -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;
}
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: Add regmap as a control type
2011-07-24 21:52 [PATCH] ASoC: Add regmap as a control type Mark Brown
@ 2011-07-25 9:41 ` Liam Girdwood
0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2011-07-25 9:41 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel, patches
On 24/07/11 22:52, Mark Brown wrote:
> 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-25 9:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-24 21:52 [PATCH] ASoC: Add regmap as a control type Mark Brown
2011-07-25 9:41 ` Liam Girdwood
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.