• Lars-Peter Clausen's avatar
    ASoC: s6105-ipcam: Convert to table based DAPM setup · b92af2b8
    Lars-Peter Clausen authored
    Use table based setup to register the DAPM widgets and routes. This on one hand
    makes the code a bit shorter and cleaner and on the other hand the board level
    DAPM elements get registered in the card's DAPM context rather than in the
    CODEC's DAPM context.
    
    While we are at it also remove the snd_soc_dapm_enable_pin() in the init
    callback, since pins are enabled by default. Also drop the snd_soc_dapm_sync()
    calls, since they are ignored by the core anyway until the card has been fully
    instantiated.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    b92af2b8
s6105-ipcam.c 6.33 KB