My target board with ADV7180 connected to i.MX6 Solo CS0 and BSP is "imx-android-r13.4.1".
I test ADV7180 video in with camera app, PAL mode is good but under NTSC mode, display keep scrolling down and below message posted on the console.
|"imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001"|
I enabled ioctl_enum_framesizes in adv7180.c and CameraHal get preview size through VIDIOC_ENUM_FRAMESIZES and VIDIOC_G_FMT, but adv7180.c return different size and cause buffer allocated failed.
Active size will be returned for VIDIOC_ENUM_FRAMESIZES and raw size returned for VIDIOC_G_FMT, I'm curiously the occasion of using raw or active size?
If adv7180 driver report active size all the time, camera app can display preview properly when PAL mode, but display keep scrolling down under NTSC mode.
If adv7180 report raw size, camera app can't display preview no matter PAL nor NTSC mode and below error message posted on logcat.
E/v_hwc ( 2104): Failed in _Blit: status=-20
E/v_hwc ( 2104): Failed in hwcCompose: status=-20
E/v_hwc ( 2104): Failed in hwcSet: status=-20
E/v_hwc ( 2104): hwc_set(233): Failed in set
I think active size should be applied but I can't figure out why screen keep scrolling down at NTSC mode, please share your experience.
Since no Hsync/Vsync connected between CS0 and ADV7180, maybe EAV/SAV incorrect setting for NTSC and cause vertical synchronization error?
After study EAV/SAV, the CCIR_CODE seems only reflect the different initial field of PAL and NTSC!?
Trying to make mxc_v4l2_tvin working on my platform.
Anyone can share your experience.