]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
ASoC: TWL4030: Add configurable delay after digimic enable
authorPeter Ujfalusi <peter.ujfalusi@nokia.com>
Tue, 20 Jul 2010 12:49:09 +0000 (15:49 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 21 Jul 2010 10:57:58 +0000 (11:57 +0100)
commit01ea6ba2bce64112623dbf8c45ce487062b65446
tree490a4af1657713c582895ffa7e4c4bae97f5519c
parent0fad4ed7b230f593539b2da9cadbb77cb3a3131a
ASoC: TWL4030: Add configurable delay after digimic enable

When digital microphones are connected to twl, delay is
needed after enabling the digimic interface of the codec.
Add new parameter for the setup data, which can be used
to pass the apropriate delay in ms after the digimic
interface has been enabled.

Without certain delay (in certain HW configuration) the
beggining of the recorded sample contains a glitch, which
is generated by the digital microphones.

Delaying the micbias1, 2 (which is the bias for the digimic0
or 1) does not help, since the glitch is coming after
switching the digimic interface.

Reversing the micbias and digimic enable order does not
work either (in that case the wait need to be added after
the micbias enabled).

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/twl4030.c
sound/soc/codecs/twl4030.h