msm: audio: qdsp5: Acquire and release spinlock in async flush

-audpcm_async_flush and audpcm_async_send_data functions in mp3
and lpa driver use out_queue and delete the entry in it.
But spinlock is acquired only in audpcm_async_send_data whereas
the operation in audpcm_async_flush is not spinlock protected.
This causes a kernel panic if both try to delete an entry in
the out_queue simultaneously.
-Make audpcm_async_flush spinlock safe to avoid such issues.

Change-Id: Ie7e498a8438c60cd3af8f94ac03af0750307c87f
CRs-Fixed: 360389
Signed-off-by: Chaithanya Krishna Bacharaju <chaithan@codeaurora.org>
2 files changed