summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authoring07300 <raghavendra.patil_2@stericsson.com>2011-08-31 18:58:15 +0530
committerUlf Hansson <ulf.hansson@stericsson.com>2011-09-19 16:05:56 +0200
commitac2feeeaacc931f2d3959f76ce6e9b6a4c97ee28 (patch)
tree61f345c19a7112af164983ad4f6bdb857ec78fac /sound
parent94323635cda3c477a74b5e6b49147cf04cb4a838 (diff)
Ux500 ASoC: increase volume level of mic
Increase in volume level of mic ST-Ericsson Linux next: Not tested, ER 350889 ST-Ericsson ID: 350889 ST-Ericsson FOSS-OUT ID: STETL-FOSS-OUT-10006 Ref: Commit-id: I853d25eb69f5b8c3221b51388d8d9741cde76b8d Signed-off-by: Avinash A <Avinash.a@stericsson.com> Change-Id: Id5e09176745ab6fdfa02efe1b1f37ec09c233728 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30117 Reviewed-by: Avinash A <avinash.a@stericsson.com> Tested-by: Avinash A <avinash.a@stericsson.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/ab5500.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/codecs/ab5500.c b/sound/soc/codecs/ab5500.c
index 957b8fa28c2..3034ac02250 100644
--- a/sound/soc/codecs/ab5500.c
+++ b/sound/soc/codecs/ab5500.c
@@ -1600,8 +1600,10 @@ static inline void init_playback_gain(void)
static inline void init_capture_gain(void)
{
/* 0x06, 0x0f: pure gain values */
- mask_set_reg(MIC1_GAIN, MICx_GAIN_MASK, 0x06 << MICx_GAIN_SHIFT);
+ mask_set_reg(MIC1_GAIN, MICx_GAIN_MASK, 0x08 << MICx_GAIN_SHIFT);
mask_set_reg(TX_DPGA1, TX_DPGAx_MASK, 0x0f << TX_DPGAx_SHIFT);
+ mask_set_reg(MIC2_GAIN, MICx_GAIN_MASK, 0x08 << MICx_GAIN_SHIFT);
+ mask_set_reg(TX_DPGA2, TX_DPGAx_MASK, 0x0f << TX_DPGAx_SHIFT);
}
static int __devinit ab5500_platform_probe(struct platform_device *pdev)
@@ -1630,8 +1632,8 @@ static int __devinit ab5500_platform_probe(struct platform_device *pdev)
for (reg = AB5500_FIRST_REG; reg <= AB5500_LAST_REG; reg++)
set_reg(reg, 0);
- mask_set_reg(CLOCK, CLOCK_REF_SELECT_MASK | CLOCK_ENABLE_MASK,
- 1 << CLOCK_REF_SELECT_SHIFT | 1 << CLOCK_ENABLE_SHIFT);
+ mask_set_reg(CLOCK, CLOCK_ENABLE_MASK, 1 << CLOCK_ENABLE_SHIFT);
+
printk(KERN_ERR "Clock Setting ab5500\n");
init_playback_route();
init_playback_gain();