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

Commit bff7e839 authored by Olivier Lorin's avatar Olivier Lorin Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: gspca - gl860: use of real resolutions for MI2020 sensor



- Change of rounded image resolutions to the real ones for MI2020 sensor
  in order to discard 2 random lines in the bottom of images

Signed-off-by: default avatarOlivier Lorin <o.lorin@laposte.net>
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f980f5d2
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -219,9 +219,9 @@ static struct v4l2_pix_format mi2020_mode[] = {
		.colorspace = V4L2_COLORSPACE_SRGB,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.priv = 0
		.priv = 0
	},
	},
	{ 800,  600, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
	{ 800,  598, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
		.bytesperline = 800,
		.bytesperline = 800,
		.sizeimage = 800 * 600,
		.sizeimage = 800 * 598,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.priv = 1
		.priv = 1
	},
	},
@@ -231,9 +231,9 @@ static struct v4l2_pix_format mi2020_mode[] = {
		.colorspace = V4L2_COLORSPACE_SRGB,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.priv = 2
		.priv = 2
	},
	},
	{1600, 1200, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
	{1600, 1198, V4L2_PIX_FMT_SGBRG8, V4L2_FIELD_NONE,
		.bytesperline = 1600,
		.bytesperline = 1600,
		.sizeimage = 1600 * 1200,
		.sizeimage = 1600 * 1198,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.colorspace = V4L2_COLORSPACE_SRGB,
		.priv = 3
		.priv = 3
	},
	},