aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/soc.h
diff options
context:
space:
mode:
authorJassi Brar <jassi.brar@samsung.com>2010-02-26 09:12:32 +0900
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-02-26 11:17:48 +0000
commit14dc5734bdac2629ed4228f3d30662bb440a3982 (patch)
tree137fb1c076b2f8d8d5292fb4547710f42faf32ce /include/sound/soc.h
parentASoC: Remove runtime field from DAI (diff)
downloadlinux-dev-14dc5734bdac2629ed4228f3d30662bb440a3982.tar.xz
linux-dev-14dc5734bdac2629ed4228f3d30662bb440a3982.zip
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>
Diffstat (limited to 'include/sound/soc.h')
-rw-r--r--include/sound/soc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 27a2ad9a6b8b..f792c1881b0a 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -375,7 +375,7 @@ struct snd_soc_pcm_stream {
unsigned int rate_max; /* max rate */
unsigned int channels_min; /* min channels */
unsigned int channels_max; /* max channels */
- unsigned int active:1; /* stream is in use */
+ unsigned int active; /* num of active users of the stream */
};
/* SoC audio ops */