tegra-alt: adsp: reset handler on close
authorViraj Karandikar <vkarandikar@nvidia.com>
Wed, 8 Jul 2015 12:18:44 +0000 (17:18 +0530)
committerSumit Bhattacharya <sumitb@nvidia.com>
Mon, 20 Jul 2015 08:35:54 +0000 (01:35 -0700)
commit2100a3c5f70877dd566c201ffd6c4d033ed819e1
treed8bd0ab6237ab9edc58165033cf91101a47c253f
parent7e0f75e998e525506ee490e078381167d4bc15ab
tegra-alt: adsp: reset handler on close

Set message handler to NULL on stream close.
Acquire lock when calling msg handler to avoid
race condition.

Bug 200121246

Change-Id: Ia1182a787f00c2ee9b092a9822a6d5c8404e3b12
Signed-off-by: Viraj Karandikar <vkarandikar@nvidia.com>
Reviewed-on: http://git-master/r/768309
(cherry picked from commit 116260c46c2c0aa077bf2ca57ea2227a56ebd718)
Reviewed-on: http://git-master/r/770473
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
sound/soc/tegra-alt/tegra210_adsp_alt.c