<?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：two camera work at the same time</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292025#M35606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;This is caused because V4L2 driver is trying to access twice the same resource (the background framebuffer) and it causes conflict.&lt;/P&gt;&lt;P&gt;To handle multiple videos in the same framebuffer, I would recommend to use gstreamer. Please, see the chapter "Video Composition" in the document "i.MX_Linux_User's_Guide.pdf" - This document is available in the linux documentation package:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product" title="https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageTyp…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rogerio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jul 2017 17:53:10 GMT</pubDate>
    <dc:creator>rogerio_silva</dc:creator>
    <dc:date>2017-07-20T17:53:10Z</dc:date>
    <item>
      <title>i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291991#M35572</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;I am using i.mx6q SD board to get two camera(ov5640 and ov3640) work at the same time.&lt;/P&gt;&lt;P&gt;It is no need to display the image on display, i just want to get the camera datas in memory and &lt;/P&gt;&lt;P&gt;save them to local files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To confirm is it support two camera at the same time, I do the follow things:&lt;/P&gt;&lt;P&gt;1. Put the OV5640 camera image on display with mxc_v4l2_overlay.&lt;/P&gt;&lt;P&gt;2. then capture the OV3640 data to local file with use mxc_vpu_test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i got following error when i do second step:&lt;/P&gt;&lt;P&gt;imx-ipuv3.0: handler already installed on irq 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i checked the drivers,and found that there is only CSI_MEM(which is CSI_MEM0),&lt;/P&gt;&lt;P&gt;I think that if want use two cameras at the same time,&lt;/P&gt;&lt;P&gt;It is need to add a CSI_MEM1&amp;nbsp; to let second camera data use CSI_MEM1 channel to memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i right? and is there any ideas to save two camera data to memory at same time?&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, 13 Jun 2013 10:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291991#M35572</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-06-13T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291992#M35573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, the system can not handle two captures and two video sinks simultaneously. But in your case is different, you want to just capture + [encode] + save, right? before digging into the code, try to use GStreamer, which can be seen as a wrapper to codecs. Try these pipelines :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;gst-launch mfw_v4lsrc device="/dev/video0" ! filesink location=camera0.yuv &amp;amp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;gst-launch mfw_v4lsrc device="/dev/video1" ! &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;filesink location=camera1.yuv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;In case you need to stored encoded data, just add vpuenc between the src and the sink. BTW, b&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;efore running these, make sure you have the devices nodes (/dev/video[0|1]) and the modules loaded (modprobe ...). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Leo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 15:35:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291992#M35573</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-06-13T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291993#M35574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the way you said. But the error is the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx-ipuv3 imx-ipuv3.0: handler already installed on irq 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error registering rot irq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that BSP only support the CSI_MEM0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I added a driver use CSI_MEM1, and it is worked now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another question,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to get following worked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can gst-launch do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &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>Fri, 14 Jun 2013 03:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291993#M35574</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-06-14T03:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291994#M35575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;gst-launch videotestsrc ! tee name=t ! queue ! vpuenc codec=avc ! filesink location=file.h264 t. ! queue ! vpuenc codec=mjpg ! filesink location=file.mjpg&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:29:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291994#M35575</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-06-14T15:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291995#M35576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Gao,&lt;/P&gt;&lt;P&gt;Would you mind sharing the vendor or source of your camera module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 04:14:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291995#M35576</guid>
      <dc:creator>linuslin</dc:creator>
      <dc:date>2013-08-07T04:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291996#M35577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a Sabre SDP board and i want to use both cameras at the same time and i realized that you were able to make them work and i wonder if you could guide me a little bit through the steps you followed to have the 2 cameras working at the same time.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 14:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291996#M35577</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2013-08-28T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291997#M35578</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;You just need to copy the "drivers/media/video/mxc/capture/ipu_csi_enc.c", name it to ipu_csi_enc1.c.&lt;/P&gt;&lt;P&gt;And modify the ipu_csi_enc.c 's csi to use csi0,&lt;/P&gt;&lt;P&gt;modify the ipu_csi_enc1.c 's csi to use csi1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And add some processes of ipu_csi_enc1.c and Makefile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In tha application, you can use ioctl "VIDIOC_S_INPUT" with 1 &amp;amp; 2 to control which camera you use.&lt;/P&gt;&lt;P&gt;I attached the file i modified, you can referenc them.&lt;/P&gt;&lt;P&gt;It may be not all the files needs to modify, i 'm not sure whi !ch file i modified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 01:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291997#M35578</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-08-29T01:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291998#M35579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i attach the source code to you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Aug 2013 01:41:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291998#M35579</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-08-29T01:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291999#M35580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gao,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now able to use both cameras (i modified the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt; ipu_csi_enc.c&lt;/SPAN&gt;&lt;SPAN&gt; so the driver uses a different DMA channel for each camera) but when i'm displaying both channels one of them has some interference. I would like to compare what i'm doing with what you did. I don't know if you can attach source code here but if not my email is &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:edison.fernandez@ridgerun.com"&gt;edison.fernandez@ridgerun.com&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Edison &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Aug 2013 23:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/291999#M35580</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2013-08-30T23:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292000#M35581</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;I'm able to enable both cameras at the same time by using the following patch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Index: kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/ipu_csi_enc.c&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;--- kernel.orig/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/ipu_csi_enc.c 2013-10-07 14:42:58.927083104 -0600&lt;/P&gt;
&lt;P&gt;+++ kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/ipu_csi_enc.c 2013-10-07 14:44:19.031082649 -0600&lt;/P&gt;
&lt;P&gt;@@ -56,6 +56,24 @@&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*!&lt;/P&gt;
&lt;P&gt;+ * Get CSI dma channel&lt;/P&gt;
&lt;P&gt;+ * @param csi&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; csi number&lt;/P&gt;
&lt;P&gt;+ *&lt;/P&gt;
&lt;P&gt;+ * @return&amp;nbsp; DMA channel&lt;/P&gt;
&lt;P&gt;+ */&lt;/P&gt;
&lt;P&gt;+static ipu_channel_t csi_get_dma_channel(int csi)&lt;/P&gt;
&lt;P&gt;+{&lt;/P&gt;
&lt;P&gt;+ switch(csi){&lt;/P&gt;
&lt;P&gt;+ case 0:&lt;/P&gt;
&lt;P&gt;+ return CSI_MEM0;&lt;/P&gt;
&lt;P&gt;+ case 1:&lt;/P&gt;
&lt;P&gt;+ return CSI_MEM1;&lt;/P&gt;
&lt;P&gt;+ default:&lt;/P&gt;
&lt;P&gt;+ return CSI_MEM0;&lt;/P&gt;
&lt;P&gt;+ }&lt;/P&gt;
&lt;P&gt;+}&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;+/*!&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * CSI ENC enable channel setup function&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * @param cam&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct cam_data * mxc capture instance&lt;/P&gt;
&lt;P&gt;@@ -74,6 +92,8 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int csi_id;&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;+ uint32_t chan = csi_get_dma_channel(cam-&amp;gt;csi);&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CAMERA_TRACE("In csi_enc_setup\n");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (!cam) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printk(KERN_ERR "cam private is NULL\n");&lt;/P&gt;
&lt;P&gt;@@ -162,13 +182,13 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- err = ipu_init_channel(cam-&amp;gt;ipu, CSI_MEM, &amp;amp;params);&lt;/P&gt;
&lt;P&gt;+ err = ipu_init_channel(cam-&amp;gt;ipu, chan, &amp;amp;params);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (err != 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printk(KERN_ERR "ipu_init_channel %d\n", err);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return err;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- err = ipu_init_channel_buffer(cam-&amp;gt;ipu, CSI_MEM, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;+ err = ipu_init_channel_buffer(cam-&amp;gt;ipu, chan, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pixel_fmt, cam-&amp;gt;v2f.fmt.pix.width,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cam-&amp;gt;v2f.fmt.pix.height,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cam-&amp;gt;v2f.fmt.pix.bytesperline,&lt;/P&gt;
&lt;P&gt;@@ -180,7 +200,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printk(KERN_ERR "CSI_MEM output buffer\n");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return err;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;- err = ipu_enable_channel(cam-&amp;gt;ipu, CSI_MEM);&lt;/P&gt;
&lt;P&gt;+ err = ipu_enable_channel(cam-&amp;gt;ipu, chan);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (err &amp;lt; 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printk(KERN_ERR "ipu_enable_channel CSI_MEM\n");&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return err;&lt;/P&gt;
&lt;P&gt;@@ -197,18 +217,20 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * @return&amp;nbsp; status&lt;/P&gt;
&lt;P&gt;&amp;nbsp; */&lt;/P&gt;
&lt;P&gt;-static int csi_enc_eba_update(struct ipu_soc *ipu, dma_addr_t eba, int *buffer_num)&lt;/P&gt;
&lt;P&gt;+static int csi_enc_eba_update(unsigned int csi, struct ipu_soc *ipu, dma_addr_t eba, int *buffer_num)&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int err = 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;+ uint32_t chan = csi_get_dma_channel(csi);&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pr_debug("eba %x\n", eba);&lt;/P&gt;
&lt;P&gt;- err = ipu_update_channel_buffer(ipu, CSI_MEM, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;+ err = ipu_update_channel_buffer(ipu, chan, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *buffer_num, eba);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (err != 0) {&lt;/P&gt;
&lt;P&gt;- ipu_clear_buffer_ready(ipu, CSI_MEM, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;+ ipu_clear_buffer_ready(ipu, chan, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *buffer_num);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- err = ipu_update_channel_buffer(ipu, CSI_MEM, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;+ err = ipu_update_channel_buffer(ipu, chan, IPU_OUTPUT_BUFFER,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *buffer_num, eba);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (err != 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; pr_err("ERROR: v4l2 capture: fail to update "&lt;/P&gt;
&lt;P&gt;@@ -217,7 +239,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- ipu_select_buffer(ipu, CSI_MEM, IPU_OUTPUT_BUFFER, *buffer_num);&lt;/P&gt;
&lt;P&gt;+ ipu_select_buffer(ipu, chan, IPU_OUTPUT_BUFFER, *buffer_num);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; *buffer_num = (*buffer_num == 0) ? 1 : 0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@@ -234,6 +256,7 @@&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cam_data *cam = (cam_data *) private;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int err = 0;&lt;/P&gt;
&lt;P&gt;+ uint32_t irq;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CAMERA_TRACE("IPU:In csi_enc_enabling_tasks\n");&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cam-&amp;gt;dummy_frame.vaddress = dma_alloc_coherent(0,&lt;/P&gt;
&lt;P&gt;@@ -250,8 +273,10 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PAGE_ALIGN(cam-&amp;gt;v2f.fmt.pix.sizeimage);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cam-&amp;gt;dummy_frame.buffer.m.offset = cam-&amp;gt;dummy_frame.paddress;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- ipu_clear_irq(cam-&amp;gt;ipu, IPU_IRQ_CSI0_OUT_EOF);&lt;/P&gt;
&lt;P&gt;- err = ipu_request_irq(cam-&amp;gt;ipu, IPU_IRQ_CSI0_OUT_EOF,&lt;/P&gt;
&lt;P&gt;+ irq = IPU_IRQ_CSI0_OUT_EOF + cam-&amp;gt;csi;&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;+ ipu_clear_irq(cam-&amp;gt;ipu, irq);&lt;/P&gt;
&lt;P&gt;+ err = ipu_request_irq(cam-&amp;gt;ipu, irq,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; csi_enc_callback, 0, "Mxc Camera", cam);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (err != 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; printk(KERN_ERR "Error registering rot irq\n");&lt;/P&gt;
&lt;P&gt;@@ -283,9 +308,11 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int csi_id;&lt;/P&gt;
&lt;P&gt;#endif&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- err = ipu_disable_channel(cam-&amp;gt;ipu, CSI_MEM, true);&lt;/P&gt;
&lt;P&gt;+ uint32_t chan = csi_get_dma_channel(cam-&amp;gt;csi);&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;+ err = ipu_disable_channel(cam-&amp;gt;ipu, chan, true);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- ipu_uninit_channel(cam-&amp;gt;ipu, CSI_MEM);&lt;/P&gt;
&lt;P&gt;+ ipu_uninit_channel(cam-&amp;gt;ipu, chan);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (cam-&amp;gt;dummy_frame.vaddress != 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; dma_free_coherent(0, cam-&amp;gt;dummy_frame.buffer.length,&lt;/P&gt;
&lt;P&gt;@@ -341,7 +368,8 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; /* free csi eof irq firstly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * when disable csi, wait for idmac eof.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; * it requests eof irq again */&lt;/P&gt;
&lt;P&gt;- ipu_free_irq(cam-&amp;gt;ipu, IPU_IRQ_CSI0_OUT_EOF, cam);&lt;/P&gt;
&lt;P&gt;+&lt;/P&gt;
&lt;P&gt;+ ipu_free_irq(cam-&amp;gt;ipu, IPU_IRQ_CSI0_OUT_EOF + cam-&amp;gt;csi, cam);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; return ipu_disable_csi(cam-&amp;gt;ipu, cam-&amp;gt;csi);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Index: kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.c&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;--- kernel.orig/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.c 2013-10-07 14:42:58.939083104 -0600&lt;/P&gt;
&lt;P&gt;+++ kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.c 2013-10-07 14:43:15.471083010 -0600&lt;/P&gt;
&lt;P&gt;@@ -429,7 +429,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_del(cam-&amp;gt;ready_q.next);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_add_tail(&amp;amp;frame-&amp;gt;queue, &amp;amp;cam-&amp;gt;working_q);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; frame-&amp;gt;ipu_buf_num = cam-&amp;gt;ping_pong_csi;&lt;/P&gt;
&lt;P&gt;- err = cam-&amp;gt;enc_update_eba(cam-&amp;gt;ipu, frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;+ err = cam-&amp;gt;enc_update_eba(cam-&amp;gt; csi, cam-&amp;gt;ipu, frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;amp;cam-&amp;gt;ping_pong_csi);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; frame =&lt;/P&gt;
&lt;P&gt;@@ -437,7 +437,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_del(cam-&amp;gt;ready_q.next);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_add_tail(&amp;amp;frame-&amp;gt;queue, &amp;amp;cam-&amp;gt;working_q);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; frame-&amp;gt;ipu_buf_num = cam-&amp;gt;ping_pong_csi;&lt;/P&gt;
&lt;P&gt;- err |= cam-&amp;gt;enc_update_eba(cam-&amp;gt;ipu, frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;+ err |= cam-&amp;gt;enc_update_eba(cam-&amp;gt; csi, cam-&amp;gt;ipu, frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;cam-&amp;gt;ping_pong_csi);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; spin_unlock_irqrestore(&amp;amp;cam-&amp;gt;queue_int_lock, lock_flags);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;@@ -2615,7 +2615,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; struct mxc_v4l_frame,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; queue);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (cam-&amp;gt;enc_update_eba)&lt;/P&gt;
&lt;P&gt;- if (cam-&amp;gt;enc_update_eba(cam-&amp;gt;ipu, ready_frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;+ if (cam-&amp;gt;enc_update_eba(cam-&amp;gt;csi, cam-&amp;gt;ipu, ready_frame-&amp;gt;buffer.m.offset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;amp;cam-&amp;gt;ping_pong_csi) == 0) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_del(cam-&amp;gt;ready_q.next);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; list_add_tail(&amp;amp;ready_frame-&amp;gt;queue,&lt;/P&gt;
&lt;P&gt;@@ -2625,7 +2625,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (cam-&amp;gt;enc_update_eba)&lt;/P&gt;
&lt;P&gt;&amp;nbsp; cam-&amp;gt;enc_update_eba(&lt;/P&gt;
&lt;P&gt;- cam-&amp;gt;ipu, cam-&amp;gt;dummy_frame.buffer.m.offset,&lt;/P&gt;
&lt;P&gt;+ cam-&amp;gt;csi, cam-&amp;gt;ipu, cam-&amp;gt;dummy_frame.buffer.m.offset,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;amp;cam-&amp;gt;ping_pong_csi);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Index: kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.h&lt;/P&gt;
&lt;P&gt;===================================================================&lt;/P&gt;
&lt;P&gt;--- kernel.orig/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.h 2013-10-07 14:42:58.963083104 -0600&lt;/P&gt;
&lt;P&gt;+++ kernel/linux-3.0.35-4.0.0/drivers/media/video/mxc/capture/mxc_v4l2_capture.h 2013-10-07 14:43:15.471083010 -0600&lt;/P&gt;
&lt;P&gt;@@ -178,7 +178,7 @@&lt;/P&gt;
&lt;P&gt;&amp;nbsp; struct v4l2_rect crop_defrect;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; struct v4l2_rect crop_current;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;- int (*enc_update_eba) (struct ipu_soc *ipu, dma_addr_t eba, int *bufferNum);&lt;/P&gt;
&lt;P&gt;+ int (*enc_update_eba) (unsigned int csi, struct ipu_soc *ipu, dma_addr_t eba, int *bufferNum);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int (*enc_enable) (void *private);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int (*enc_disable) (void *private);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; int (*enc_enable_csi) (void *private);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;


&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i'm displaying at 480p i get some interference in both channels:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="480p.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40946iE533AAEF612D4645/image-size/large?v=v2&amp;amp;px=999" role="button" title="480p.JPG.jpg" alt="480p.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output looks better when using a 720p resolution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="720p.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40947i870BBD0C06787759/image-size/large?v=v2&amp;amp;px=999" role="button" title="720p.JPG.jpg" alt="720p.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using kernel 3.0.35-4.0.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 21:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292000#M35581</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2013-10-07T21:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292001#M35582</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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it an analog reason.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 00:52:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292001#M35582</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-10-08T00:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292002#M35583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/GaoJianzhong"&gt;GaoJianzhong&lt;/A&gt; please mark this thread as unanswered. &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/karinavalencia"&gt;karinavalencia&lt;/A&gt; we need to escalate this issue, several customer are asking for a fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 15:13:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292002#M35583</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2013-10-08T15:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292003#M35584</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;I can't access the url by &lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="203545" data-objecttype="3" href="https://community.nxp.com/people/KarinaValenciaAguilar"&gt;Karina Valencia Aguilar&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="1008" data-containertype="600" data-objectid="313747" data-objecttype="1" href="https://community.nxp.com/thread/313747?prevContainerType=14&amp;amp;prevContainerID=2004"&gt;https://community.freescale.com/thread/313747?prevContainerType=14&amp;amp;prevContainerID=2004&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 00:00:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292003#M35584</guid>
      <dc:creator>GaoJianzhong</dc:creator>
      <dc:date>2013-10-09T00:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292004#M35585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As soon as&amp;nbsp; we have an update engineer will&amp;nbsp;&amp;nbsp; post the&amp;nbsp; comments here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 13:37:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292004#M35585</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2013-10-09T13:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292005#M35586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Hi edison.fernandez,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;I was able to get the OV5640 MIPI and OV7725 working individually on our custom i.Mx6Q board. But the problem is, both a camera not working at the same time on different display (LCD and HDMI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;I got some IPU related issues.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;At that time I tried your patch. But I got some other issue like, &lt;STRONG&gt;imx-ipuv3 imx-ipuv3.0: handler already installed on irq 0&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;What can i do further ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;J.P.Raja&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 11:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292005#M35586</guid>
      <dc:creator>Raana</dc:creator>
      <dc:date>2013-10-11T11:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292006#M35587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you see at the ipu_csi_enc.c you'll see that for both cameras the driver is using the same irq and DMA channel and for that reason it is complaining when you try to use both cameras at the same time. What i did is assign the irq and channel depending on the camera so you don't have a resource conflict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take a look at the patch a posted above. It is for kernel version 3.0.35-4.0.0, if you are using a different version then you'll need to modify it but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292006#M35587</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2013-10-11T14:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292007#M35588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Unfortunately with current drivers it's not possible to process on ipu 2 signals coming from 2 different CSIs (although the processor is capable to do it).&lt;/P&gt;&lt;P&gt;You can use at the same time 2 mxc_v4l2_capture.out instances to caputure. One using csi-&amp;gt;prp_enc-&amp;gt;mem and other using csi-&amp;gt;mem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./mxc_v4l2_capture.out -i 1 -d /dev/video1 test.aaa &amp;amp; ./mxc_v4l2_capture.out -d /dev/video0 test.bbb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you will record the 2 video files at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Rogerio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 18:34:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292007#M35588</guid>
      <dc:creator>rogerio_silva</dc:creator>
      <dc:date>2013-10-17T18:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292008#M35589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rogerio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this thread is closed but i'm still having the same results even with your recommendation. I used gstreamer to capture video from both cameras at the same time (using a Sabre-SDP), thhis is the pipeline i used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gst-launch -e mfw_v4lsrc input=0 ! 'video/x-raw-yuv,width=176,height=144' ! vpuenc codec=6 ! matroskamux ! filesink location=test0.mkv mfw_v4lsrc device=/dev/video1 input=1 ! vpuenc codec=6 ! matroskamux ! filesink location=test1.mkv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the attached videos, test0.mkv has an annoying interference.&amp;nbsp; This is exactly the same results i get by using the patch i mentioned previously. Is this an analog issue or is a conflict with DMA channels?. I don't think it has to be with the memory because with the method that you suggested both cameras are using totally different channels and by applying the patch the DMA channel is assigned depending on the CSI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice wold be appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292008#M35589</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2013-10-21T18:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292009#M35590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rogeriopimentel"&gt;rogeriopimentel&lt;/A&gt; can you continue with the&amp;nbsp; follow up on this case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292009#M35590</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2013-10-21T18:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: i.mx6：two camera work at the same time</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292010#M35591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I experienced same issue with my board after modifying the driver as per similar thread below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/313467"&gt;OV5640 and OV5642 cameras on iMX6&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have now upgraded my sources to &lt;SPAN class="sizeText"&gt;L3.0.35_4.1.0, which is the latest kernel and drivers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="sizeText"&gt;Clearly Freescale has added more changes to the drivers. Unfortunately ipu_csi_enc.c (driver) is now worse off.&lt;/SPAN&gt;&lt;/P&gt;&lt;ADDRESS&gt;&lt;SPAN class="sizeText"&gt;gestreamer seems to use this driver (the way I use it)&amp;nbsp; to capture video from the cameras and before modifying it I could capture with the previous release &lt;SPAN class="sizeText"&gt;L3.0.35_4.0.0 with one camera at the time. In current release once one capture is enabled the next time I try to capture I get te irq error mentioned here even if I stop the previous capture session. Clearly some sort of regression.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;SPAN class="sizeText"&gt;&lt;SPAN class="sizeText"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;However, when the capture software uses ipu_prp_enc.c driver, the behaviour is OK. Both cameras can be used but not at the same time of course. It seems that the only way we can get 2 cameras at the same time without having to modified the release software is by using &lt;SPAN class="sizeText"&gt;ipu_csi_enc.c (driver) for one camera and&amp;nbsp; i&lt;/SPAN&gt;pu_prp_enc.c (driver) for the other. Is there a way to do this with gstreamer?&lt;/ADDRESS&gt;&lt;ADDRESS&gt;&lt;/ADDRESS&gt;&lt;ADDRESS&gt;I have not managed to get the cameras to work yet with the latest kernel, but the display artifacts when 2 camera are used are an issue. I found that if I swap the two cameras around the artifacts are less prominent. Is the fact that on the SabreSD board there is a MIPI and a CSI camera used which do not have the same interface that causes the artifacts? &lt;/ADDRESS&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 20:06:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-mx6-two-camera-work-at-the-same-time/m-p/292010#M35591</guid>
      <dc:creator>makislivadas</dc:creator>
      <dc:date>2013-10-21T20:06:42Z</dc:date>
    </item>
  </channel>
</rss>

