Switching the formats in the camera fails to launch streaming in the iMX8Mplus platform

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Switching the formats in the camera fails to launch streaming in the iMX8Mplus platform

3,736 Views
koilarulraj
Contributor III

HI,

We have supported UYVY, SRGB10 formats from the camera and using iMX8MPlus kit for the evaluation.

After booting of the kit, if we first launch either UYVY or SRGB10, the stream works without any issues in the format. But when we try to switch between the format, the stream stops.

We have debugged the camera MIPI signals. It is correctly configuring with the required format and MIPI signal activity is proper in the camera.

But the iMX8Mplus platform not supporting the switching between the different formats. Is there any patches to resolve this issue?

We are using following kernel.
kernel : v6.1.55
Yocto : mickledore

Thanks.

0 Kudos
Reply
27 Replies

2,917 Views
joanxie
NXP TechSupport
NXP TechSupport

how do you switch the streaming and what kind of errors do you get? pls share more detailed information and steps

0 Kudos
Reply

2,492 Views
Olivia
Contributor I
Hi Joanxie,
I am using v4l2-ctl command to switch between the formats, I am able switch between Y8 to Y10 and Y10 to Y8. But I am not able to switch to Y12 from (Y8 and Y10) and vice-versa.

Below command I had used to switch from Y8 to Y10 and Y10 to Y12. After switching to Y12 format I am not getting Frames.

v4l2-ctl --device=/dev/video3 --set-fmt-video=pixelformat=GREY --stream-mmap --stream-count=20 --stream-to=raw_video_output.raw
<<<<<<<<<< 8.16 fps
<<<<<<<< 8.16 fps
<<
root@imx8mp-var-dart:~# v4l2-ctl --device=/dev/video3 --set-fmt-video=pixelformat="Y10 " --stream-mmap --stream-count=20 --stream-to=raw_video_output.raw
<<<<<<<<< 9.39 fps, dropped buffers: 2
<<<<<<< 9.39 fps, dropped buffers: 2
<<<<
root@imx8mp-var-dart:~# v4l2-ctl --device=/dev/video3 --set-fmt-video=pixelformat="Y12 " --stream-mmap --stream-count=20 --stream-to=raw_video_output.raw


0 Kudos
Reply

1,320 Views
joanxie
NXP TechSupport
NXP TechSupport

sorry for my delay, I've taken annual leave recently, I never tested raw12 on imx8mp before, you can check your MIPI_CSIS_ISPCFG_ALIGN_32BIT and MIPI_CSIS_CMN_CTRL_HDR_MODE, besides of these, you also can check pixel mode in your driver, I don't know if your raw12 works or not, if not, you can refer to the link as below, I also suggest that you can add more debug information to check where stuck 

https://community.nxp.com/t5/i-MX-Processors/Confusion-of-MIPI-CSI2-ISI-drivers-for-IMX8MP/td-p/1958...

0 Kudos
Reply

1,124 Views
joanxie
NXP TechSupport
NXP TechSupport

I'm taking my annual leave this week, I will check this when I come back to office, it seems this issue is related to your own code, I need double check it

0 Kudos
Reply

536 Views
Olivia
Contributor I
I will await your response once you return to the office. Please let me know if you need any additional information from my end to help with the review.
0 Kudos
Reply

488 Views
koilarulraj
Contributor III

Hi @joanxie,

Sure, We will wait for your reply.

Please find the missed patch in the previous message. (nxp_imx8mplus_two_format_kernel.patch). Kindly check this and share your suggestion.

 

Thanks.

0 Kudos
Reply

391 Views
koilarulraj
Contributor III

Hi @joanxie,

Any update on the issue?

Thanks.

0 Kudos
Reply