Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4e057a9 authored by Manikanta Sivapala's avatar Manikanta Sivapala Committed by Praneeth Paladugu
Browse files

msm: vidc: Send reconfig height and width along with reconfig event



Pass the reconfig height and width to component via the v4l2_event
structure.

Change-Id: I3d8459e16ea11122871beb7d2bdd98723edbb3f6
Signed-off-by: default avatarManikanta Sivapala <msivap@codeaurora.org>
Signed-off-by: default avatarPraneeth Paladugu <ppaladug@codeaurora.org>
parent 3d109ee5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -884,6 +884,13 @@ static void handle_event_change(enum hal_command_response cmd, void *data)
	rc = msm_vidc_check_session_supported(inst);
	if (!rc) {
		seq_changed_event.type = event;
		if (event == V4L2_EVENT_SEQ_CHANGED_INSUFFICIENT) {
			u32 *ptr = NULL;

			ptr = (u32 *)seq_changed_event.u.data;
			ptr[0] = event_notify->height;
			ptr[1] = event_notify->width;
		}
		v4l2_event_queue_fh(&inst->event_handler, &seq_changed_event);
	} else if (rc == -ENOTSUPP) {
		msm_vidc_queue_v4l2_event(inst,