ASoC: Allow mulitple usage count of codec and cpu dai
authorJassi Brar <jassi.brar@samsung.com>
Fri, 26 Feb 2010 00:12:32 +0000 (09:12 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 26 Feb 2010 11:17:48 +0000 (11:17 +0000)
commit14dc5734bdac2629ed4228f3d30662bb440a3982
tree137fb1c076b2f8d8d5292fb4547710f42faf32ce
parent6423c1875c87fa5ae56974ab8386d7c6110e3701
ASoC: Allow mulitple usage count of codec and cpu dai

If we are to have a snd_soc_dai i.e, cpu_dai and codec_dai, shared among two
or more dai_links we need to log the number of active users of the dai.
For that, we change semantics of the snd_soc_dai.active flag from indicator
to reference counter.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-core.c