aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMinsong Kim <ms17.kim@samsung.com>2010-11-02 22:59:15 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:52:11 -0800
commitb84e29824d7e95d57ecc2c27674c3a1c67596755 (patch)
treeda23122165dd93cc4af77878fb680ccabc630778 /sound
parent7006ddc93aa75b5a905e8f063d6beffcd0b60bb6 (diff)
downloadkernel_samsung_crespo-b84e29824d7e95d57ecc2c27674c3a1c67596755.zip
kernel_samsung_crespo-b84e29824d7e95d57ecc2c27674c3a1c67596755.tar.gz
kernel_samsung_crespo-b84e29824d7e95d57ecc2c27674c3a1c67596755.tar.bz2
S5PC11X: SOUND: Update WM8994 codec gain for Europe
Change gain values in voice call mode IN1L_VOL(18h, receiver) = -6dB IN1L_VOL(18h, speaker) = -6dB IN1R_VOL(1ah, HP_MIC) = -10.5dB This is requested by Samsung H/W Team. The reason why voice was clipping problem from codec, we reduced an analog gain and volume up a digital gain in modem. And also we can manage to improve an echo/DT problem from these change. Change gain values in voice call mode HPOUT1L_VOL(1ch, HP_MIC) = +3dB HPOUT1L_VOL(1ch, HP_NO_MIC) = +3dB HPOUT1R_VOL(1dh, HP_MIC) = +3dB HPOUT1R_VOL(1dh, HP_NO_MIC) = +3dB Change-Id: Ifc6f9a31664e640d65c1a3cd099e6a8005f304bd Signed-off-by: Minsong Kim <ms17.kim@samsung.com>
Diffstat (limited to 'sound')
-rwxr-xr-xsound/soc/codecs/wm8994_herring.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c
index 6dc1b5a..169d19c 100755
--- a/sound/soc/codecs/wm8994_herring.c
+++ b/sound/soc/codecs/wm8994_herring.c
@@ -493,12 +493,12 @@ struct gain_info_t gain_code_table[GAIN_CODE_NUM] = {
.mode = VOICECALL_RCV | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_LEFT_LINE_INPUT_1_2_VOLUME, /* 18h */
.mask = WM8994_IN1L_VOL_MASK,
- .gain = WM8994_IN1L_VU | 0x18
+ .gain = WM8994_IN1L_VU | 0x14 /* +13.5dB */
}, {/* SPK */
.mode = VOICECALL_SPK | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_LEFT_LINE_INPUT_1_2_VOLUME, /* 18h */
.mask = WM8994_IN1L_VOL_MASK,
- .gain = WM8994_IN1L_VU | 0x11
+ .gain = WM8994_IN1L_VU | 0x0D /* +3dB */
}, {
.mode = VOICECALL_SPK | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_SPEAKER_VOLUME_LEFT, /* 26h */
@@ -508,17 +508,17 @@ struct gain_info_t gain_code_table[GAIN_CODE_NUM] = {
.mode = VOICECALL_HP | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_RIGHT_LINE_INPUT_1_2_VOLUME, /* 1Ah */
.mask = WM8994_IN1R_VOL_MASK,
- .gain = WM8994_IN1R_VU | 0x1F
+ .gain = WM8994_IN1R_VU | 0x18 /* +19.5dB */
}, {
.mode = VOICECALL_HP | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_LEFT_OUTPUT_VOLUME, /* 1Ch */
.mask = WM8994_HPOUT1L_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x37 /* -2dB */
+ .gain = WM8994_HPOUT1_VU | 0x3a /* +1dB */
}, {
.mode = VOICECALL_HP | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_RIGHT_OUTPUT_VOLUME, /* 1Dh */
.mask = WM8994_HPOUT1R_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x37 /* -2dB */
+ .gain = WM8994_HPOUT1_VU | 0x3a /* +1dB */
}, {/* HP_NO_MIC */
.mode = VOICECALL_HP_NO_MIC | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_LEFT_LINE_INPUT_1_2_VOLUME, /* 18h */
@@ -528,12 +528,12 @@ struct gain_info_t gain_code_table[GAIN_CODE_NUM] = {
.mode = VOICECALL_HP_NO_MIC | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_LEFT_OUTPUT_VOLUME, /* 1Ch */
.mask = WM8994_HPOUT1L_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x37 /* -2dB */
+ .gain = WM8994_HPOUT1_VU | 0x3a /* +1dB */
}, {
.mode = VOICECALL_HP_NO_MIC | VOICECALL_MODE | GAIN_DIVISION_BIT,
.reg = WM8994_RIGHT_OUTPUT_VOLUME, /* 1Dh */
.mask = WM8994_HPOUT1R_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x37 /* -2dB */
+ .gain = WM8994_HPOUT1_VU | 0x3a /* +1dB */
},
};