On Sun, 12 Jun 2011 23:31:26 +0000 Gabriel Hartmann <gabriel.hartmann@xxxxxxxxx> wrote: > I guess I'm trying to figure out the control flow. Currently I'm > getting > > KERN: usb hub 67: port 3: device removed > KERN: usb_floppy: no valid CBI interface found > KERN: Last message repeated 7 times. > KERN: usb hub 67: port 3: new device connected > KERN: usb_floppy: no valid CBI interface found > KERN: Last message repeated 8 times. > > when I connect and disconnect my camera. I've tracked these messages > origin to src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp. > What I'd like to know is how this code was reached. It's inside > usb_disk_device_added() You can safely ignore the usb_floppy driver messages. All USB add-ons (drivers) on the system are loaded/called when a USB device is plugged. If the driver doesn't match the device, it returns and exits. usb_floppy is being called to scan the new device. (you see no further notes as it didn't find any usb floppy endpoints it effected) > /src/add-ons/media/media-add-onssrc/add-ons/media/media-add-ons/usb_webcam/usb_webcam/addons/uvc/UVCCamDevice.cpp > claims to support generic UVC devices as well as some other specific > cameras (mine isn't on the list), > > usb_webcam_support_descriptor kSupportedDevices[] = { > // ofcourse we support a generic UVC device... > {{ CC_VIDEO, SC_VIDEOCONTROL, 0, 0, 0 }, "USB", "Video > Class", "??" }, ..... > > but I don't think this code is ever reached. If you're not seeing any tracing messages from uvc, you would be correct. I am not sure how that media-add-ons stuff works, however this line makes it look like the uvc addon is commented out from the build: http://dev.haiku-os.org/browser/haiku/trunk/src/add-ons/media/media-add-ons/usb_webcam/Jamfile#L38 A good place to start? Good Luck! -- Alex