<?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>topic Re: i.MX6SDL V4L2 driver issue. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6SDL-V4L2-driver-issue/m-p/341055#M46827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satoshi Shimoda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you still have this issue? Would you please provide the source code which can execute your procedures so we can replicate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 21:06:37 GMT</pubDate>
    <dc:creator>gusarambula</dc:creator>
    <dc:date>2015-01-07T21:06:37Z</dc:date>
    <item>
      <title>i.MX6SDL V4L2 driver issue.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6SDL-V4L2-driver-issue/m-p/341054#M46826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem about i.MX6SDL V4L2 driver.&lt;/P&gt;&lt;P&gt;When execute the following procedure, output image is strange on process 8.&lt;/P&gt;&lt;P&gt;(A image which should be located to the left part is displayed to right part)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Procedure]&lt;/P&gt;&lt;P&gt;1. Open driver.&lt;/P&gt;&lt;P&gt;2. Execute *Setting 1.&lt;/P&gt;&lt;P&gt;3. Output image (VIDIOC_STREAMON)&lt;/P&gt;&lt;P&gt;4. Stop output image (VIDIOC_STREAMOFF)&lt;/P&gt;&lt;P&gt;5. Close driver.&lt;/P&gt;&lt;P&gt;6. Open driver.&lt;/P&gt;&lt;P&gt;7. Execute *Setting 2.&lt;/P&gt;&lt;P&gt;8. Output image (VIDIOC_STREAMON)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, if change *Setting 1 to *Setting 3, this issue was not occurred.&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;*Setting 1:&lt;/P&gt;&lt;P&gt;[VIDIOC_S_CROP]&lt;/P&gt;&lt;P&gt;top=24&lt;/P&gt;&lt;P&gt;left=0&lt;/P&gt;&lt;P&gt;width=1024&lt;/P&gt;&lt;P&gt;height=720&lt;/P&gt;&lt;P&gt;[VIDIOC_S_FMT]&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.width=1280&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.height=720&lt;/P&gt;&lt;P&gt;v4l2_rect(4l2_format::fmt.pix.priv)&lt;/P&gt;&lt;P&gt;　.top=0,.left=128,.width=1024, height=720&lt;/P&gt;&lt;P&gt;fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.pixelformat=V4L2_PIX_FMT_NV12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Setting 2:&lt;/P&gt;&lt;P&gt;[VIDIOC_S_CROP]&lt;/P&gt;&lt;P&gt;top=24&lt;/P&gt;&lt;P&gt;left=0&lt;/P&gt;&lt;P&gt;width=1024&lt;/P&gt;&lt;P&gt;height=720&lt;/P&gt;&lt;P&gt;[VIDIOC_S_FMT]&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.width=1280&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.height=720&lt;/P&gt;&lt;P&gt;v4l2_rect(4l2_format::fmt.pix.priv)&lt;/P&gt;&lt;P&gt;　.top=0,.left=0,.width=1024, height=720&lt;/P&gt;&lt;P&gt;fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.pixelformat=V4L2_PIX_FMT_NV12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Setting 3:&lt;/P&gt;&lt;P&gt;[VIDIOC_S_CROP]&lt;/P&gt;&lt;P&gt;top=24&lt;/P&gt;&lt;P&gt;left=0&lt;/P&gt;&lt;P&gt;width=1024&lt;/P&gt;&lt;P&gt;height=720&lt;/P&gt;&lt;P&gt;[VIDIOC_S_FMT]&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.width=1280&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.height=720&lt;/P&gt;&lt;P&gt;v4l2_rect(4l2_format::fmt.pix.priv)&lt;/P&gt;&lt;P&gt;　.top=0,.left=32,.width=960, height=720&lt;/P&gt;&lt;P&gt;fmt.type = V4L2_BUF_TYPE_VIDEO_OUTPUT&lt;/P&gt;&lt;P&gt;fmt.fmt.pix.pixelformat=V4L2_PIX_FMT_NV12&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We investigated the root cause and found a solution, but not resolved completely.&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;[Root Cause]&lt;/P&gt;&lt;P&gt;In show_buf() function (line 535) in drivers/media/video/mxc/output/mxc_vout.c, "var.xoffset" is not updated to "0" when not set "bypass".&lt;/P&gt;&lt;P&gt;And if update "var.xoffset" when set "bypass", it cannot return the value when not set "bypass".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Solution]&lt;/P&gt;&lt;P&gt;Add "var.xoffset = 0" on back line 562.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Remained Issue]&lt;/P&gt;&lt;P&gt;Change the output image form set "bypass" to not set "bypass", the image is output with the var.xoffset value which is the one when set "bypass" about 1 frame.&lt;/P&gt;&lt;P&gt;So the issue I said at first is occurred momentary.&lt;/P&gt;&lt;P&gt;=====&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you give me a advice to resolve this issue completely?&lt;/P&gt;&lt;P&gt;The above procedure or solution was wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Satoshi Shimoda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Nov 2014 11:48:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6SDL-V4L2-driver-issue/m-p/341054#M46826</guid>
      <dc:creator>satoshishimoda</dc:creator>
      <dc:date>2014-11-14T11:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6SDL V4L2 driver issue.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6SDL-V4L2-driver-issue/m-p/341055#M46827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Satoshi Shimoda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you still have this issue? Would you please provide the source code which can execute your procedures so we can replicate it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 21:06:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6SDL-V4L2-driver-issue/m-p/341055#M46827</guid>
      <dc:creator>gusarambula</dc:creator>
      <dc:date>2015-01-07T21:06:37Z</dc:date>
    </item>
  </channel>
</rss>

