Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c62976a authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Saravana Kannan
Browse files

ANDROID: GKI: ALSA: pcm: add locks for accessing runtime resource



Add spin lock to resolve race conditions while
accessing substream runtime resource.

Change-Id: I8db743303ceb50205d62adfc02caf6ecab635d47
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
Bug: 151372815
(cherry picked from commit f5879f21)
Signed-off-by: default avatarSaravana Kannan <saravanak@google.com>
parent 8898725b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -476,6 +476,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 */