OSDN Git Service

ASoC: wcd-dsp-mgr: set status before broadcasting post events
authorBhalchandra Gajare <gajare@codeaurora.org>
Wed, 5 Oct 2016 00:55:08 +0000 (17:55 -0700)
committerBhalchandra Gajare <gajare@codeaurora.org>
Wed, 5 Oct 2016 01:04:46 +0000 (18:04 -0700)
commitf37c2edcc63ab469eadb896b3e5b41d64b52ed05
tree3083fe3dbf98955bd493934dc6cc550a99f9b31d
parentd728aa90314f66b19616df559c67d1f76bbb51bd
ASoC: wcd-dsp-mgr: set status before broadcasting post events

During image download, the status is set after post download events
are broadcasted. This could possibly lead to race condition if other
drivers requested to boot the dsp before the status was set. Change
makes sure the wdsp status is set prior to broadcasting post download
events to avoid possible race conditions.

CRs-fixed: 1071949
Change-Id: If3ec6202b4729b24ee839c3a8aa4edf2482d6e59
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
sound/soc/codecs/wcd-dsp-mgr.c