summaryrefslogtreecommitdiff
authorivan.nie <ivan.nie@amlogic.com>2018-05-07 05:55:48 (GMT)
committer Xindong Xu <xindong.xu@amlogic.com>2018-05-09 06:10:19 (GMT)
commitd8deba69670a9d004f23a7e360b769aeab0e1f64 (patch)
tree7e1391c72e20aaf2efc06d128b3e0938dfda181c
parentfdf04bf2d2befa618c126112209c58b3daa976bf (diff)
downloadcommon-o-amlogic.zip
common-o-amlogic.tar.gz
common-o-amlogic.tar.bz2
codec: cs42528 codec volume output default to 0dB
PD#NONE Change-Id: Ic8e202d27e2c913a2d21cabeb5d44fe9b8149f71
Diffstat
-rw-r--r--sound/soc/codecs/amlogic/cs42528.c32
1 files changed, 16 insertions, 16 deletions
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 */