Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2020 12:49:58 +0200
From:      =?UTF-8?Q?Jos=C3=A9_P=C3=A9rez?= <fbl@aoek.com>
To:        multimedia@freebsd.org
Subject:   USB webcam not attaching: proposed patch
Message-ID:  <9ae2688ee04cef61ee7e20412da6ed49@mail.yourbox.net>

next in thread | raw e-mail | index | archive | help
Hi,
I am trying to have a Logitech webcam work with FreeBSD,
while audio works ok (has an integrated mic that gets
identified as uaudio), video does not because it requires
manual start of webcamd.

I find this annoying (I mean, I know you can add an rc.conf
entry with webcamd_0_flags, but this is not idiot proof),
and looked for a way to make it start automatically.

usbconfig reports:
...
bInterfaceClass = 0x000a  <CDC-data>
...

So I updated webcamd.conf to identify this kind of
interfaces, as follows:
---------------------------  CUT  ---------------------------
--- webcamd.conf        2020-05-21 12:42:09.519165000 +0200
+++ webcamd.conf.orig   2020-05-21 12:41:25.844895000 +0200
@@ -7,15 +7,6 @@
         action "/usr/local/etc/rc.d/webcamd start $cdev";
  };

-# Vendor specific USB webcams.
-notify 100 {
-       match "system"          "USB";
-       match "subsystem"       "INTERFACE";
-       match "type"            "ATTACH";
-       match "intclass"        "0x0a";
-       action "/usr/local/etc/rc.d/webcamd start $cdev";
-};
-
  # Vendor specific USB webcams and DVB devices.
  notify 100 {
         match "system"          "USB";
---------------------------  CUT  ---------------------------

This works for me, does anybody knows whether the interface
class 0x0a is used in others webcams? Can this patch be pushed up?

Thank you.

BR,

-- 
José Pérez



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9ae2688ee04cef61ee7e20412da6ed49>