diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-02-25 19:12:32 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-02-26 06:17:48 -0500 |
commit | 14dc5734bdac2629ed4228f3d30662bb440a3982 (patch) | |
tree | 137fb1c076b2f8d8d5292fb4547710f42faf32ce /include/sound | |
parent | 6423c1875c87fa5ae56974ab8386d7c6110e3701 (diff) |
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')
-rw-r--r-- | include/sound/soc.h | 2 |
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 { | |||
375 | unsigned int rate_max; /* max rate */ | 375 | unsigned int rate_max; /* max rate */ |
376 | unsigned int channels_min; /* min channels */ | 376 | unsigned int channels_min; /* min channels */ |
377 | unsigned int channels_max; /* max channels */ | 377 | unsigned int channels_max; /* max channels */ |
378 | unsigned int active:1; /* stream is in use */ | 378 | unsigned int active; /* num of active users of the stream */ |
379 | }; | 379 | }; |
380 | 380 | ||
381 | /* SoC audio ops */ | 381 | /* SoC audio ops */ |