• Nicolin Chen's avatar
    ASoC: core: Add extra dapm properties for Device Tree · f23e860e
    Nicolin Chen authored
    The current helper functions, snd_soc_of_parse_audio_simple_widgets()
    and snd_soc_of_parse_audio_routing(), set dapm_widgets and dapm_routes
    without caring if they are already set by using build-in widgets and
    routes in the card driver. So there could be one of them, build-in one
    or Device Tree one, overrided by the other depending on which one was
    assigned later.
    
    This patch adds an extra pair of dapm_widgets and dapm_routes for DT
    use only so as to prevent unexpected overriding.
    Signed-off-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    f23e860e
soc.h 51.1 KB