]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Cleanup DAI module reference counting
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Aug 2014 13:51:25 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 19 Aug 2014 15:59:46 +0000 (10:59 -0500)
commit89befa7b069a57cace348b625466b94281cac678
tree916016120495d45a90ca0bdec5a2b1bd3b23ce1d
parent6f9d3b2f83ddb46eaddf0fc31dcff075689b737c
ASoC: Cleanup DAI module reference counting

Currently when a DAI has no CODEC associated to it the reference on the module
containing the DAI driver is increased when the DAI is probed and decrease when
the DAI is removed. For DAIs with CODECs the module reference count was already
incremented when the CODEC is probed. Now that all components have their module
reference count incremented when they are probed and all DAIs do have a
component it is possible to remove the module reference counting on DAI probe
and removal.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c