msm: vidc: Add correct enum session_type instead of core_id

- Initial setup_event_queue is using core_id enum instead of
  session_type for msm_video_device parameter
- Fix the issue by using session_type instead of core_id

Change-Id: I2b1c2c46351afbba1488cb5b1aa4d6f8a2a0f1d3
CRs-fixed: 537916
Signed-off-by: Jayasena Sangaraboina <jsanga@codeaurora.org>
msm: vidc: Fix cache invalidation issue
msm: vidc: avoid usage of output_tag to get session_id
msm: vidc: Return failure for unsupported codecs
msm: vidc: Fix unsupported codec error from video driver

- Client is getting unsupported codec error for set format
  sometimes after opening the video driver because driver
  was not updated with supported codecs information from
  video hardware.
- The same issue can be fixed by waiting for the driver state
  changed to CORE_INIT_DONE, which ensures the supported codecs
  information will be updated in video driver, before checking
  the supported codecs information.

CRs-fixed: 590158
Change-Id: Ia9132fdc01e4fa53533a3c9d14069d49501fa7d7
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
msm: vidc: send release buffers cmd during instance clean up
Revert "msm: vidc: Fix cache invalidation issue"

This reverts commit 0149e19c7886babaddcefd477cbfefac82167e3d.