msm: vidc: Add error handling support for FW failures

Error handling added for following cases.

- If session init is failed in FW, it reports back failures.
Driver needs to handle this error properly.
- If FW is overloaded then driver rejects the new session.
This session need to be cleaned properly, else it might
cause a session leak in FW.
- If driver timedout for a command response from FW, then
driver needs to abort that session in FW.

Change-Id: Ib85453032da7b63f5d360286111a768824fd305b
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
1 file changed