#1011938 linux-image-4.19.0-5-amd64: USB Camera seen as multiple devices

#1011938#5
Date:
2019-06-21 14:07:25 UTC
From:
To:
Dear Maintainer,

Under Debian 10 rc1, when I plug in my USB camera (the very common logitech
c930e), 2 devices are added (e.g. /dev/video0 and /dev/video1).

v4l-info works on /dev/video0, but fails on /dev/video1
(VIDIOC_G_FMT(VIDEO_CAPTURE): Invalid argument). When I try to access the
device using gstreamer it tells me that /dev/video1 is not a capture device.

In stretch I don't see this behavior.

Attached are syslog, dmesg, v4l-info for both devices, udevadm for both
devices, lsusb, lspci.

Let me know if any other logs can be of help.

#1011938#10
Date:
2019-06-22 00:30:21 UTC
From:
To:
This is the feature added in commit 088ead25524583e2200aa99111bea2f66a86545a.

    media: uvcvideo: Add a metadata device node

    Some UVC video cameras contain metadata in their payload headers. This
    patch extracts that data, adding more clock synchronisation information,
    on both bulk and isochronous endpoints and makes it available to the user
    space on a separate video node, using the V4L2_CAP_META_CAPTURE capability
    and the V4L2_BUF_TYPE_META_CAPTURE buffer queue type. By default, only the
    V4L2_META_FMT_UVC pixel format is available from those nodes. However,
    cameras can be added to the device ID table to additionally specify their
    own metadata format, in which case that format will also become available
    from the metadata node.

Guennadi, sorry but this feels more like a bug than a feature to me, and at
least three other people have reported it as a bug without working out the cause.

* https://bugs.debian.org/930860
* https://bugzilla.kernel.org/show_bug.cgi?id=199193
* https://bugzilla.kernel.org/show_bug.cgi?id=199575

Seba, thanks for reporting this. I met this feature while working on a
closed-source application, added a workaround to ignore cameras that don't
support normal video capture, and haven't yet got round to replying to the
Bugzilla reports above. I'd be happy if someone else took on that task.

BR,
Steve

#1011938#15
Date:
2019-06-24 10:00:24 UTC
From:
To:
Thanks Steve. I replied to the bugzilla reports you listed.
A google search on that commit number reveals quite a few more similar bug
reports and applications breaking because of it.
I guess quite a few applications would not be aware of the existence of
these metadata nodes.
Anyway, I'll also work around it in the same way you did.


Op za 22 jun. 2019 om 02:30 schreef Steve Cotton <steve@s.cotton.clara.co.uk

#1011938#20
Date:
2022-05-27 10:00:43 UTC
From:
To:
This seems to be expected behaviour, at this point.

hdmi2usb-udev doesn't handle it in buster, and it needs to to be useful.

SR

#1011938#33
Date:
2022-05-27 10:34:51 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hdmi2usb-mode-switch, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011938@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated hdmi2usb-mode-switch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 27 May 2022 12:13:39 +0200
Source: hdmi2usb-mode-switch
Architecture: source
Version: 0.0.1-3
Distribution: unstable
Urgency: low
Maintainer: Stefano Rivera <stefanor@debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1011938
Changes:
 hdmi2usb-mode-switch (0.0.1-3) unstable; urgency=low
 .
   [ Debian Janitor ]
   * Bump debhelper from deprecated 9 to 12.
   * Set debhelper-compat version in Build-Depends.
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
   * Use canonical URL in Vcs-Git.
   * Apply multi-arch hints.
     + hdmi2usb-udev: Add Multi-Arch: foreign.
   * Remove constraints unnecessary since buster:
     + hdmi2usb-mode-switch: Drop versioned constraint on ixo-usb-jtag and
       openocd in Depends.
 .
   [ Stefano Rivera ]
   * Bump debhelper from old 12 to 13.
   * Update watch file format version to 4.
   * Declare: Rules-Requires-Root: no.
   * Bump Standards-Version to 4.6.1, no changes needed.
   * Bump copyright years.
   * Patch: Udev: Add a suffix to /dev/video device nodes to disambiguate them.
     (Closes: #1011938)
   * Move udev rules to priority 70, to come after 60-persistent-v4l.rules.
Checksums-Sha1:
 4057f8f6587a0f25b6644a20aa8dc74109d19531 1476 hdmi2usb-mode-switch_0.0.1-3.dsc
 396520a6a8e964d743432058fa048b81d51ae1d3 17612 hdmi2usb-mode-switch_0.0.1-3.debian.tar.xz
 a3ecea908b7990233b0a8d94c204618848038c4e 5764 hdmi2usb-mode-switch_0.0.1-3_source.buildinfo
Checksums-Sha256:
 0b3d24bc2405fb6e75c56245e477f601bc6f2f2e6f8907e7a1fd8163d021b6a7 1476 hdmi2usb-mode-switch_0.0.1-3.dsc
 fc6e5aa71515bcba8409acee5fe2c5739536d4a5d089cb55251e39fed4fc024f 17612 hdmi2usb-mode-switch_0.0.1-3.debian.tar.xz
 94c2b1382c2bf7cac3817e7eb14bd9e4a8a36bcc1a88a602b805a797c1df66a1 5764 hdmi2usb-mode-switch_0.0.1-3_source.buildinfo
Files:
 543679100a1bd4ffa39714fc4b530df5 1476 admin optional hdmi2usb-mode-switch_0.0.1-3.dsc
 7bc2a2567ca1a05f00058197e95d4433 17612 admin optional hdmi2usb-mode-switch_0.0.1-3.debian.tar.xz
 68e0bf5e4fd166570fc5ba86aa5891e8 5764 admin optional hdmi2usb-mode-switch_0.0.1-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCYpCkxBQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2KptAPkBI9TiI3ijY6XIP1NymUQXjqg80FUs
KuxyDAKr8uDyvQD+JcYPFWd92gdZl+h7odJIAlAIF4EQqIusvFZE+h0/owI=
=CXtA
-----END PGP SIGNATURE-----

#1011938#40
Date:
2022-05-28 19:02:07 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hdmi2usb-mode-switch, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1011938@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stefano Rivera <stefanor@debian.org> (supplier of updated hdmi2usb-mode-switch package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Fri, 27 May 2022 12:22:19 +0200
Source: hdmi2usb-mode-switch
Architecture: source
Version: 0.0.1-2+deb11u1
Distribution: bullseye
Urgency: low
Maintainer: Stefano Rivera <stefanor@debian.org>
Changed-By: Stefano Rivera <stefanor@debian.org>
Closes: 1011938
Changes:
 hdmi2usb-mode-switch (0.0.1-2+deb11u1) bullseye; urgency=low
 .
   * Patch: Udev: Add a suffix to /dev/video device nodes to disambiguate them.
     (Closes: #1011938)
   * Move udev rules to priority 70, to come after 60-persistent-v4l.rules.
Checksums-Sha1:
 5aaf98d46d50f943309b3d5ad7f74270ed298248 1497 hdmi2usb-mode-switch_0.0.1-2+deb11u1.dsc
 046e454243a4180742c02f018f9cdec9ded45c22 17356 hdmi2usb-mode-switch_0.0.1-2+deb11u1.debian.tar.xz
 a62e2b3ffca001cc5124d2891000afcc13428b55 5796 hdmi2usb-mode-switch_0.0.1-2+deb11u1_source.buildinfo
Checksums-Sha256:
 8774e5c032279fc9ea2c69399f702621ae838efe5d57e61069350ba1ad0ac8b8 1497 hdmi2usb-mode-switch_0.0.1-2+deb11u1.dsc
 988ee41fe7e722f9dab9268eb5801b2b2f51c1a14fc6f502f21f4a96be913372 17356 hdmi2usb-mode-switch_0.0.1-2+deb11u1.debian.tar.xz
 2a53b2022a99dbc690de470254aedbdd62f73fb1849cc998280e5550ba3ae880 5796 hdmi2usb-mode-switch_0.0.1-2+deb11u1_source.buildinfo
Files:
 569b7039b0e33107778d8f5c3379fbab 1497 admin optional hdmi2usb-mode-switch_0.0.1-2+deb11u1.dsc
 d7949d07355ea21dc52959d3f91ebc6d 17356 admin optional hdmi2usb-mode-switch_0.0.1-2+deb11u1.debian.tar.xz
 56d9580bef76b31e2fed7d9f8d19ab67 5796 admin optional hdmi2usb-mode-switch_0.0.1-2+deb11u1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCYpCouRQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2J1MAP90+7cPqBudqiWeASIsLwX6bVk9bWH2
a32rJwkza59cvQEA6zWOgblyWk2Zg1fzhH7K1hA2XjHZVuQ+RAzjkaDSdQ0=
=cTve
-----END PGP SIGNATURE-----