• Lars-Peter Clausen's avatar
    ASoC: Add a set_bias_level() callback to the DAPM context struct · 68f831c2
    Lars-Peter Clausen authored
    Currently the DAPM code directly looks at the CODEC driver struct to get a
    handle to the set_bias_level() callback. This patch adds a new set_bias_level()
    callback to the DAPM context struct. The DAPM code will use this new callback
    instead of the CODEC callback. For CODECs the new callback is set up to call the
    CODEC specific set_bias_level callback(). Not looking directly at the CODEC
    driver struct will allow non CODEC DAPM contexts to implement a set_bias_level()
    callback.
    
    This is also similar to how the seq_notifier() and stream_event() callbacks are
    currently handled.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    68f831c2
soc-core.c 121 KB