ASoC: max98088 - fix element type of the register cache.
PATCH RESEND 1/1 ASoC: max98088 - fix element type of the register cache.
From: Chih-Chung Chang <[email protected]>
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.
--- sound/soc/codecs/max98088.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/max98088.c +1 -1
@@ -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) { -u16 *reg_cache = codec->reg_cache; +u8 *reg_cache = codec->reg_cache;int i;if (!codec->cache_sync)
Signature · 1 line
1.8.1.3.605.g02339dd
Quoted 5 lines · Dylan Reid
From: Chih-Chung Chang <[email protected]>
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.
Applied, thanks, though really this driver ought to be being converted to regmap.
Evan Ragsdale
Applied+ Ralph Birt.
Best Regards,
Evan Ragsdale
Strategic Applications, Audio Solutions
160 Rio Robles | San Jose, CA 95134 | USA
Office: +1 (408) 601-5510
Maxim Integrated | www.maximintegrated.com
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Monday, July 15, 2013 10:22 AM
To: Dylan Reid
Cc: [email protected]; [email protected]; Evan Ragsdale; Chih-Chung Chang
Subject: Re: [PATCH RESEND] ASoC: max98088 - fix element type of the register cache.
Quoted 5 lines · Dylan Reid
From: Chih-Chung Chang <[email protected]>
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.
Applied, thanks, though really this driver ought to be being converted to regmap.