Re: imx6: Cannot register mem2mem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 4/6/20 11:39 AM, Fabio Estevam wrote:
Hi Steve,

On Mon, Apr 6, 2020 at 2:46 PM Fabio Estevam <festevam@xxxxxxxxx> wrote:

   &mipi_csi {
-       status = "okay";
+       status = "disabled";
I tried this suggestion and then mem2mem is successfully probed.
Ok, so now I connected the ov5640 module as per your suggestion and
this is what I get with a clean 5.6.2:

[    6.618296] imx-media: ov5640 1-003c:0 -> imx6-mipi-csi2:0
[    6.644522] imx-media: Registered ipu_ic_pp csc/scaler as /dev/video8

This shows that imx-media completed probe (v4l2 core called its probe complete callback).


However,  the v4l2video8convert Gstreamer element is not detected:

# gst-inspect-1.0 | grep convert
video4linux2:  v4l2convert: V4L2 Video Converter
audioconvert:  audioconvert: Audio converter

If I do the kernel hack I mentioned previously then I can get v4l2video8convert:

--- a/drivers/media/v4l2-core/v4l2-async.c
+++ b/drivers/media/v4l2-core/v4l2-async.c
@@ -213,10 +213,6 @@ v4l2_async_notifier_try_complete(struct
v4l2_async_notifier *notifier)
         if (!notifier->v4l2_dev)
                 return 0;

-       /* Is everything ready? */
-       if (!v4l2_async_notifier_can_complete(notifier))
-               return 0;
-
         return v4l2_async_notifier_call_complete(notifier);

That's very odd, because v4l2_async_notifier_call_complete() was definitely called on the imx-media root notifier from above.

Is there is another v4l2 driver that is not completing?

Steve

  }

# gst-inspect-1.0 | grep convert
video4linux2:  v4l2video11convert: V4L2 Video Converter
video4linux2:  v4l2video10convert: V4L2 Video Converter
video4linux2:  v4l2video9convert: V4L2 Video Converter
video4linux2:  v4l2convert: V4L2 Video Converter
audioconvert:  audioconvert: Audio converter

What am I missing in order to get the v4l2videoXconvert Gstreamer
element without hacking the kernel?

Thanks




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux