ASoC: msm: Fix the issue of unmap being sent incorrectly

When CLOSE command is sent to Q6 right after RUN nowait command,
it may so happen that callback for RUN nowait comes while waiting for
the CLOSE response callback. Since there is no check in the callback
whether this is really for CLOSE command, apss will come out of wait
from CLOSE. This triggers UNMAP command to Q6 while it is still
processing the CLOSE command and causes tlb crash on Q6.

Change-Id: Ic1378cf4cf9aaa43314bcd7109d6674f88061466
CRs-Fixed: 428014
Signed-off-by: Phani Kumar Uppalapati <phanik@codeaurora.org>
2 files changed