]> 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)
commitd2abf656dfa58f379b1c46ef28708bab9e88a48f
tree916016120495d45a90ca0bdec5a2b1bd3b23ce1d
parent2b59948935b09e941392c05b018dee9709a7f4d8
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