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)
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>

No differences found