aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-25 13:43:37 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:51:41 -0800
commit51e112b3584bb4d2423680c2cc282b271cdcf3a6 (patch)
treedfc9de4bb4351e84edfaaefbe316a2a986475655 /sound
parent4a93acd6563de66a3875d3c2cea8cae98e70be70 (diff)
downloadkernel_samsung_crespo-51e112b3584bb4d2423680c2cc282b271cdcf3a6.zip
kernel_samsung_crespo-51e112b3584bb4d2423680c2cc282b271cdcf3a6.tar.gz
kernel_samsung_crespo-51e112b3584bb4d2423680c2cc282b271cdcf3a6.tar.bz2
ASoC: Activate high pass filter for right channel with headset record
The headset is using the right data path so we need to do high pass filtering in the right channel rather than the left channel. This appears to improve things for me, though futher testing in a quieter environment is required. Change-Id: I45c74472f640f20b09b8c1254c01c3d28808e423 Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994_herring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8994_herring.c b/sound/soc/codecs/wm8994_herring.c
index a2243d9..8184569 100644
--- a/sound/soc/codecs/wm8994_herring.c
+++ b/sound/soc/codecs/wm8994_herring.c
@@ -963,7 +963,7 @@ void wm8994_record_headset_mic(struct snd_soc_codec *codec)
/* Enable high pass filter to control bounce on startup */
val = wm8994_read(codec, WM8994_AIF1_ADC1_FILTERS);
val &= ~(WM8994_AIF1ADC1L_HPF_MASK | WM8994_AIF1ADC1R_HPF_MASK);
- val |= (WM8994_AIF1ADC1L_HPF);
+ val |= (WM8994_AIF1ADC1R_HPF);
wm8994_write(codec, WM8994_AIF1_ADC1_FILTERS, val);
/* Enable mic bias, vmid, bias generator */
@@ -1003,7 +1003,7 @@ void wm8994_record_headset_mic(struct snd_soc_codec *codec)
val = wm8994_read(codec, WM8994_AIF1_ADC1_FILTERS);
val &= ~(WM8994_AIF1ADC1L_HPF_MASK | WM8994_AIF1ADC1R_HPF_MASK);
- val |= (WM8994_AIF1ADC1L_HPF | 0x2000);
+ val |= (WM8994_AIF1ADC1R_HPF | 0x2000);
wm8994_write(codec, WM8994_AIF1_ADC1_FILTERS, val);
val = wm8994_read(codec, WM8994_AIF1_MASTER_SLAVE);