aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/adv7842.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-21 05:12:35 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-21 05:12:35 -0400
commit676ee36be04985062522804c2de04f0764212be6 (patch)
tree781df135c5a91a04decad1b7d53b5a925dc11522 /drivers/media/i2c/adv7842.c
parentb18042a673e88c9457a6d1716219c2367ca447b0 (diff)
parente183201b9e917daf2530b637b2f34f1d5afb934d (diff)
Merge branch 'patchwork' into v4l_for_linus
* patchwork: (404 commits) [media] uvcvideo: add support for VIDIOC_QUERY_EXT_CTRL [media] uvcvideo: fix cropcap v4l2-compliance failure [media] media: omap3isp: remove unused clkdev [media] coda: Add tracing support [media] coda: drop dma_sync_single_for_device in coda_bitstream_queue [media] coda: fix fill bitstream errors in nonstreaming case [media] coda: call SEQ_END when the first queue is stopped [media] coda: fail to start streaming if userspace set invalid formats [media] coda: remove duplicate error messages for buffer allocations [media] coda: move parameter buffer in together with context buffer allocation [media] coda: allocate bitstream buffer from REQBUFS, size depends on the format [media] coda: allocate per-context buffers from REQBUFS [media] coda: use strlcpy instead of snprintf [media] coda: bitstream payload is unsigned [media] coda: fix double call to debugfs_remove [media] coda: check kasprintf return value in coda_open [media] coda: bitrate can only be set in kbps steps [media] v4l2-mem2mem: no need to initialize b in v4l2_m2m_next_buf and v4l2_m2m_buf_remove [media] s5p-mfc: set allow_zero_bytesused flag for vb2_queue_init [media] coda: set allow_zero_bytesused flag for vb2_queue_init ...
Diffstat (limited to 'drivers/media/i2c/adv7842.c')
-rw-r--r--drivers/media/i2c/adv7842.c5
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 }