1 From cb6f66a2d278e57a6c9d8fb59bd9ebd8ab3965c2 Mon Sep 17 00:00:00 2001
2 From: Chih-Chung Chang <chihchung@chromium.org>
3 Date: Mon, 15 Jul 2013 09:38:46 -0700
4 Subject: ASoC: max98088 - fix element type of the register cache.
6 From: Chih-Chung Chang <chihchung@chromium.org>
8 commit cb6f66a2d278e57a6c9d8fb59bd9ebd8ab3965c2 upstream.
10 The registers of max98088 are 8 bits, not 16 bits. This bug causes the
11 contents of registers to be overwritten with bad values when the codec
12 is suspended and then resumed.
14 Signed-off-by: Chih-Chung Chang <chihchung@chromium.org>
15 Signed-off-by: Dylan Reid <dgreid@chromium.org>
16 Signed-off-by: Mark Brown <broonie@linaro.org>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20 sound/soc/codecs/max98088.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
23 --- a/sound/soc/codecs/max98088.c
24 +++ b/sound/soc/codecs/max98088.c
25 @@ -1594,7 +1594,7 @@ static int max98088_dai2_digital_mute(st
27 static void max98088_sync_cache(struct snd_soc_codec *codec)
29 - u16 *reg_cache = codec->reg_cache;
30 + u8 *reg_cache = codec->reg_cache;
33 if (!codec->cache_sync)