We need to define a cdev variable associated with each USB device,
hence existing applications like webcamd are expecting that. This problem was introduced by SVN change 214221 where cdev= was replaced by ugen= by accident. Solve this problem by redefining cdev= in devd notifications. MFC after 3 days. Approved by: thompsa (mentor)
This commit is contained in:
parent
074a0a8d57
commit
02c4024199
@ -2475,6 +2475,7 @@ usb_notify_addq(const char *type, struct usb_device *udev)
|
||||
sbuf_printf(sb,
|
||||
#if USB_HAVE_UGEN
|
||||
"ugen=%s "
|
||||
"cdev=%s "
|
||||
#endif
|
||||
"vendor=0x%04x "
|
||||
"product=0x%04x "
|
||||
@ -2490,6 +2491,7 @@ usb_notify_addq(const char *type, struct usb_device *udev)
|
||||
"",
|
||||
#if USB_HAVE_UGEN
|
||||
udev->ugen_name,
|
||||
udev->ugen_name,
|
||||
#endif
|
||||
UGETW(udev->ddesc.idVendor),
|
||||
UGETW(udev->ddesc.idProduct),
|
||||
@ -2521,6 +2523,7 @@ usb_notify_addq(const char *type, struct usb_device *udev)
|
||||
sbuf_printf(sb,
|
||||
#if USB_HAVE_UGEN
|
||||
"ugen=%s "
|
||||
"cdev=%s "
|
||||
#endif
|
||||
"vendor=0x%04x "
|
||||
"product=0x%04x "
|
||||
@ -2536,6 +2539,7 @@ usb_notify_addq(const char *type, struct usb_device *udev)
|
||||
"intprotocol=0x%02x",
|
||||
#if USB_HAVE_UGEN
|
||||
udev->ugen_name,
|
||||
udev->ugen_name,
|
||||
#endif
|
||||
UGETW(udev->ddesc.idVendor),
|
||||
UGETW(udev->ddesc.idProduct),
|
||||
|
Loading…
Reference in New Issue
Block a user