<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293274#M36074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the screen scroll issue, in kernel file "mxc_v4l2_capture.c", you can adjust the active_top value to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static video_fmt_t video_fmts[] = {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {&amp;nbsp;&amp;nbsp; /*! NTSC */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .v4l2_id = V4L2_STD_NTSC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .name = "NTSC",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .raw_width = 720,&amp;nbsp; /* SENS_FRM_WIDTH */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .raw_height = 525,&amp;nbsp; /* SENS_FRM_HEIGHT */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_width = 720,&amp;nbsp; /* ACT_FRM_WIDTH */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_height = 480,&amp;nbsp; /* ACT_FRM_HEIGHT */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_top = 13,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_left = 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Nov 2013 08:21:55 GMT</pubDate>
    <dc:creator>jimmychan</dc:creator>
    <dc:date>2013-11-28T08:21:55Z</dc:date>
    <item>
      <title>i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293273#M36073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My target board with ADV7180 connected to i.MX6 Solo CS0 and BSP is "imx-android-r13.4.1".&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;"imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;If adv7180 report raw size, camera app can't display preview no matter PAL nor NTSC mode and below error message posted on logcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;E/v_hwc&amp;nbsp;&amp;nbsp; ( 2104): Failed in _Blit: status=-20&lt;/P&gt;&lt;P&gt;E/v_hwc&amp;nbsp;&amp;nbsp; ( 2104): Failed in hwcCompose: status=-20&lt;/P&gt;&lt;P&gt;E/v_hwc&amp;nbsp;&amp;nbsp; ( 2104): Failed in hwcSet: status=-20&lt;/P&gt;&lt;P&gt;E/v_hwc&amp;nbsp;&amp;nbsp; ( 2104): hwc_set(233): Failed in set&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Since no Hsync/Vsync connected between CS0 and ADV7180, maybe EAV/SAV incorrect setting for NTSC and cause vertical synchronization error?&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;} else if (width == 720 &amp;amp;&amp;amp; (height == 525 || height == 480)) {&lt;/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;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ipu_csi_write(ipu, csi, 0x40596, CSI_CCIR_CODE_2);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ipu_csi_write(ipu, csi, 0xFF0000, CSI_CCIR_CODE_3);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;} else {&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After study EAV/SAV, the CCIR_CODE seems only reflect the different initial field of PAL and NTSC!?&lt;/P&gt;&lt;P&gt;Trying to make mxc_v4l2_tvin working on my platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can share your experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 08:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293273#M36073</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2013-11-22T08:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293274#M36074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the screen scroll issue, in kernel file "mxc_v4l2_capture.c", you can adjust the active_top value to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static video_fmt_t video_fmts[] = {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {&amp;nbsp;&amp;nbsp; /*! NTSC */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .v4l2_id = V4L2_STD_NTSC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .name = "NTSC",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .raw_width = 720,&amp;nbsp; /* SENS_FRM_WIDTH */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .raw_height = 525,&amp;nbsp; /* SENS_FRM_HEIGHT */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_width = 720,&amp;nbsp; /* ACT_FRM_WIDTH */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_height = 480,&amp;nbsp; /* ACT_FRM_HEIGHT */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_top = 13,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; .active_left = 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 08:21:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293274#M36074</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2013-11-28T08:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293275#M36075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jimmy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your precious info.&lt;/P&gt;&lt;P&gt;But I test with various value and nothing different, even an extreme value, more than 200.&lt;/P&gt;&lt;P&gt;I trace active_top, it only applied on crop window position.&lt;/P&gt;&lt;P&gt;So I think if the main display resolution (480x272) may affect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Oliver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Nov 2013 08:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293275#M36075</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2013-11-29T08:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293276#M36076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are facing exacly the same problem with Android R14-Beta release, but the screen is rolling up for both PAL and NTSC modes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried lots of different configurations at the ADV7180 hard_reset function and it is still not working. I am not sure about the real problem here. It could be a deinterlacing problem and/or a vertical synchronization problem. Anyways, we have been working on this for more than 3 weeks and we have not found a solution yet.&lt;/P&gt;&lt;P&gt;Searching through the community shows that lots of people have similar (sometimes the same) problems and there is no official solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have also tried different EAV/SAV codes at the ipu_capture driver, but nothing seems to solve the problem (some changes make it even worse).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help us on this, please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 18:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293276#M36076</guid>
      <dc:creator>gruger</dc:creator>
      <dc:date>2013-12-12T18:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 Solo with ADV7180 screen scrolling down in NTSC mode</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293277#M36077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally, I find where the problem is and solve this abnormal symptom by myself.&lt;/P&gt;&lt;P&gt;I would like to share my finding to the people who're facing similar issue here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, the crucial point is the value of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;active_top&lt;/SPAN&gt; as Jimmy mentioned, however this value only assigned to cam-&amp;gt;crop_current.top in mxc_v4l2_s_std().&lt;/P&gt;&lt;P&gt;I test ADV7180 functionality by camera.apk in Android r13.4.1, but the CameraHAL layer doesn't call ioctl VIDIOC_G_STD, the initial value of cam-&amp;gt;crop_current.top is 0 and only fit PAL standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I refer to TVINDevice initial procedure in Android JB4.2.2 and call ioctl VIDIOC_G_STD in CameraHAL, now I can get normal display of both PAL and NTSC CVBS input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Dec 2013 06:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-Solo-with-ADV7180-screen-scrolling-down-in-NTSC-mode/m-p/293277#M36077</guid>
      <dc:creator>oliverkuo</dc:creator>
      <dc:date>2013-12-20T06:13:58Z</dc:date>
    </item>
  </channel>
</rss>

