Age | Commit message (Collapse) | Author |
|
return error number when set camera change mode fail, if not the
driver may continue to setup the video processing with wrong parameter.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add V4L2 support -- driver part.
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Add flush_work_sync and cancel_work_sync at the overlay stop to
prevent moving data by DMA even when the space of those data address
is freed.
Signed-off-by: Yuxi Sun <b36102@freescale.com
|
|
Currently, we support 2 cameras, which are relevant to
2 video devices respectively. This patch checks if video
device is opened to determine whether we need to power
down/on relevant camera when doing suspend/resume.
Also, this patch protects capture resources with busy
lock semaphore.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 874198b89a89aa6e792754a0a51c46084ed93d1a)
|
|
Add back ground overlay support based on ipu device driver.
Default using this driver instead of prp_vf driver for back
ground overlay. when want using prp_vf back ground overlay,
unselect ipu deviece overlay drivers and choose to build
related driver as build-in.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Allocate DMA buffer from DMA zone, and the system can configure reserve dma
size through proc fs file under /proc/sys/vm/lowmem_reserve_ratio.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
fix Kconfig waring of defaults for choice values not supported
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add ipu device queue processing for overlay, and make it default.
This will instead prp_viewfinder work flow in the most user case.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
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>
|
|
Add non-interleaved YUV444 pixel format IPU_PIX_FMT_YUV444P support
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
This patch powers down camera after checking camera device
id to save power.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit eb280a7182cd8c71d698b57a720447f9d9b1174a)
|
|
This patch powers down camera after checking camera device
id to save power.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit a73b70b3d425825b4f4ba99c4c38c23bde227a9a)
|
|
msleep() after camera power down should not be called in mxc
v4l2 capture core code. Instead, this should be handled by
camera power down function.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch checks camera device id via i2c bus before register
v4l2 internal device.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch checks camera device id via i2c bus before register
v4l2 internal device.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
When vf_rotation > IPU_ROTATE_VERT_FLIP, canncel the MEM_ROT_VF_MEM
- MEM_FG_SYNC channel link and using IPU_IRQ_PRP_VF_ROT_OUT_EOF irq
to trigger double buffer switch.
When vf_rotation <= IPU_ROTATE_VERT_FLIP,cannel the CSI_PRP_VF_MEM
- MEM_FG_SYNC channel link, and using IPU_IRQ_PRP_VF_OUT_EOF to
trigger double buffer switch.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Get the ipu device which the display frame buffer is on before start
preview, then request the correspondding display channel irq.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add 3 overlay output item for IPU2: DISP4 BG, DISP4 BG - DI1,
DISP4 FG.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Check input params for progressive tiled format to remind the application
input wrong params and make driver more robust.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
adv7180.c code was not working properly in this new release because some
changes done in mxc_v4l_capture.c driver.
Also mostly of the error messages and kernel dump problem which were related
to csi_enc are already fixed on this release.
In order to fix on previous releases csi and ipuv3 fixes
should be applied or back ported.
Signed-off-by: Israel Perez <B37753@freescale.com>
|
|
This patch fix green line issue on captured frames for
720x480p@30 and 720x576p@30 modes by changing register
0x302c's bit[6:5] to 0'11 to enhance output driving
capability to 4x.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
Originally only QSXGA mode use exposure calculation, now we enable
this function on every mode to fix image dark problem.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
This patch corrects ov5640 mipi camera sensor chip name
to distinguish it from ov5640 csi camera.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
For fast mode setting, ov5642_change_mode does not check the fps setting.
New mode in ov5642_change_mode will have to be the same FPS as previous mode.
Only schedule the fast setting if previous fps is same as new one.
Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
|
|
This patch changes output drive capability of ov5642
camera register 0x302c's bit[6:5] to 0'11 to get 4x
drive capability so that green lines cannot be seen
in the captured frames.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit f3e5d9944e989e66167cbbaa4f3433d8a9baf84d)
|
|
set screen black when resizing during video playback.
Fix bug: when video playback, switch to full screen or leave full screen,
sometime it has the colour stripe
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch changes the debug level of a kernel message in
mxc_v4l2_close() from KERN_INFO to KERN_DEBUG to make the
console silent when closing device.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 42bd808baa7c03671665297cd40ae9cce8186d6b)
|
|
Restore framebuffer base address after video playback on IPU BG channel
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
kernel dump when do "modprobe -r mxc_v4l2_capture"
this is caused by unregister wrong v4l2 int device when rmmod
Signed-off-by: Wu Guoxing <b39297@freescale.com>
|
|
Add VDOA tiled field format support for V4L2 output driver
Also add some debug information
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Using small setting when switch from VGA to QVGA to take picture
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Delete VGA_2_VGA workflow and using 15fps VGA setting when set
this mode.
Add XGA@15fps, XGA@30fps setting.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Stop at last frame when video playback on IPU DP-BG channel
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Re-organize v4l2 output driver for tiled format as tiled_bypass_pp mode
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Add XGA@15fps and XGA@30fps setting
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add 1280X720 15fps setting
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
When set_crop/set_ctrl after set_fmt, the display may be crashed due to
input crop parameters may be wrong, especially for tiled NV12 format.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
set the correct csi interface
Signed-off-by: Wu Guoxing <b39297@freescale.com>
|
|
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>
|
|
The sensor configure was not correct. Changed the ov5640 sensor
config to fix the bug.
Signed-off-by: YangYonggang <b31664@freescale.com>
|
|
Add 1ms delay after power up, then initialize the camera sensor
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
If only called mxc_vout_open/mxc_vout_release, fb_smem_len are uninitialized.
When ubuntu start up, print some error messages:
mxc_sdc_fb mxc_sdc_fb.1: Unable to allocate framebuffer memory
mxc_v4l2_output mxc_v4l2_output.0: ERR: fb_set_var.
mxc_sdc_fb mxc_sdc_fb.0: Unable to allocate framebuffer memory
mxc_v4l2_output mxc_v4l2_output.0: ERR: fb_set_var.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
There are no output frame from sensor when set to those two mode at
15fps, so, modify these setting of the two mode.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add 300ms delay after intial setting is download
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|