Hi,
I'm developing an UVC Gadget Device on imx8mp-lpddr4-evk board.
About 6 months ago, I successfully tested the uvc-gadget function according to the instruction in the following link:
At that time, I used kernel-5.10.72 (imx-linux-hardknott)
Now I'm testing the same uvc-gadget function in kernel-6.1.1 (imx-linux-langdale)
Because I'm using 3rd-party device drivers based on the linux-kernel-6.1.
But UVC Gadget function doesn't work properly.
After some further tests, I found that UVC streaming data is randomly broken.
To simplify the case, I tested UVC-Gadget Function using 3 NXP's Demo Images without any changes.
| Demo Image | LF_v5.10.72-2.2.2_image_IMX8MPEVK | LF_v6.1.1_1.0.0_images_IMX8MPEVK |
| | | LF_v6.6.3-1.0.0_images_IMX8MPEVK |
| | | |
| Test | OK | NG |
| | | |
| /sys/class/udc | 38100000.dwc3 | 38100000.usb |
| | | |
| Rx Data in Host PC | FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 60 | 00 00 00 00 00 00 00 00 02 F0 05 00 00 00 00 00 |
| (example) | 00 60 00 00 FF DB 00 43 00 03 02 02 03 02 02 03 | FF D8 FF E0 00 10 4A 46 49 46 00 01 01 01 00 60 |
| | 03 03 03 04 03 03 04 05 08 05 05 04 04 05 0A 07 | 00 60 00 00 FF DB 00 43 00 03 02 02 03 02 02 03 |
| | … | 03 03 03 04 03 03 04 05 08 05 05 04 04 05 0A 07 |
| | | |
| | ( Same data as wallpaper.jpg ) | ( Data Broken in various positions and sizes ) |
Please check this problems and give me any suggestions.
thanks in advance.
Andy Yang