diff options
| author | Karthikeyan Mani <kmani@codeaurora.org> | 2017-11-28 18:07:44 -0800 |
|---|---|---|
| committer | Karthikeyan Mani <kmani@codeaurora.org> | 2017-11-28 23:35:34 -0800 |
| commit | 4e0e2d6a6eba112d5b5aa8cf850f7057141e665b (patch) | |
| tree | 9ff30699244294746d21d279821740bc332cc7b3 /include | |
| parent | 2e22873571a7e0d6b8e9f54943de851598c8863c (diff) | |
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>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sound/pcm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/pcm.h b/include/sound/pcm.h index 2b6e8f8240d9..da9cdf5cf332 100644 --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -466,6 +466,7 @@ struct snd_pcm_substream { const struct snd_pcm_ops *ops; /* -- runtime information -- */ struct snd_pcm_runtime *runtime; + spinlock_t runtime_lock; /* -- timer section -- */ struct snd_timer *timer; /* timer */ unsigned timer_running: 1; /* time is running */ |
