OSDN Git Service

ASoC: core: add support to card re-bind using component framework
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Fri, 13 Jul 2018 15:36:28 +0000 (16:36 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 18 Jul 2018 12:08:15 +0000 (13:08 +0100)
commitbb4b894addb09a069c072a0a032f644cc470d17f
tree7174002b223011c545e5af3214b79049e5ca852d
parent19e023e3befb4cb64b4a81b47a92a0c687672661
ASoC: core: add support to card re-bind using component framework

This patch aims at achieving dynamic behaviour of audio card when
the dependent components disappear and reappear.

With this patch the card is removed if any of the dependent component
is removed and card is added back if the dependent component comes back.
All this is done using component framework and matching based on
component name.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c