From 5bf548481dabd577d8a76364aaa252b89964a5f2 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Sat, 9 Dec 2006 21:22:31 +0000 Subject: Better describe the magic done by umass_fixup_sony(), okay krw@ --- sys/dev/usb/umass_quirks.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/umass_quirks.c b/sys/dev/usb/umass_quirks.c index 57bdd34035c..6bc85c94a28 100644 --- a/sys/dev/usb/umass_quirks.c +++ b/sys/dev/usb/umass_quirks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umass_quirks.c,v 1.23 2006/12/09 21:06:12 pedro Exp $ */ +/* $OpenBSD: umass_quirks.c,v 1.24 2006/12/09 21:22:30 pedro Exp $ */ /* $NetBSD: umass_quirks.c,v 1.67 2004/06/28 07:49:16 mycroft Exp $ */ /* @@ -519,6 +519,10 @@ umass_fixup_sony(struct umass_softc *sc) id = usbd_get_interface_descriptor(sc->sc_iface); if (id->bInterfaceSubClass == 0xff) { dd = usbd_get_device_descriptor(sc->sc_udev); + /* + * Many Sony DSC cameras share the same product ID, so the + * revision number is used to distinguish between them. + */ switch (UGETW(dd->bcdDevice)) { case 0x600: /* Sony DSC-W50, rev 6.00 */ case 0x500: /* Sony DSC-P41, rev 5.00 */ -- cgit v1.2.3