ASoC: TWL4030: Add EXTMUTE to reduce pop-noise effect
commit4e49ffd10f01950bd81e8ef368a1ffb484a7d759
authorCandelaria Villareal, Jorge <x0107209@ti.com>
Thu, 2 Jul 2009 00:17:43 +0000 (1 19:17 -0500)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 2 Jul 2009 10:06:26 +0000 (2 11:06 +0100)
treead1f82c55044d4976cf3d32e187c32ef45386703
parent2115d2c17369df4b70fd161623a40ce98c261989
ASoC: TWL4030: Add EXTMUTE to reduce pop-noise effect

According to TRM, an external FET controlled by a 1.8V output signal
can be used to reduce the pop-noise heard when the audio amplifier is
switched on. It is suggested that GPIO6 of TWL4030 be used, but any
other gpio can be used instead. This is indicated in machine driver
with the following twl4030_setup_data members:

-hs_extmute. Set to 1 if board has support for EXTMUTE.

-set_hs_extmute. Set to a callback funcion to control an external gpio
line. Set to NULL if MUTE[GPIO6] pin is used.

Codec driver takes care of enabling and disabling this output during
the headset pop attenuation sequence.

Also add a delay to let VMID settle in ramp up sequence.

Signed-off-by: Jorge Eduardo Candelaria <x0107209@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/twl4030.c
sound/soc/codecs/twl4030.h