diff options
Diffstat (limited to 'drivers/media/i2c/adv7842.c')
-rw-r--r-- | drivers/media/i2c/adv7842.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 7c215ee142c4..b5a37fe10a6a 100644 --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c | |||
@@ -1119,7 +1119,7 @@ static void set_rgb_quantization_range(struct v4l2_subdev *sd) | |||
1119 | /* Receiving DVI-D signal | 1119 | /* Receiving DVI-D signal |
1120 | * ADV7842 selects RGB limited range regardless of | 1120 | * ADV7842 selects RGB limited range regardless of |
1121 | * input format (CE/IT) in automatic mode */ | 1121 | * input format (CE/IT) in automatic mode */ |
1122 | if (state->timings.bt.standards & V4L2_DV_BT_STD_CEA861) { | 1122 | if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { |
1123 | /* RGB limited range (16-235) */ | 1123 | /* RGB limited range (16-235) */ |
1124 | io_write_and_or(sd, 0x02, 0x0f, 0x00); | 1124 | io_write_and_or(sd, 0x02, 0x0f, 0x00); |
1125 | } else { | 1125 | } else { |
@@ -1901,7 +1901,8 @@ static int adv7842_g_mbus_fmt(struct v4l2_subdev *sd, | |||
1901 | return 0; | 1901 | return 0; |
1902 | } | 1902 | } |
1903 | 1903 | ||
1904 | if (state->timings.bt.standards & V4L2_DV_BT_STD_CEA861) { | 1904 | fmt->colorspace = V4L2_COLORSPACE_SRGB; |
1905 | if (state->timings.bt.flags & V4L2_DV_FL_IS_CE_VIDEO) { | ||
1905 | fmt->colorspace = (state->timings.bt.height <= 576) ? | 1906 | fmt->colorspace = (state->timings.bt.height <= 576) ? |
1906 | V4L2_COLORSPACE_SMPTE170M : V4L2_COLORSPACE_REC709; | 1907 | V4L2_COLORSPACE_SMPTE170M : V4L2_COLORSPACE_REC709; |
1907 | } | 1908 | } |