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

Commit 7874b903 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (13667): tw9910: modify output format



Correct tw9910 output format is Cb - Y - Cr - Y
which is defined in ITU-R BT.656.

Signed-off-by: default avatarKuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 398994c1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -806,7 +806,7 @@ static int tw9910_g_fmt(struct v4l2_subdev *sd,

	mf->width	= priv->scale->width;
	mf->height	= priv->scale->height;
	mf->code	= V4L2_MBUS_FMT_YVYU8_2X8_BE;
	mf->code	= V4L2_MBUS_FMT_YUYV8_2X8_BE;
	mf->colorspace	= V4L2_COLORSPACE_JPEG;
	mf->field	= V4L2_FIELD_INTERLACED_BT;

@@ -835,7 +835,7 @@ static int tw9910_s_fmt(struct v4l2_subdev *sd,
	/*
	 * check color format
	 */
	if (mf->code != V4L2_MBUS_FMT_YVYU8_2X8_BE)
	if (mf->code != V4L2_MBUS_FMT_YUYV8_2X8_BE)
		return -EINVAL;

	mf->colorspace = V4L2_COLORSPACE_JPEG;
@@ -862,7 +862,7 @@ static int tw9910_try_fmt(struct v4l2_subdev *sd,
		return -EINVAL;
	}

	mf->code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
	mf->code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
	mf->colorspace = V4L2_COLORSPACE_JPEG;

	/*
@@ -947,7 +947,7 @@ static int tw9910_enum_fmt(struct v4l2_subdev *sd, int index,
	if (index)
		return -EINVAL;

	*code = V4L2_MBUS_FMT_YVYU8_2X8_BE;
	*code = V4L2_MBUS_FMT_YUYV8_2X8_BE;
	return 0;
}