summaryrefslogtreecommitdiff
path: root/drivers/media/video
AgeCommit message (Collapse)Author
2012-03-02ENGR00175219-7 camera: use clko_clk sourceGary Zhang
change clock source to clko_clk from cko1_clk Signed-off-by: Gary Zhang <b13634@freescale.com>
2012-03-01ENGR00172084 MX6Q: Add 4 capture modes for ov5642Daiane Angolini
capture modes included: VGA(640x480)@15fps QVGA(320x240)@15fps NTSC(720x480)@15fps PAL(720x576)@15fps in order to test it: mxc_v4l2_capture.out -iw 640 -ih 480 -ow 640 -oh 480 -r 0 -fr 15 -m 0 test.yuv mxc_v4l2_capture.out -iw 320 -ih 240 -ow 320 -oh 240 -r 0 -fr 15 -m 1 test.yuv mxc_v4l2_capture.out -iw 720 -ih 480 -ow 720 -oh 480 -r 0 -fr 15 -m 2 test.yuv mxc_v4l2_capture.out -iw 720 -ih 480 -ow 720 -oh 576 -r 0 -fr 15 -m 3 test.yuv Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
2012-02-28ENGR00175205 camera: change sensor_clock as an indepent moduleYuxi Sun
Sensor_clock function will have confict when dual camera is introduced, so change it as an indepent module. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-02-14ENGR00174395 V4L2 capture: Driver improvementLiu Ying
1) CSI module should be disabled first for CSI_MEM channel, otherwise, the capture channels will hang after restarting for several times. 2) Disable CSI module correctly for overlay. Move stopping preview channel operation out of de-select interface. 3) Check cam->overlay_on is true in close function before stopping preview. 4) Check cam->vf_start_sdc function before calling it. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2012-02-08ENGR00174039 camera: modify camera driversYuxi Sun
Modify ov3640 ov5640 ov5642 driver according to sensor data structure change for dual camera switch Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-02-08ENGR00173864 MX6Q ipu capture: add multi camera switchYuxi Sun
Add IOCTRL command V4L2_CID_MXC_SWITCH_CAM for multi camera switch Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-02-07ENGR00173869-9: i.mx6dl: add the misc drivers supportJason Liu
This patch change is very trivial and simply just add cpu_is_mx6dl() or using cpu_is_mx6 to replace cpu_is_mx6q each driver owner will check it and adjust it accordingly later, such as sdhc etc. Signed-off-by: Jason Liu <r64343@freescale.com>
2012-01-19ENGR00172175 MX6Q: OV5640_MIPI support fast configureEven Xu
OV5640_MIPI need to be configure faster to get capture image quickly. So change the configures, when change the resolution OV5640_MIPI sensor will not do reset. Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-19ENGR00169489-2 Add OV5642 csi camera support for i.mx6 sabre-lite board.Yi Li
Add OV5642 csi camera support for i.mx6 sabre-lite board Signed-off-by: Yi Li <R80015@freescale.com>
2012-01-19ENGR00171564-3 MX6Q ARM2: Enable TVIN based on AutoBoardEven Xu
- Add adv7180 driver to ARM2 support - Add adv7180 configure - Chenge CSI configure for BT656 support Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-19ENGR00170444: [v3]imx6sabreauto adv7180 TVin portb37753
Kconfig and Makefile was modified in order to enable adv7180 driver for mx6q architecture. adv7180.c mutex was changed to semaphore as is described in "https://lwn.net/Articles/304725/ ". sensor data structure is added in fsl_devices.h. mxc_v4l2_capture.c condition in mxc_v4l2_sparam was removed because is going to be always true capture mode only have 1 possible value as is described in "https://lwn.net/Articles/235023/". ipu_capture.c clock divisor setup was added at init the csi. Signed-off-by: B37753 <B37753@freescale.com>
2012-01-09ENGR00171035 Fix OV3640 XGA can not workEven Xu
- Fix OV3640 XGA cannot work, XGA can be supported - Add OV3640 720P, 1080P at 15fps support - Fix a MXC_V4L2_CAPTURE driver bug, when setting param, only when current mode and framerate are the same with param, then not change current setting again Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00171047 Fix ov5640 QSXGA can not workEven Xu
Change sensor configuration to fix this issue. Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00171010 enable exposure calculate functionYuxi Sun
Exposure calculate function was not used and this produce build warning, enable this function not only remove this warning, but also get a better image quality when take picture. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00170168-2 mxc_vout: add non FB_VMODE_YWRAP supportJason Chen
when use pan display, the case could be: 1. a small window wrap in a big frame buffer 2. a frame switch in a serial buffers the ipuv3 fb driver used to support case 1, and for case 2, if the fb format is interleaved, there is no problem, but for non-interleaved format (like I420), there will be a display bug. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09fix the building warningsJason Liu
Signed-off-by: Jason Liu <r64343@freescale.com>
2012-01-09fix build issues: remove the include of smp_lock.hJason Liu
since smp_lock.h has been removed on v3.0 Signed-off-by: Jason Liu <r64343@freescale.com>
2012-01-09ENGR00169891 v4l2 capture: avoid streamon with only one buffer queuedXinyu Chen
If user space only queue one buffer into ready list, and call streamon, camera csi enc ISR will crash. Since for CSI ENC, the ping pong buffer is initilized without checking ready buffer on streamon. The second buffer will be wrongly in cam_data struct, and causes DMA fill buffers into cam_data global variable. Here just add one sanity check for ready buffer. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2012-01-09ENGR00169764 fix linux-2.6.38 kernel build error.Liu Xiaowen
fix linux-2.6.38 kernel build error. Signed-off-by: Liu Xiaowen <b37945@freescale.com>
2012-01-09ENGR00169390 merge ov5642 performance optimization into ics kernel.Liu Xiaowen
merge ov5642 performance optimization into ics kernel. Signed-off-by: Liu Xiaowen <b37945@freescale.com>
2012-01-09ENGR00169387 add user space memory allocation for v4l2.Liu Xiaowen
add user space memory allocation for kernel v4l2 interface in ics. Signed-off-by: Liu Xiaowen <b37945@freescale.com>
2012-01-09ENGR00163699-2 MX6Q: Add OV8820 mipi camera driverEven Xu
This sensor just for MIPI CSI2 4 lanes validation 1. Support 4 lanes 2. Only support 480X480 Resolution 3. Only support RAW output format Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00163497-3 MX6Q: Enable io_init function for camera driversEven Xu
1. Enable io_init function for camera drivers. 2. Add ov5640_mipi camera driver supported resolutions 3. Fine-turn ov5640_mipi camera driver output image quality Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00163247-3 MX6Q: MIPI sensor add prp viewfinder and prp enc supportEven Xu
1. Enable prp viewfinder setting for DPFG 2. Enable prp viewfinder setting for DFBG 3. Enable prp enc setting 4. Add some error massage for calling mipi csi2 driver fail Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00162919 mxc_vout: there is one column garbage line at right for split modeJason Chen
as ipu processing device driver has protect check, the CR ENGR00155141 can be reverted, this CR is the cause of garbage line. this patch also change v4l2 output try_task function to make sure there is no cropping for output when display support window. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162701 mxc_vout: fix potential deadlock of fb_blankJason Chen
add FBINFO_MISC_USEREVENT flag before calling fb_blank Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162666 mxc_vout: v4l2 playback blocking issueJason Chen
1. add pos restore to 0,0 2. adjust code sequnce to avoid lock issue. 3. add on-the-fly S_CTRL support Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162664 mxc_vout: modify pp bypass conditionJason Chen
1. pp bypass's rotate value should be smaller than IPU_ROTATE_HORIZ_FLIP. 2. use del_timer_sync instead of del_timer for SMP. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162360 mxc_vout: fix STREAMOFF and G_CROP issuesJason Chen
1. move videobuf_mmap_free to mxc_vout_release. 2. call videobuf_queue_cancel in mxc_vout_release if no streamon called. 3. correct return value of G_CROP for support_window case. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162218 mxc_vout: put set position function before set varJason Chen
fb set var will check the window position with window size, so the correct way is setting position before fb_set_var. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162206 mxc_vout: resize output crop on-the-flyJason Chen
adding support of set crop during streamon. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00162064 mxc v4l2 output: check ipu task in S_CROP ioctlJason Chen
In mxc_vout, ioctl S_CROP should call before S_FMT, for fist time S_CROP, will not check ipu task, it actually will check in S_FMT, after S_FMT, S_CROP should check ipu task too. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161948 mxc v4l2 output: fix case of input crop with xoffsetJason Chen
run test like: /unit_tests//mxc_v4l2_output.out -iw 1280 -ih 720 -cr 1024 700 40 0 -ow 1024 -oh 700 /unit_tests/720p.yuv Under IPU IC bypass mode, the output color is not correct. And sometimes come out tearing issue. Fix them by modify fb driver adding xpanstep support and set vb->state to DONE after it finish show. When previous videobuf finish show and next videobuf ready to show, set VIDEOBUF_DONE state to avoid tearing issue, which make sure showing buffer will not be dequeue to write new data. It also bring side-effect that the last buffer can not be dequeue correctly, app need take care about it. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161845 mxc v4l2 output: add check of S_CROP width and heightJason Chen
To avoid CROP width=0 or height=0 case. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161607 mxc v4l2 output: return real phys offset after mmapJason Chen
vpu unit test failed because it need phys offset of each buffer allocated by v4l2 output driver. videobuf dma contig method only allocate real dma buffer when user call mmap. Fix this issue by adding code to querybuf ioctl, return real phys after buffer mmaped. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161526 mxc v4l2 output: 720p ic bypass output may failed in blockJason Chen
Repeat play with below cmdline: /unit_tests/mxc_v4l2_output.out -iw 1280 -ih 720 -ow 1280 -oh 720 -fr 10 -l 1 /unit_tests/720p.yuv Found the ipu update offset function cause this issue, it can be work-around by setting it only when value changed. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161447-1 v4l2: fix section missmach warningFrank Li
fix section mismatch warning Signed-off-by: Frank Li <Frank.Li@freescale.com>
2012-01-09ENGR00161382-4 MX6Q MIPI CSI2: enable MIPI CSI2Even Xu
1. enable MIPI CSI2 driver 2. change v4l2 cowork with mipi csi2 3. enable ov5640 mipi mode Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00160878-2 mxc v4l2 output: new mxc v4l2 output driver based on videobufJason Chen
This new v4l2 output driver is based on videobuf, using dma contig alloc method. It creates video dev node for each display framebuffer begin from /dev/video16 by default. If need post-processing, this driver will do it by ipu pp driver which support: - resizing - CSC - rotate - deinterlacing If no need post-processing, the IPU IC will be bypassed as old driver, the buf will be set to fb buffer directly by crack fb smem_start. The user should do setting before streamon like below: 1. set output crop 2. set ctrl like rotate/vflip/hflip/deinterlacing motion 3. set fmt 4. reqbuf The new features compare to old driver: - support multi-instance - support user point buffer - runtime suspend/resume For suspend/resume, still has chance to meet issue on mx6q, will fix later. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00160876 videobuf: add timestamp for user point bufferJason Chen
1. add timestamp for userpoint buffer 2. use pgprot_writecombine for mmap Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00161300 MXC V4L2 capture: fix build warningYuxi
fix build warning: > drivers/media/video/mxc/capture/mxc_v4l2_capture.c:2457: warning: > comparison between pointer and integer Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00160112-4 camera: Add sensor clock setting for MX6Yuxi
When the platform is MX6, set mclk = cko1_clk0 Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00159738 v4l2: correct wrong parameter when V4l2 set window sizeYuxi Sun
Correct wrong parameter when call ipu_csi_set_window_size function Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00158152 v4l2 capture: changes based on ipu changesYuxi Sun
v4l2 capture changes based on ipu change. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00156673-3 ipuv3: move mach related definition to mach dirJason Chen
for driver files. Signed-off-by: Jason Chen <b02280@freescale.com>
2012-01-09ENGR00152845-9 v4l2 output: changes based on ipu changes.Jason Chen
v4l2 output changes based on ipu change. Signed-off-by: Jason Chen <jason.chen@freescale.com>
2012-01-09ENGR00142551-3 MXC V4L2:Change IPU interface for triple bufferLiu Ying
This patch changes IPU interface for MXC V4L2 to align with IPUv3 triple buffer support. When V4L2 is used, we'll change to use double buffer for display channel via internal framebuffer interface. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit db97e4d616f105bec1cfadf33e842fc624ecf0d5)
2012-01-09ENGR00143550 camera: change camera platform data name and remove unused functionYuxi Sun
Change camera platform data name from mxc_camera_platform_data to fsl_mxc_camera_platform_data in accordence with include/linux/fsl_devices.h and remove unused function gpio_sensor_active(),gpio_sensor_inactive(). Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-01-09ENGR00142517-2 camera clk initializationYuxi Sun
Modified camera clk initialization and camera platform data name to coincide with history. Signed-off-by: Sun Yuxi <b36102@freescale.com>
2012-01-09ENGR00141217-5 IPU\VPU\GPU: upgrade to 2.6.38Jason Chen
Add drivers/mxc Add drivers/video/mxc Add drivers/media/mxc fb device: change acquire_console_sem to console_lock And release_console_sem to console_unlock Add DMA Zone support Add TVE driver, add regulator Add hdmi support Add VPU Fix build error ioctl --> unlocked_ioctl DECLARE_MUTEX --> DEFINE_SEMAPHORE Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Richard Zhao <richard.zhao@freescale.com>