* [PATCH] ASoC: core: Mark regmap CODEC register maps as dirty when suspending
@ 2012-09-12 4:23 Mark Brown
2012-09-12 16:36 ` Liam Girdwood
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2012-09-12 4:23 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel, Mark Brown
The core has for a long time had support for marking the register maps of
devices dirty when suspending so that they are resynced on resume. Also
implement this feature for CODECs using regmap.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
sound/soc/soc-core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 0c7e477..b94ce32 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -635,6 +635,8 @@ int snd_soc_suspend(struct device *dev)
codec->driver->suspend(codec);
codec->suspended = 1;
codec->cache_sync = 1;
+ if (codec->using_regmap)
+ regcache_mark_dirty(codec->control_data);
break;
default:
dev_dbg(codec->dev, "CODEC is on over suspend\n");
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: core: Mark regmap CODEC register maps as dirty when suspending
2012-09-12 4:23 [PATCH] ASoC: core: Mark regmap CODEC register maps as dirty when suspending Mark Brown
@ 2012-09-12 16:36 ` Liam Girdwood
0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2012-09-12 16:36 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel
On Wed, 2012-09-12 at 12:23 +0800, Mark Brown wrote:
> The core has for a long time had support for marking the register maps of
> devices dirty when suspending so that they are resynced on resume. Also
> implement this feature for CODECs using regmap.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> sound/soc/soc-core.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index 0c7e477..b94ce32 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -635,6 +635,8 @@ int snd_soc_suspend(struct device *dev)
> codec->driver->suspend(codec);
> codec->suspended = 1;
> codec->cache_sync = 1;
> + if (codec->using_regmap)
> + regcache_mark_dirty(codec->control_data);
> break;
> default:
> dev_dbg(codec->dev, "CODEC is on over suspend\n");
Acked-by: Liam Girdwood <lrg@ti.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-12 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 4:23 [PATCH] ASoC: core: Mark regmap CODEC register maps as dirty when suspending Mark Brown
2012-09-12 16:36 ` Liam Girdwood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).