* [PATCH] ASoC: Mark cache as dirty when suspending
@ 2011-07-18 4:25 Mark Brown
2011-07-18 12:39 ` Liam Girdwood
0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-07-18 4:25 UTC (permalink / raw)
To: Liam Girdwood; +Cc: alsa-devel, patches, Mark Brown
Since quite a few drivers are not managing to flag the cache as needing
to be resynced after suspend and it's a reasonable thing to do flag the
cache as needing sync automatically when suspending.
The expectation is that systems will mainly only keep the CODEC powered
when doing audio through the CODEC so we won't actually suspend the
device anyway; drivers which want to can override this behaviour when
they resume.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
sound/soc/soc-core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index e44267f..93109a4 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -577,6 +577,7 @@ int snd_soc_suspend(struct device *dev)
case SND_SOC_BIAS_OFF:
codec->driver->suspend(codec, PMSG_SUSPEND);
codec->suspended = 1;
+ codec->cache_sync = 1;
break;
default:
dev_dbg(codec->dev, "CODEC is on over suspend\n");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: Mark cache as dirty when suspending
2011-07-18 4:25 [PATCH] ASoC: Mark cache as dirty when suspending Mark Brown
@ 2011-07-18 12:39 ` Liam Girdwood
0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2011-07-18 12:39 UTC (permalink / raw)
To: Mark Brown
Cc: alsa-devel@alsa-project.org, patches@opensource.wolfsonmicro.com
On 18/07/11 05:25, Mark Brown wrote:
> Since quite a few drivers are not managing to flag the cache as needing
> to be resynced after suspend and it's a reasonable thing to do flag the
> cache as needing sync automatically when suspending.
>
> The expectation is that systems will mainly only keep the CODEC powered
> when doing audio through the CODEC so we won't actually suspend the
> device anyway; drivers which want to can override this behaviour when
> they resume.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> sound/soc/soc-core.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
> index e44267f..93109a4 100644
> --- a/sound/soc/soc-core.c
> +++ b/sound/soc/soc-core.c
> @@ -577,6 +577,7 @@ int snd_soc_suspend(struct device *dev)
> case SND_SOC_BIAS_OFF:
> codec->driver->suspend(codec, PMSG_SUSPEND);
> codec->suspended = 1;
> + codec->cache_sync = 1;
> 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:[~2011-07-18 12:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-18 4:25 [PATCH] ASoC: Mark cache as dirty when suspending Mark Brown
2011-07-18 12:39 ` 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.