video: driver: use standard EOS event
use standard EOS event instead of private last flag event. Change-Id: Iaeb2c57ceb80769de8cf94a63077eddf3710f871 Signed-off-by: Darshana Patil <quic_darshana@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
203f09ac3f
commit
0b49e4ea40
@@ -2203,7 +2203,6 @@ int msm_vidc_process_drain_last_flag(struct msm_vidc_inst *inst)
|
||||
{
|
||||
int rc = 0;
|
||||
struct v4l2_event event = {0};
|
||||
struct v4l2_event_vidc_last_flag *event_data = NULL;
|
||||
|
||||
if (!inst || !inst->capabilities) {
|
||||
d_vpr_e("%s: invalid params\n", __func__);
|
||||
@@ -2220,9 +2219,7 @@ int msm_vidc_process_drain_last_flag(struct msm_vidc_inst *inst)
|
||||
return 0;
|
||||
}
|
||||
|
||||
event.type = V4L2_EVENT_VIDC_LAST_FLAG;
|
||||
event_data = (struct v4l2_event_vidc_last_flag *)event.u.data;
|
||||
event_data->flag_type = LAST_FLAG_DRAIN;
|
||||
event.type = V4L2_EVENT_EOS;
|
||||
v4l2_event_queue_fh(&inst->event_handler, &event);
|
||||
|
||||
return rc;
|
||||
@@ -2232,7 +2229,6 @@ int msm_vidc_process_psc_last_flag(struct msm_vidc_inst *inst)
|
||||
{
|
||||
int rc = 0;
|
||||
struct v4l2_event event = {0};
|
||||
struct v4l2_event_vidc_last_flag *event_data = NULL;
|
||||
|
||||
if (!inst || !inst->capabilities) {
|
||||
d_vpr_e("%s: invalid params\n", __func__);
|
||||
@@ -2249,9 +2245,7 @@ int msm_vidc_process_psc_last_flag(struct msm_vidc_inst *inst)
|
||||
return 0;
|
||||
}
|
||||
|
||||
event.type = V4L2_EVENT_VIDC_LAST_FLAG;
|
||||
event_data = (struct v4l2_event_vidc_last_flag *)event.u.data;
|
||||
event_data->flag_type = LAST_FLAG_DRC;
|
||||
event.type = V4L2_EVENT_EOS;
|
||||
v4l2_event_queue_fh(&inst->event_handler, &event);
|
||||
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user