OSDN Git Service

asoc: msm-pcm: Added lock in controls _put() and _get()
authorSoumya Managoli <smanag@codeaurora.org>
Thu, 3 Oct 2019 12:51:07 +0000 (18:21 +0530)
committerSoumya Managoli <smanag@codeaurora.org>
Thu, 24 Oct 2019 09:22:10 +0000 (14:52 +0530)
commit1c9afab264e3cafa461d746e9dcfd3c0487754cb
tree55be2976fe9d54f333458f43c01ca2c40c5c2dc1
parentdd4645c977feb6cef4d7f598abd8864cc7b7e878
asoc: msm-pcm: Added lock in controls _put() and _get()
callback

There is race condition around private data used in put() and get()
of few mixer ctls with close() callback. Added global mutex lock and
code changes to protect such critical section by accessing such lock.

Change-Id: I276c2a234cfcbef88b4272b945e5c3f121e8eb32
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.h