mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
ALSA: pcm: add locks for accessing runtime resource
Add spin lock to resolve race conditions while accessing substream runtime resource. CRs-fixed: 2112713 Change-Id: I8db743303ceb50205d62adfc02caf6ecab635d47 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org> Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
parent
11b286fb73
commit
4a7756137d
1 changed files with 3 additions and 0 deletions
|
|
@ -475,6 +475,9 @@ struct snd_pcm_substream {
|
|||
#endif /* CONFIG_SND_VERBOSE_PROCFS */
|
||||
/* misc flags */
|
||||
unsigned int hw_opened: 1;
|
||||
#ifdef CONFIG_AUDIO_QGKI
|
||||
spinlock_t runtime_lock;
|
||||
#endif
|
||||
};
|
||||
|
||||
#define SUBSTREAM_BUSY(substream) ((substream)->ref_count > 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue