• Peter Ujfalusi's avatar
    ASoC: TWL4030: Add configurable delay after digimic enable · 01ea6ba2
    Peter Ujfalusi authored
    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: default avatarPeter Ujfalusi <peter.ujfalusi@nokia.com>
    Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
    01ea6ba2
twl4030.h 1.57 KB