aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorsh21.won <sh21.won@samsung.com>2011-03-29 06:11:04 +0900
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:53:48 -0800
commit0139192244c49fd26218c5ceebe21c4ec5dd54b1 (patch)
tree4cf45d87e9c1bbc1da2ef3a80cda8628629705ce /sound
parentee9d32878e323c16496638c43b52b9eab5b10c0e (diff)
downloadkernel_samsung_crespo-0139192244c49fd26218c5ceebe21c4ec5dd54b1.zip
kernel_samsung_crespo-0139192244c49fd26218c5ceebe21c4ec5dd54b1.tar.gz
kernel_samsung_crespo-0139192244c49fd26218c5ceebe21c4ec5dd54b1.tar.bz2
ASOC: reduce codec gain to lower volume
The volume is raised at the latest version's device. So, the codec gain is lowered to satisfy a certain volume. Change-Id: I823d1c92fe2ac5d4596bcbd48b771b3ee348e193 Signed-off-by: sh21.won <sh21.won@samsung.com>
Diffstat (limited to 'sound')
-rwxr-xr-xsound/soc/codecs/wm8994_herring.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c
index 3ccad95..c6f1dd0 100755
--- a/sound/soc/codecs/wm8994_herring.c
+++ b/sound/soc/codecs/wm8994_herring.c
@@ -91,7 +91,7 @@ struct gain_info_t cdma_playback_gain_table[PLAYBACK_GAIN_NUM] = {
.mode = PLAYBACK_SPK,
.reg = WM8994_SPEAKER_VOLUME_LEFT, /* 26h */
.mask = WM8994_SPKOUTL_VOL_MASK,
- .gain = WM8994_SPKOUT_VU | 0x3F /* +5dB */
+ .gain = WM8994_SPKOUT_VU | 0x3E /* +5dB */
}, {
.mode = PLAYBACK_SPK,
.reg = WM8994_SPEAKER_VOLUME_RIGHT, /* 27h */
@@ -101,7 +101,7 @@ struct gain_info_t cdma_playback_gain_table[PLAYBACK_GAIN_NUM] = {
.mode = PLAYBACK_SPK,
.reg = WM8994_CLASSD, /* 25h */
.mask = WM8994_SPKOUTL_BOOST_MASK,
- .gain = 0x07 << WM8994_SPKOUTL_BOOST_SHIFT /* +7.5dB */
+ .gain = 0x05 << WM8994_SPKOUTL_BOOST_SHIFT /* +7.5dB */
}, {
.mode = PLAYBACK_SPK,
.reg = WM8994_AIF1_DAC1_LEFT_VOLUME, /* 402h */
@@ -116,12 +116,12 @@ struct gain_info_t cdma_playback_gain_table[PLAYBACK_GAIN_NUM] = {
.mode = PLAYBACK_HP,
.reg = WM8994_LEFT_OUTPUT_VOLUME, /* 1Ch */
.mask = WM8994_HPOUT1L_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x36 /* -8dB */
+ .gain = WM8994_HPOUT1_VU | 0x31 /* -8dB */
}, {
.mode = PLAYBACK_HP,
.reg = WM8994_RIGHT_OUTPUT_VOLUME, /* 1Dh */
.mask = WM8994_HPOUT1R_VOL_MASK,
- .gain = WM8994_HPOUT1_VU | 0x36 /* -8dB */
+ .gain = WM8994_HPOUT1_VU | 0x31 /* -8dB */
}, {
.mode = PLAYBACK_HP,
.reg = WM8994_LEFT_OPGA_VOLUME, /* 20h */
@@ -146,7 +146,7 @@ struct gain_info_t cdma_playback_gain_table[PLAYBACK_GAIN_NUM] = {
.mode = PLAYBACK_SPK_HP,
.reg = WM8994_SPEAKER_VOLUME_LEFT, /* 26h */
.mask = WM8994_SPKOUTL_VOL_MASK,
- .gain = WM8994_SPKOUT_VU | 0x3F
+ .gain = WM8994_SPKOUT_VU | 0x3E
}, {
.mode = PLAYBACK_SPK_HP,
.reg = WM8994_SPEAKER_VOLUME_RIGHT, /* 27h */
@@ -156,7 +156,7 @@ struct gain_info_t cdma_playback_gain_table[PLAYBACK_GAIN_NUM] = {
.mode = PLAYBACK_SPK_HP,
.reg = WM8994_CLASSD, /* 25h */
.mask = WM8994_SPKOUTL_BOOST_MASK,
- .gain = 0x7 << WM8994_SPKOUTL_BOOST_SHIFT
+ .gain = 0x5 << WM8994_SPKOUTL_BOOST_SHIFT
}, {
.mode = PLAYBACK_SPK_HP,
.reg = WM8994_LEFT_OUTPUT_VOLUME, /* 1Ch */