mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: Liam Girdwood <[email protected]> Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
6423c1875c
commit
14dc5734bd
2 changed files with 19 additions and 14 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue