From d8deba69670a9d004f23a7e360b769aeab0e1f64 Mon Sep 17 00:00:00 2001 From: ivan.nie Date: Mon, 07 May 2018 05:55:48 +0000 Subject: codec: cs42528 codec volume output default to 0dB PD#NONE Change-Id: Ic8e202d27e2c913a2d21cabeb5d44fe9b8149f71 --- diff --git a/sound/soc/codecs/amlogic/cs42528.c b/sound/soc/codecs/amlogic/cs42528.c index b44e32f7..93b3e1b 100644 --- a/sound/soc/codecs/amlogic/cs42528.c +++ b/sound/soc/codecs/amlogic/cs42528.c @@ -31,14 +31,14 @@ struct reg_default cs42528_reg_defaults[] = { { 0x06, 0x02 }, /* Clock Control */ { 0x0D, 0x28 }, /* Volume Control */ { 0x0E, 0xff }, /* Channel Mute */ - { 0x0F, 0x14 }, /* Volume Control A1 */ - { 0x10, 0x14 }, /* Volume Control B1 */ - { 0x11, 0x14 }, /* Volume Control A2 */ - { 0x12, 0x14 }, /* Volume Control B2 */ - { 0x13, 0x14 }, /* Volume Control A3 */ - { 0x14, 0x14 }, /* Volume Control B3 */ - { 0x15, 0x14 }, /* Volume Control A4 */ - { 0x16, 0x14 }, /* Volume Control B4 */ + { 0x0F, 0x00 }, /* Volume Control A1 */ + { 0x10, 0x00 }, /* Volume Control B1 */ + { 0x11, 0x00 }, /* Volume Control A2 */ + { 0x12, 0x00 }, /* Volume Control B2 */ + { 0x13, 0x00 }, /* Volume Control A3 */ + { 0x14, 0x00 }, /* Volume Control B3 */ + { 0x15, 0x00 }, /* Volume Control A4 */ + { 0x16, 0x00 }, /* Volume Control B4 */ { 0x17, 0x00 }, /* Channel invert */ { 0x18, 0x09 }, /* Mixing Ctrl Pair 1 */ { 0x19, 0x09 }, /* Mixing Ctrl Pair 2 */ @@ -61,14 +61,14 @@ static int cs42528_reg_table[CS42528_REG_COUNT][2] = { { 0x06, 0x02 }, /* Clock Control */ { 0x0D, 0x28 }, /* Volume Control */ { 0x0E, 0xff }, /* Channel Mute */ - { 0x0F, 0x14 }, /* Volume Control A1 */ - { 0x10, 0x14 }, /* Volume Control B1 */ - { 0x11, 0x14 }, /* Volume Control A2 */ - { 0x12, 0x14 }, /* Volume Control B2 */ - { 0x13, 0x14 }, /* Volume Control A3 */ - { 0x14, 0x14 }, /* Volume Control B3 */ - { 0x15, 0x14 }, /* Volume Control A4 */ - { 0x16, 0x14 }, /* Volume Control B4 */ + { 0x0F, 0x00 }, /* Volume Control A1 */ + { 0x10, 0x00 }, /* Volume Control B1 */ + { 0x11, 0x00 }, /* Volume Control A2 */ + { 0x12, 0x00 }, /* Volume Control B2 */ + { 0x13, 0x00 }, /* Volume Control A3 */ + { 0x14, 0x00 }, /* Volume Control B3 */ + { 0x15, 0x00 }, /* Volume Control A4 */ + { 0x16, 0x00 }, /* Volume Control B4 */ { 0x17, 0x00 }, /* Channel invert */ { 0x18, 0x09 }, /* Mixing Ctrl Pair 1 */ { 0x19, 0x09 }, /* Mixing Ctrl Pair 2 */ -- cgit