OSDN Git Service

ASoC: Mark cache as dirty when suspending
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 18 Jul 2011 04:17:13 +0000 (13:17 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Aug 2011 04:58:33 +0000 (21:58 -0700)
commitd2f9cb3ce246d63cec14c0d04735a5bb8e6dff9a
tree3969803db50e2ff2aa9f11cb1c59f1aedf9b294e
parentcad9b0afb809af7e7710dd8d3cf48e79eab5e276
ASoC: Mark cache as dirty when suspending

commit 7be4ba24a3ea53bc8ade841635e4d4a59e98ceb5 upstream.

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>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/soc/soc-core.c