You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the Unknown pixelformat 0x2058554d error and resulting trace (below) seems to be caused by an endianness problem. 0x20 = " " 0x58 = "X" 0x55 ="U" 0x4d = "M"
I think the relevant part in the patch is this:
+/* definition for MUX format /
+#ifndef V4L2_PIX_FMT_MUX
+#define V4L2_PIX_FMT_MUX v4l2_fourcc('M', 'U', 'X', ' ') / MUX stream */
+#endif
+
I believe changing to v4l2_fourcc('M', 'U', 'X', ' ') to v4l2_fourcc_be('M', 'U', 'X', ' ') will solve it
(look at Linux/include/uapi/linux/videodev2.h ~ line 80 to see the def)
the Unknown pixelformat 0x2058554d error and resulting trace (below) seems to be caused by an endianness problem. 0x20 = " " 0x58 = "X" 0x55 ="U" 0x4d = "M"
I think the relevant part in the patch is this:
+/* definition for MUX format /
+#ifndef V4L2_PIX_FMT_MUX
+#define V4L2_PIX_FMT_MUX v4l2_fourcc('M', 'U', 'X', ' ') / MUX stream */
+#endif
+
I believe changing to
v4l2_fourcc('M', 'U', 'X', ' ')
tov4l2_fourcc_be('M', 'U', 'X', ' ')
will solve it(look at Linux/include/uapi/linux/videodev2.h ~ line 80 to see the def)
92.670342] ------------[ cut here ]------------ [ 92.670408] WARNING: CPU: 0 PID: 1996 at drivers/media/v4l2-core/v4l2-ioctl.c:1272 v4l_enum_fmt+0x10e0/0x1474() [ 92.670417] Unknown pixelformat 0x2058554d [ 92.670424] Modules linked in: snd_usb_audio snd_hwdep snd_usbmidi_lib snd_rawmidi snd_seq_device uvcvideo(O) videobuf2_vmalloc videobuf2_mem ops videobuf2_v4l2 videobuf2_core snd_soc_hdmi_codec spidev snd_soc_simple_card omap_aes_driver omap_sham omap_rng rng_core tilcdc snd_soc_davin ci_mcasp snd_soc_edma snd_soc_omap snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd spi_omap2_mcspi soundcore evdev tda998x uio_pdrv_genirq uio 8021q garp mrp stp llc usb_f_acm u_serial usb_f_rndis u_ether bnep libcomposite bluetooth rfkill dummy [ 92.670577] CPU: 0 PID: 1996 Comm: v4l2-ctl Tainted: G O 4.4.30-ti-r65 #1 [ 92.670584] Hardware name: Generic AM33XX (Flattened Device Tree) [ 92.670625] [<c001acb8>] (unwind_backtrace) from [<c0015a14>] (show_stack+0x20/0x24) [ 92.670651] [<c0015a14>] (show_stack) from [<c05b9ab8>] (dump_stack+0x9c/0xb0) [ 92.670672] [<c05b9ab8>] (dump_stack) from [<c0042e24>] (warn_slowpath_common+0x98/0xc8) [ 92.670686] [<c0042e24>] (warn_slowpath_common) from [<c0042ea4>] (warn_slowpath_fmt+0x50/0x6c) [ 92.670701] [<c0042ea4>] (warn_slowpath_fmt) from [<c08334f8>] (v4l_enum_fmt+0x10e0/0x1474) [ 92.670718] [<c08334f8>] (v4l_enum_fmt) from [<c0834254>] (__video_do_ioctl+0x2c4/0x33c) [ 92.670731] [<c0834254>] (__video_do_ioctl) from [<c0833a34>] (video_usercopy+0x1a8/0x6e0) [ 92.670744] [<c0833a34>] (video_usercopy) from [<c0833f8c>] (video_ioctl2+0x20/0x24) [ 92.670758] [<c0833f8c>] (video_ioctl2) from [<c082e91c>] (v4l2_ioctl+0xb8/0xe8) [ 92.670777] [<c082e91c>] (v4l2_ioctl) from [<c01d6544>] (do_vfs_ioctl+0x4dc/0x714) [ 92.670792] [<c01d6544>] (do_vfs_ioctl) from [<c01d67f8>] (SyS_ioctl+0x7c/0x8c) [ 92.670812] [<c01d67f8>] (SyS_ioctl) from [<c0010e60>] (ret_fast_syscall+0x0/0x44) [ 92.670822] ---[ end trace b1958b0870bd25c2 ]---
The text was updated successfully, but these errors were encountered: