msm: camera: sync: Add SYNC_V4L_EVENT_V2 support in sync driver

Add SYNC_V4L_EVENT_V2 support in sync driver. As part of this
change, added the reason code field as part of sync event header.
This failure reason code is filled by camera kernel driver and
propagate to userspace.

CRs-Fixed: 2750553
Change-Id: I206d0d51c38cfe4214814b89d241f51c1f50605b
Signed-off-by: Alok Chauhan <alokc@codeaurora.org>
This commit is contained in:
Alok Chauhan
2020-07-28 21:42:02 +05:30
parent f64d8b76f2
commit 1d1edb7030
10 changed files with 251 additions and 53 deletions

View File

@@ -182,6 +182,7 @@ struct cam_signalable_info {
* @cam_sync_eventq : Event queue used to dispatch user payloads to user space
* @bitmap : Bitmap representation of all sync objects
* @params : Parameters for synx call back registration
* @version : version support
*/
struct sync_device {
struct video_device *vdev;
@@ -198,6 +199,7 @@ struct sync_device {
#if IS_REACHABLE(CONFIG_MSM_GLOBAL_SYNX)
struct synx_register_params params;
#endif
uint32_t version;
};