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

Commit 720b3dfa authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] cx231xx: don't reset width/height on first open



The last set width/height must be preserved as per the spec.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent b31077a8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1871,9 +1871,6 @@ static int cx231xx_v4l2_open(struct file *filp)
	v4l2_fh_init(&fh->fh, vdev);

	if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) {
		dev->width = norm_maxw(dev);
		dev->height = norm_maxh(dev);

		/* Power up in Analog TV mode */
		if (dev->board.external_av)
			cx231xx_set_power_mode(dev,