• Lars-Peter Clausen's avatar
    ASoC: Make rtd->codec optional · 93c3ce76
    Lars-Peter Clausen authored
    There are some place in the ASoC core that expect rtd->codec to be non NULL
    (mainly CODEC specific sysfs files). With componentization going forward
    rtd->codec might be NULL in some cases. This patch prepares the core for this by
    not registering CODEC specific sysfs files if rtd->codec is NULL. sysfs file
    removal does not need to be conditionalized as it handles the removal of
    non-existing files just fine.
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    93c3ce76
soc-core.c 125 KB