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

Commit aaa11b17 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: Synchronize v4l2 subscribe and unsubscribe event in camera.c"

parents be0c4f47 5bc65481
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -458,7 +458,9 @@ static int camera_v4l2_subscribe_event(struct v4l2_fh *fh,
	int rc = 0;
	struct camera_v4l2_private *sp = fh_to_private(fh);

	mutex_lock(&sp->lock);
	rc = v4l2_event_subscribe(&sp->fh, sub, 5, NULL);
	mutex_unlock(&sp->lock);

	return rc;
}
@@ -469,7 +471,9 @@ static int camera_v4l2_unsubscribe_event(struct v4l2_fh *fh,
	int rc = 0;
	struct camera_v4l2_private *sp = fh_to_private(fh);

	mutex_lock(&sp->lock);
	rc = v4l2_event_unsubscribe(&sp->fh, sub);
	mutex_unlock(&sp->lock);

	return rc;
}