aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSandor Yu <R01008@freescale.com>2014-04-21 04:38:03 -0400
committerSandor Yu <R01008@freescale.com>2014-04-24 04:45:56 -0400
commitd45ff51590bcd04b674fbfda4656fadb71e2f8dc (patch)
tree05b673f798173813db9d338ea0b83a975b87bbef /drivers/media
parent4c732ad69265d8e441e6c15a2e87f5aeef234624 (diff)
ENGR00309489-1 vadc: replace raw lines with active lines
Replace raw lines with active lines. return active lines to v4l2 capture driver. For csi capture driver, the capture size is setting to active lines and don't care raw lines. Signed-off-by: Sandor Yu <R01008@freescale.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/mxc/capture/mxc_vadc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/platform/mxc/capture/mxc_vadc.c b/drivers/media/platform/mxc/capture/mxc_vadc.c
index 7524f10846c9..1c58d10fd925 100644
--- a/drivers/media/platform/mxc/capture/mxc_vadc.c
+++ b/drivers/media/platform/mxc/capture/mxc_vadc.c
@@ -459,8 +459,8 @@ static void vadc_get_std(struct vadc_data *vadc, v4l2_std_id *std)
459 if (*std != vadc->std_id) { 459 if (*std != vadc->std_id) {
460 video_idx = idx; 460 video_idx = idx;
461 vadc->std_id = *std; 461 vadc->std_id = *std;
462 vadc->sen.pix.width = video_fmts[video_idx].raw_width; 462 vadc->sen.pix.width = video_fmts[video_idx].active_width;
463 vadc->sen.pix.height = video_fmts[video_idx].raw_height; 463 vadc->sen.pix.height = video_fmts[video_idx].active_height;
464 } 464 }
465} 465}
466 466
@@ -843,8 +843,8 @@ static int vadc_probe(struct platform_device *pdev)
843 vadc->sen.streamcap.timeperframe.numerator = 1; 843 vadc->sen.streamcap.timeperframe.numerator = 1;
844 vadc->std_id = V4L2_STD_ALL; 844 vadc->std_id = V4L2_STD_ALL;
845 video_idx = VADC_NTSC; 845 video_idx = VADC_NTSC;
846 vadc->sen.pix.width = video_fmts[video_idx].raw_width; 846 vadc->sen.pix.width = video_fmts[video_idx].active_width;
847 vadc->sen.pix.height = video_fmts[video_idx].raw_height; 847 vadc->sen.pix.height = video_fmts[video_idx].active_height;
848 vadc->sen.pix.pixelformat = V4L2_PIX_FMT_YUV444; /* YUV444 */ 848 vadc->sen.pix.pixelformat = V4L2_PIX_FMT_YUV444; /* YUV444 */
849 vadc->sen.pix.priv = 1; /* 1 is used to indicate TV in */ 849 vadc->sen.pix.priv = 1; /* 1 is used to indicate TV in */
850 vadc->sen.on = true; 850 vadc->sen.on = true;