summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjula Gupta <magupta@nvidia.com>2011-01-13 14:37:00 +0530
committerBharat Nihalani <bnihalani@nvidia.com>2011-01-13 08:28:25 -0800
commit366af43bd1edc296fa27a6ed383cf8dae91ea190 (patch)
treec0a34578fb10aeb117509ac4613ff4d334954960
parent1503bf380cf05df14cf477245ee21228d75dbff9 (diff)
[tegra ALSA] Set default Mic gain to 19.2dBtegra-10.11.2
Setting deafult gain to 19.2dB for record, as there is no interface to change gain for the recorded audio setting it to 80% of max gain by default. This fixes the low volume level issue for the audio streams recorded through mic. For Bug 763227 Change-Id: Id141ed235c2a8d1ac3d26bc7d0ad03e26e7c8396 Reviewed-on: http://git-master/r/15790 Tested-by: Manjula Gupta <magupta@nvidia.com> Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com> Reviewed-by: Masood Shaikh <mshaikh@nvidia.com> Reviewed-by: Vijay Mali <vmali@nvidia.com> Reviewed-by: Scott Peterson <speterson@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
-rw-r--r--sound/soc/tegra/tegra_soc_wm8903.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/tegra_soc_wm8903.c b/sound/soc/tegra/tegra_soc_wm8903.c
index 80d85f985fdf..c4fef53570ee 100644
--- a/sound/soc/tegra/tegra_soc_wm8903.c
+++ b/sound/soc/tegra/tegra_soc_wm8903.c
@@ -112,7 +112,7 @@ static int tegra_hifi_hw_params(struct snd_pcm_substream *substream,
CtrlReg = (0x0<<B06_IN_CM_ENA) |
(0x0<<B00_MODE) | (0x0<<B04_IP_SEL_N)
| (0x1<<B02_IP_SEL_P);
- VolumeCtrlReg = (0x5 << B00_IN_VOL);
+ VolumeCtrlReg = (0x1C << B00_IN_VOL);
// Mic Setting
snd_soc_write(codec, WM8903_ANALOGUE_LEFT_INPUT_1, CtrlReg);
snd_soc_write(codec, WM8903_ANALOGUE_RIGHT_INPUT_1, CtrlReg);