msm: vidc: Fix the filled length for flushed buffers

For the buffers which are flushed internally in the driver,
the filled length should be set to zero. This change fixes
the same.

Change-Id: I21553c7812e2c15af14097f5562dbc8e68107506
CRs-Fixed: 513940
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: vidc: Add support for H.264 LEVEL 5.2

For high resolutions and bit rates, H.264 spec
defined new level. This change adds support to
pass LEVEL 5.2 to FW.

Change-Id: I2298989734450a4f5eee285326afacc4a0836b41
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
msm: vidc: Fix a race condition with core instances list

All list operations for core instances list needs to be
protected by mutex. Add mutex for the same.While adding
the new instance to the core instances list, the list
needs to be protected by mutex. This is protected by
incorrect mutex.Fix an issue to acquire proper mutex.

Change-Id: Ibbb11678881fb5d63ce4161fcb4fcd317ddf3259
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>