[media] v4l2-tpg: ignore V4L2_DV_RGB_RANGE setting for YUV formats
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 28 Jun 2016 14:14:19 +0000 (11:14 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 19:16:52 +0000 (16:16 -0300)
commit85a5f85ef9d600d5027b6691c826621a55ad288a
treecdb626965c635757f09f22610d678edfa97067b9
parentc1023ba74fc77dc56dc317bd98f5060aab889ac1
[media] v4l2-tpg: ignore V4L2_DV_RGB_RANGE setting for YUV formats

The V4L2_DV_RGB_RANGE_* settings are, as the name says, for RGB formats only.
So they should be ignored for non-RGB formats.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c