• Janusz Krzysztofik's avatar
    ASoC: cx20442: add bias control over a platform provided regulator · f75a8ff6
    Janusz Krzysztofik authored
    Now that a regulator device for controlling the codec chip reset state
    over a platform agnostic regulator API is available on the only board
    using this driver so far, extend the driver with a bias control function
    which will request virtual power to the codec chip from that virtual
    regulator, and will supersede the present implementation existing at the
    sound card level.
    
    Thanks to the regulator sharing mechanism, both the old (the sound card)
    and the new (the codec) implementations should coexist smoothly until
    the sound card file is updated. For this to work as expected, update the
    sound card .set_bias_level callback to not touch codec->dapm.bias_level.
    
    While extending the cx20442 structure, drop unused control_type member.
    
    Created against linxu-3.2-rc6, tested on top of patch 1/4 "ARM: OMAP1:
    ams-delta: set up a regulator over the modem reset GPIO pin".
    Signed-off-by: default avatarJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>
    Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
    Signed-off-by: default avatarLiam Girdwood <lrg@ti.com>
    f75a8ff6
cx20442.c 10.4 KB