qseecom: Fix issue with incomplete command exiting prematurely

A process waiting on a signal can be awaken by any signals. We
need to only continue processing when the condition of the
wait event is met.

Change-Id: Ib2102babbb505876f89b04399729e6ff5a475605
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Update the period size and profile to reduce the latency

Reduce the pcm driver period size and period count to reduce the
amount of buffering and hence reduce the setup latency

Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Change-Id: Id97d50a7e5650ed60e057664314f003b3a60c896
ASoC: msm: Remove the redundant update in the hw_ptr

During the response of the CMD_RUN the hw_ptr is getting
incrmented, which leads to incorrect hw_ptr value.
This causes the error in calculation in the userspace
which calculates the buffer with the driver.
Fix by removing the redundant update in the hw_ptr.

Change-Id: I437a4d31489da21a08eef01092c41cd3a24ebe02
Signed-off-by: Aviral Gupta <aviralg@codeaurora.org>
Merge "Update the period size and profile to reduce the latency"
Merge "ASoC: msm: Remove the redundant update in the hw_ptr"
Merge "qseecom: Fix issue with incomplete command exiting prematurely"