ASoC: core: Fix card RTD count for deferred probe.
authorLiam Girdwood <lrg@ti.com>
Tue, 17 Apr 2012 17:00:11 +0000 (18:00 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 17 Apr 2012 19:52:19 +0000 (20:52 +0100)
commita7dbb603423d499acacefb5fad65d2b406f16370
tree86e84e818848fe637e6fb494ba118cc48019fb2a
parent86fc49982369f6918dd9c6eeb70b38ab2303ed0a
ASoC: core: Fix card RTD count for deferred probe.

Currently we increment the number of RTD's per card during the DAI link
bind. This can cause an incorrect RTD count when we cannot find a component
and defer the probe (and hence perform the DAI link bind for the card again).

Fix the count so that it is cleared before every card registration
and bind attempt.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c