]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.1/asoc-mark-cache-as-dirty-when-suspending.patch
fixes for 4.19
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / asoc-mark-cache-as-dirty-when-suspending.patch
1 From 7be4ba24a3ea53bc8ade841635e4d4a59e98ceb5 Mon Sep 17 00:00:00 2001
2 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
3 Date: Mon, 18 Jul 2011 13:17:13 +0900
4 Subject: ASoC: Mark cache as dirty when suspending
5
6 From: Mark Brown <broonie@opensource.wolfsonmicro.com>
7
8 commit 7be4ba24a3ea53bc8ade841635e4d4a59e98ceb5 upstream.
9
10 Since quite a few drivers are not managing to flag the cache as needing
11 to be resynced after suspend and it's a reasonable thing to do flag the
12 cache as needing sync automatically when suspending.
13
14 The expectation is that systems will mainly only keep the CODEC powered
15 when doing audio through the CODEC so we won't actually suspend the
16 device anyway; drivers which want to can override this behaviour when
17 they resume.
18
19 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
20 Acked-by: Liam Girdwood <lrg@ti.com>
21 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
22
23 ---
24 sound/soc/soc-core.c | 1 +
25 1 file changed, 1 insertion(+)
26
27 --- a/sound/soc/soc-core.c
28 +++ b/sound/soc/soc-core.c
29 @@ -1124,6 +1124,7 @@ int snd_soc_suspend(struct device *dev)
30 case SND_SOC_BIAS_OFF:
31 codec->driver->suspend(codec, PMSG_SUSPEND);
32 codec->suspended = 1;
33 + codec->cache_sync = 1;
34 break;
35 default:
36 dev_dbg(codec->dev, "CODEC is on over suspend\n");