Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb6f66a2 authored by Chih-Chung Chang's avatar Chih-Chung Chang Committed by Mark Brown
Browse files

ASoC: max98088 - fix element type of the register cache.



The registers of max98088 are 8 bits, not 16 bits. This bug causes the
contents of registers to be overwritten with bad values when the codec
is suspended and then resumed.

Signed-off-by: default avatarChih-Chung Chang <chihchung@chromium.org>
Signed-off-by: default avatarDylan Reid <dgreid@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
parent ad81f054
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1612,7 +1612,7 @@ static int max98088_dai2_digital_mute(struct snd_soc_dai *codec_dai, int mute)


static void max98088_sync_cache(struct snd_soc_codec *codec)
static void max98088_sync_cache(struct snd_soc_codec *codec)
{
{
       u16 *reg_cache = codec->reg_cache;
       u8 *reg_cache = codec->reg_cache;
       int i;
       int i;


       if (!codec->cache_sync)
       if (!codec->cache_sync)