asoc; tegra: Increase Realtek speaker gain.
Scott Peterson [Sun, 26 May 2013 17:01:05 +0000 (10:01 -0700)]
Increase the class D speaker gain in Realtek
codec.

Bug 1278531

Change-Id: I55dc5c809a291ff782a2c36ebab1fb07148bc5ee
Signed-off-by: Scott Peterson <speterson@nvidia.com>
(cherry picked from commit bfee36e20c7134d611fe578abbe3a864c9fdaf6a)
Reviewed-on: http://git-master/r/234957
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>

sound/soc/codecs/rt5639.c
sound/soc/codecs/rt5640.c

index 67313c0..3ff3b7e 100644 (file)
@@ -86,7 +86,7 @@ static struct rt5639_init_reg init_list[] = {
        {RT5639_SPK_L_MIXER     , 0x0036},/* DACL1 -> SPKMIXL */
        {RT5639_SPK_R_MIXER     , 0x0036},/* DACR1 -> SPKMIXR */
        {RT5639_SPK_VOL         , 0x8b8b},/* SPKMIX -> SPKVOL */
-       {RT5639_SPO_CLSD_RATIO  , 0x0001},
+       {RT5639_SPO_CLSD_RATIO  , 0x0004},
        {RT5639_SPO_L_MIXER     , 0xe800},/* SPKVOLL -> SPOLMIX */
        {RT5639_SPO_R_MIXER     , 0x2800},/* SPKVOLR -> SPORMIX */
        /*{RT5639_SPO_L_MIXER   , 0xb800},*//* DAC -> SPOLMIX */
@@ -198,6 +198,7 @@ static const u16 rt5639_reg[RT5639_VENDOR_ID2 + 1] = {
        [RT5639_SV_ZCD1] = 0x0809,
        [RT5639_VENDOR_ID1] = 0x10ec,
        [RT5639_VENDOR_ID2] = 0x6231,
+       /* [RT5639_PV_DET_SPK_G] = 0xc000, */
 };
 
 static int rt5639_reset(struct snd_soc_codec *codec)
index 984f72c..8f71124 100644 (file)
@@ -87,7 +87,7 @@ static struct rt5640_init_reg init_list[] = {
        {RT5640_SPK_L_MIXER     , 0x0036},/* DACL1 -> SPKMIXL */
        {RT5640_SPK_R_MIXER     , 0x0036},/* DACR1 -> SPKMIXR */
        {RT5640_SPK_VOL         , 0x8888},/* SPKMIX -> SPKVOL */
-       {RT5640_SPO_CLSD_RATIO  , 0x0001},
+       {RT5640_SPO_CLSD_RATIO  , 0x0004},
        {RT5640_SPO_L_MIXER     , 0xe800},/* SPKVOLL -> SPOLMIX */
        {RT5640_SPO_R_MIXER     , 0x2800},/* SPKVOLR -> SPORMIX */
 /*     {RT5640_SPO_L_MIXER     , 0xb800},//DAC -> SPOLMIX */
@@ -198,6 +198,8 @@ static const u16 rt5640_reg[RT5640_VENDOR_ID2 + 1] = {
        [RT5640_SV_ZCD1] = 0x0809,
        [RT5640_VENDOR_ID1] = 0x10ec,
        [RT5640_VENDOR_ID2] = 0x6231,
+       [RT5640_VENDOR_ID2] = 0x6231,
+       /* [RT5640_PV_DET_SPK_G] = 0xc000, */
 };