Skip to contentSkip to conversation

ASoC: ak4535: fixup cache register table

PATCH Applied Axel Lin 2 participants 2 messages Oct 13, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: ak4535: fixup cache register table

ak4535_reg should be 8bit, but cache table is defined as 16bit.

---
 sound/soc/codecs/ak4535.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
sound/soc/codecs/ak4535.c +5 -5
index 68df32d..95d782d 100644
@@ -39,11 +39,11 @@ struct ak4535_priv {
 /*
  * ak4535 register cache
  */
-static const u16 ak4535_reg[AK4535_CACHEREGNUM] = {
-    0x0000, 0x0080, 0x0000, 0x0003,
-    0x0002, 0x0000, 0x0011, 0x0001,
-    0x0000, 0x0040, 0x0036, 0x0010,
-    0x0000, 0x0000, 0x0057, 0x0000,
+static const u8 ak4535_reg[AK4535_CACHEREGNUM] = {
+	0x00, 0x80, 0x00, 0x03,
+	0x02, 0x00, 0x11, 0x01,
+	0x00, 0x40, 0x36, 0x10,
+	0x00, 0x00, 0x57, 0x00,
 };
 
 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
Signature · 1 line
1.7.4.1
Applied
#1 lore raw
Quoted 1 line · Axel Lin

ak4535_reg should be 8bit, but cache table is defined as 16bit.

Applied, thanks.