]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit497451524a135e42109ce9f1ec9df5ad705b040f
tree137fb1c076b2f8d8d5292fb4547710f42faf32ce
parentd43041cad76c9475cc15c370c99c6ae2356189a0
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