msm: vidc: Fix bug in shared queue access

Read/write on shared queues and freeing up these queues
should be mutually exclusive. Also, IRQ should be enabled
after the shared queues have been allocated so that driver
has the capability to handle the IRQ when it is received.

Change-Id: I27e7572fb84e824ba59a104cc3ac4da91ee15961
Signed-off-by: Vinay Kalia <vkalia@codeaurora.org>
1 file changed