Age | Commit message (Collapse) | Author |
|
change clock source to clko_clk from cko1_clk
Signed-off-by: Gary Zhang <b13634@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Modify ov3640 ov5640 ov5642 driver according to sensor data structure
change for dual camera switch
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Add IOCTRL command V4L2_CID_MXC_SWITCH_CAM for multi camera switch
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
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>
|
|
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>
|
|
Add OV5642 csi camera support for i.mx6 sabre-lite board
Signed-off-by: Yi Li <R80015@freescale.com>
|
|
- Add adv7180 driver to ARM2 support
- Add adv7180 configure
- Chenge CSI configure for BT656 support
Signed-off-by: Even Xu <b21019@freescale.com>
|
|
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>
|
|
- 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>
|
|
Change sensor configuration to fix this issue.
Signed-off-by: Even Xu <b21019@freescale.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
since smp_lock.h has been removed on v3.0
Signed-off-by: Jason Liu <r64343@freescale.com>
|
|
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>
|
|
fix linux-2.6.38 kernel build error.
Signed-off-by: Liu Xiaowen <b37945@freescale.com>
|
|
merge ov5642 performance optimization into ics kernel.
Signed-off-by: Liu Xiaowen <b37945@freescale.com>
|
|
add user space memory allocation for kernel v4l2 interface in ics.
Signed-off-by: Liu Xiaowen <b37945@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
add FBINFO_MISC_USEREVENT flag before calling fb_blank
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
adding support of set crop during streamon.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
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>
|
|
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>
|
|
To avoid CROP width=0 or height=0 case.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
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>
|
|
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>
|
|
fix section mismatch warning
Signed-off-by: Frank Li <Frank.Li@freescale.com>
|
|
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>
|
|
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>
|
|
1. add timestamp for userpoint buffer
2. use pgprot_writecombine for mmap
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
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>
|
|
When the platform is MX6, set mclk = cko1_clk0
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
Correct wrong parameter when call ipu_csi_set_window_size function
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
v4l2 capture changes based on ipu change.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
for driver files.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
v4l2 output changes based on ipu change.
Signed-off-by: Jason Chen <jason.chen@freescale.com>
|
|
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)
|
|
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>
|
|
Modified camera clk initialization and camera platform data
name to coincide with history.
Signed-off-by: Sun Yuxi <b36102@freescale.com>
|
|
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>
|