summaryrefslogtreecommitdiff
path: root/drivers/media/video/mxc/capture/mxc_v4l2_capture.h
Commit message (Collapse)AuthorAgeFilesLines
* ENGR00252782 mxc v4l2 capture:Support csi number attributionLiu Ying2013-03-121-0/+1
| | | | | | | | | | | | This patch adds device attribution for video device to show csi number to userspace. The pattern is in "ipux_csix" fashion, which tells which ipu and csi is relevant to a specific video device. In this way, userspace may figure out different cameras even if they have the same type, especially, android may use this to know back/front cameras. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
* ENGR00238237-1 mx6sl: csi/v4l: fix camera picture flickering issueRobby Cai2013-01-061-3/+5
| | | | | | | | | | | | | | | | | | Flickering issue happens when there's no buffer to be processed(e.g., the pace of QBUF is much slower than DQBUF). The cause is the hardware is using double buffering, while the driver has no good protection at above case and thus the CSI will fill the buffer not in the right order. The way to fix is refining the output of the working_q buffer list, that is, if there's no buffer to be processed then output to a dummy buffer. Another important change is to only do DMA reflash operation when SOF is detected in streamon. Remove this operation is CSI interrupt handler because it violates to the SPEC (only do DMA reflash before DMA is enabled but NOT at the time or after DMA's enabled). Signed-off-by: LiGang <b41990@freescale.com> Signed-off-by: Robby Cai <R63905@freescale.com> (cherry picked from commit 0c4584763fa44b01a2f48198fa27c9206a116164)
* ENGR00224912 mxc v4l2 capture:Correct mclk enable/disableLiu Ying2012-10-111-0/+1
| | | | | | | | | | | | 1) Change to enable/disable mclk only in open, release, suspend and resume functions, since we may simply think that sensor or mclk will be used soon after cam->open_count is non-zero. 2) Fix a bug when calling ipu_csi_enable_mclk_if() with wrong parameter(cam->csi should be cam->mclk_source) in mxc_v4l2_close() and in mxc_v4l2_s_ctrl() with V4L2_CID_MXC_SWITCH_CAM control id. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit be689b81ac24c0a4373a989664ec51ad77db0ced)
* ENGR00225981-7 csi: Unify the api set_mclk_rateRobby Cai2012-09-291-6/+0
| | | | | | | | | For CSI on MX6SL, there's only 1 CSI and hence no need to change csi souce. We add this parameter just for compatibility. Adjust the called api in related camera drivers. Signed-off-by: Robby Cai <R63905@freescale.com>
* ENGR00225981-6 csi: Add PxP post-processing for CSCRobby Cai2012-09-291-0/+12
| | | | | | | The default output format from camera is UYVY. For preview purpose, need convert the format to RGB565. Use PxP CSC as post processing. Signed-off-by: Robby Cai <R63905@freescale.com>
* ENGR00219397-1 v4l2 overlay: Add foreground overlay support based on ipu deviceYuxi Sun2012-08-101-0/+1
| | | | | | | | | | | | | | Replace CSI_PRP_VF_MEM channel with CSI_MEM, then using ipu device to do the processing or directly send to framebuffer if no processing need to be perform. Add the foreground overlay driver file name ipu_fg_overlay_sdc.c correspondding to the former ipu_prp_vf_sdc.c Discard the cam->vf_rotation parametter when uing the ipu device for processing in the overlay, share the cam->rotation parametter with pp. Signed-off-by: Yuxi sun <b36102@freescale.com>
* ENGR00209062-2: mx6dq and mx6dl dual camera supportWu Guoxing2012-07-201-0/+8
| | | | | | | | | | | | | | | dual camera support for mx6q and mx6dl: 1. let mipi and parallel camera working on different csi 2. the two camera can work independently and synchronously 3. the two camera will be registered and different video device(/dev/video0, /dev/video1) 4. when both camera are working, the can not use the same ipu channel, that is, when camera one using PRP_ENC_MEM or PRP_VF_MEM channel, the other one can only use CSI_MEM this is the driver part. Signed-off-by: Wu Guoxing <b39297@freescale.com>
* ENGR00173864 MX6Q ipu capture: add multi camera switchYuxi Sun2012-07-201-1/+26
| | | | | | Add IOCTRL command V4L2_CID_MXC_SWITCH_CAM for multi camera switch Signed-off-by: Yuxi Sun <b36102@freescale.com>
* fix build issues: remove the include of smp_lock.hJason Liu2012-07-201-1/+0
| | | | | | since smp_lock.h has been removed on v3.0 Signed-off-by: Jason Liu <r64343@freescale.com>
* ENGR00169387 add user space memory allocation for v4l2.Liu Xiaowen2012-07-201-1/+1
| | | | | | add user space memory allocation for kernel v4l2 interface in ics. Signed-off-by: Liu Xiaowen <b37945@freescale.com>
* ENGR00158152 v4l2 capture: changes based on ipu changesYuxi Sun2012-07-201-1/+3
| | | | | | v4l2 capture changes based on ipu change. Signed-off-by: Yuxi Sun <b36102@freescale.com>
* ENGR00141217-5 IPU\VPU\GPU: upgrade to 2.6.38Jason Chen2012-07-201-0/+207
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>