msm: vidc: Handles secure/non-secure concurrency.
Handles concurrency scenarios by preventing
nonsecure sessions when secure sessions are
ongoing. This is required since secure and
non-secure sessions cannot run concurrently.
Change-Id: I197a4c437312d916c0f75e7eb026c0570fee12ff
Signed-off-by: Deepak Kotur <dkotur@codeaurora.org>
diff --git a/include/media/msm/vcd_api.h b/include/media/msm/vcd_api.h
index 20d3ef9..32a1759 100644
--- a/include/media/msm/vcd_api.h
+++ b/include/media/msm/vcd_api.h
@@ -116,11 +116,14 @@
void (*timer_stop) (void *timer_handle);
};
+/*Flags passed to vcd_open*/
+#define VCD_CP_SESSION 0x00000001
+
u32 vcd_init(struct vcd_init_config *config, s32 *driver_handle);
u32 vcd_term(s32 driver_handle);
u32 vcd_open(s32 driver_handle, u32 decoding,
void (*callback) (u32 event, u32 status, void *info, size_t sz,
- void *handle, void *const client_data), void *client_data);
+ void *handle, void *const client_data), void *client_data, int flags);
u32 vcd_close(void *handle);
u32 vcd_encode_start(void *handle);
u32 vcd_encode_frame(void *handle, struct vcd_frame_data *input_frame);