Re: Dazzle DVC80 under FC16

2017-05-20 Thread Christopher Chavez
> On May 9, 2012, at 2:12 PM, Ondrej Zary  wrote:
> Can you test this patch? It should make the driver ignore the second
> interface with no endpoints.
> --- a/drivers/media/video/usbvision/usbvision-video.c
> +++ b/drivers/media/video/usbvision/usbvision-video.c
> @@ -1504,6 +1504,11 @@ static int __devinit usbvision_probe(struct 
> usb_interface *intf,
> interface = 
> &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0];
> else
> interface = &dev->actconfig->interface[ifnum]->altsetting[0];
> + if (interface->desc.bNumEndpoints < 1) {
> + dev_err(&intf->dev, "%s: interface %d. has no endpoints\n",
> +__func__, ifnum);
> + return -ENODEV;
> + }
> endpoint = &interface->endpoint[1].desc;
> if (!usb_endpoint_xfer_isoc(endpoint)) {
> dev_err(&intf->dev, "%s: interface %d. has non-ISO endpoint!\n",


Leaving a reply for reference: while trying to add support for another
device [1], I noticed that the fix for CVE-2015-7833 [2] contained a
check similar to the one in Zary's patch:

(from commit fa52bd506f274b7619955917abfde355e3d19ffe)



 drivers/media/usb/usbvision/usbvision-video.c | 16 +++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/drivers/media/usb/usbvision/usbvision-video.c
b/drivers/media/usb/usbvision/usbvision-video.c
index b693206..d1dc1a1 100644
--- a/drivers/media/usb/usbvision/usbvision-video.c
+++ b/drivers/media/usb/usbvision/usbvision-video.c
@@ -1463,9 +1463,23 @@ static int usbvision_probe(struct usb_interface *intf,

  if (usbvision_device_data[model].interface >= 0)
  interface = 
&dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0];
- else
+ else if (ifnum < dev->actconfig->desc.bNumInterfaces)
  interface = &dev->actconfig->interface[ifnum]->altsetting[0];
+ else {
+ dev_err(&intf->dev, "interface %d is invalid, max is %d\n",
+ifnum, dev->actconfig->desc.bNumInterfaces - 1);
+ ret = -ENODEV;
+ goto err_usb;
+ }
+
+ if (interface->desc.bNumEndpoints < 2) {
+ dev_err(&intf->dev, "interface %d has %d endpoints, but must"
+" have minimum 2\n", ifnum, interface->desc.bNumEndpoints);
+ ret = -ENODEV;
+ goto err_usb;
+ }
  endpoint = &interface->endpoint[1].desc;
+
  if (!usb_endpoint_xfer_isoc(endpoint)) {
  dev_err(&intf->dev, "%s: interface %d. has non-ISO endpoint!\n",
 __func__, ifnum);



I can still reproduce the "cannot change alternate number to 1
(error=-22)" issue, however. Unless something else is broken, e.g. in
my card definition, I haven't made any progress myself on figuring out
why this happens.

[1] usbvision: problems adding support for ATI TV Wonder USB Edition
https://www.spinics.net/lists/linux-media/msg95854.html

[2] usbvision: fix crash on detecting device with invalid configuration
https://www.spinics.net/lists/linux-media/msg94831.html

Christopher A. Chavez

On Wed, May 9, 2012 at 2:12 PM, Ondrej Zary  wrote:
> On Wednesday 09 May 2012 18:20:18 Bruno Martins wrote:
>> On 05/09/2012 04:32 PM, Ondrej Zary wrote:
>> > On Wednesday 09 May 2012, Bruno Martins wrote:
>> >> Hello guys,
>> >>
>> >> Has anyone ever got this to working under any Linux distro, including
>> >> Fedora?
>> >>
>> >> I have just plugged it in and I get this on dmesg:
>> >>
>> >> [ 1365.932522] usb 2-1.1: new full-speed USB device number 26 using
>> >> ehci_hcd [ 1366.073145] usb 2-1.1: New USB device found, idVendor=07d0,
>> >> idProduct=0004 [ 1366.073153] usb 2-1.1: New USB device strings: Mfr=0,
>> >> Product=0, SerialNumber=0 [ 1366.091741] usbvision_probe: Dazzle Fusion
>> >> Model DVC-80 Rev 1 (PAL) found [ 1366.092072] USBVision[0]: registered
>> >> USBVision Video device video1 [v4l2] [ 1366.092091] usbvision_probe:
>> >> Dazzle Fusion Model DVC-80 Rev 1 (PAL) found [ 1366.092149]
>> >> USBVision[1]: registered USBVision Video device video2 [v4l2] [
>> >> 1366.092182] usbcore: registered new interface driver usbvision [
>> >> 1366.092184] USBVision USB Video Device Driver for Linux : 0.9.11 [
>> >> 1366.189268] saa7115 15-0025: saa7113 found (1f7113d0e10) @ 0x4a
>> >> (usbvision-2-1.1) [ 1366.319647] usb 2-1.1: selecting invalid altsetting
>> >> 1
>> >> [ 1366.319658] usb 2-1.1: cannot change alternate number to 1
>> >> (error=-22)
>> >>
>> >> Device is recognized since it appears in lsusb:
>> >>
>> >> [skorzen@g62 ~]$ lsusb | grep DVC
>> >> Bus 002 Device 026: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
>> >>
>> >> However, I cannot make it work (my goal is to capture video from a
>> >> camcorder).
>> >> I've tried using cheese for this, but it just crashes and ABRT
>> >> launches for me to fill a bug.
>> >>
>> >> Any ideas?
>> >
>> > Please include the output of "lsusb -v" for this device (run the command
>> > as root).
>>
>> Here it is, mate. Thanks for your cooperation.
>>
>> Bus 002 Device 005: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
>> Device Descriptor:
>>   bLength18
>>   bDescriptorType 1
>>   bcdUSB   1.00
>>   bDeviceClass0 

Re: Dazzle DVC80 under FC16

2017-05-20 Thread Christopher Chavez
>
> On May 9, 2012, at 2:12 PM, Ondrej Zary  wrote:
> Can you test this patch? It should make the driver ignore the second
> interface with no endpoints.
> --- a/drivers/media/video/usbvision/usbvision-video.c
> +++ b/drivers/media/video/usbvision/usbvision-video.c
> @@ -1504,6 +1504,11 @@ static int __devinit usbvision_probe(struct 
> usb_interface *intf,
> interface = 
> &dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0];
> else
> interface = &dev->actconfig->interface[ifnum]->altsetting[0];
> + if (interface->desc.bNumEndpoints < 1) {
> + dev_err(&intf->dev, "%s: interface %d. has no endpoints\n",
> +__func__, ifnum);
> + return -ENODEV;
> + }
> endpoint = &interface->endpoint[1].desc;
> if (!usb_endpoint_xfer_isoc(endpoint)) {
> dev_err(&intf->dev, "%s: interface %d. has non-ISO endpoint!\n",


Leaving a reply for reference: while trying to add support for another
device [1], I noticed that the fix for CVE-2015-7833 [2] contained a
check similar to the one in Zary's patch:

(from commit fa52bd506f274b7619955917abfde355e3d19ffe)



 drivers/media/usb/usbvision/usbvision-video.c | 16 +++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/drivers/media/usb/usbvision/usbvision-video.c
b/drivers/media/usb/usbvision/usbvision-video.c
index b693206..d1dc1a1 100644
--- a/drivers/media/usb/usbvision/usbvision-video.c
+++ b/drivers/media/usb/usbvision/usbvision-video.c
@@ -1463,9 +1463,23 @@ static int usbvision_probe(struct usb_interface *intf,

  if (usbvision_device_data[model].interface >= 0)
  interface = 
&dev->actconfig->interface[usbvision_device_data[model].interface]->altsetting[0];
- else
+ else if (ifnum < dev->actconfig->desc.bNumInterfaces)
  interface = &dev->actconfig->interface[ifnum]->altsetting[0];
+ else {
+ dev_err(&intf->dev, "interface %d is invalid, max is %d\n",
+ifnum, dev->actconfig->desc.bNumInterfaces - 1);
+ ret = -ENODEV;
+ goto err_usb;
+ }
+
+ if (interface->desc.bNumEndpoints < 2) {
+ dev_err(&intf->dev, "interface %d has %d endpoints, but must"
+" have minimum 2\n", ifnum, interface->desc.bNumEndpoints);
+ ret = -ENODEV;
+ goto err_usb;
+ }
  endpoint = &interface->endpoint[1].desc;
+
  if (!usb_endpoint_xfer_isoc(endpoint)) {
  dev_err(&intf->dev, "%s: interface %d. has non-ISO endpoint!\n",
 __func__, ifnum);



I can still reproduce the "cannot change alternate number to 1
(error=-22)" issue, however. Unless something else is broken, e.g. in
my card definition, I haven't made any progress myself on figuring out
why this happens.

[1] usbvision: problems adding support for ATI TV Wonder USB Edition
https://www.spinics.net/lists/linux-media/msg95854.html

[2] usbvision: fix crash on detecting device with invalid configuration
https://www.spinics.net/lists/linux-media/msg94831.html

Christopher A. Chavez


Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ondrej Zary
On Wednesday 09 May 2012 18:20:18 Bruno Martins wrote:
> On 05/09/2012 04:32 PM, Ondrej Zary wrote:
> > On Wednesday 09 May 2012, Bruno Martins wrote:
> >> Hello guys,
> >>
> >> Has anyone ever got this to working under any Linux distro, including
> >> Fedora?
> >>
> >> I have just plugged it in and I get this on dmesg:
> >>
> >> [ 1365.932522] usb 2-1.1: new full-speed USB device number 26 using
> >> ehci_hcd [ 1366.073145] usb 2-1.1: New USB device found, idVendor=07d0,
> >> idProduct=0004 [ 1366.073153] usb 2-1.1: New USB device strings: Mfr=0,
> >> Product=0, SerialNumber=0 [ 1366.091741] usbvision_probe: Dazzle Fusion
> >> Model DVC-80 Rev 1 (PAL) found [ 1366.092072] USBVision[0]: registered
> >> USBVision Video device video1 [v4l2] [ 1366.092091] usbvision_probe:
> >> Dazzle Fusion Model DVC-80 Rev 1 (PAL) found [ 1366.092149]
> >> USBVision[1]: registered USBVision Video device video2 [v4l2] [
> >> 1366.092182] usbcore: registered new interface driver usbvision [
> >> 1366.092184] USBVision USB Video Device Driver for Linux : 0.9.11 [
> >> 1366.189268] saa7115 15-0025: saa7113 found (1f7113d0e10) @ 0x4a
> >> (usbvision-2-1.1) [ 1366.319647] usb 2-1.1: selecting invalid altsetting
> >> 1
> >> [ 1366.319658] usb 2-1.1: cannot change alternate number to 1
> >> (error=-22)
> >>
> >> Device is recognized since it appears in lsusb:
> >>
> >> [skorzen@g62 ~]$ lsusb | grep DVC
> >> Bus 002 Device 026: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
> >>
> >> However, I cannot make it work (my goal is to capture video from a
> >> camcorder).
> >> I've tried using cheese for this, but it just crashes and ABRT
> >> launches for me to fill a bug.
> >>
> >> Any ideas?
> >
> > Please include the output of "lsusb -v" for this device (run the command
> > as root).
>
> Here it is, mate. Thanks for your cooperation.
>
> Bus 002 Device 005: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
> Device Descriptor:
>   bLength18
>   bDescriptorType 1
>   bcdUSB   1.00
>   bDeviceClass0 (Defined at Interface level)
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize0 8
>   idVendor   0x07d0 Dazzle
>   idProduct  0x0004 DVC-800 (PAL) Grabber
>   bcdDevice1.00
>   iManufacturer   0
>   iProduct0
>   iSerial 0
>   bNumConfigurations  1
>   Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength  468
> bNumInterfaces  2
> bConfigurationValue 2
> iConfiguration  0
> bmAttributes 0x80
>   (Bus Powered)
> MaxPower  500mA
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber0
>   bAlternateSetting   0
>   bNumEndpoints   3
>   bInterfaceClass 0 (Defined at Interface level)
>   bInterfaceSubClass  0
>   bInterfaceProtocol  0
>   iInterface  0
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x01  EP 1 OUT
> bmAttributes0
>   Transfer TypeControl
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0008  1x 8 bytes
> bInterval   1
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x82  EP 2 IN
> bmAttributes1
>   Transfer TypeIsochronous
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x  1x 0 bytes
> bInterval   1
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x83  EP 3 IN
> bmAttributes1
>   Transfer TypeIsochronous
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x  1x 0 bytes
> bInterval   1
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber0
>   bAlternateSetting   1
>   bNumEndpoints   3
>   bInterfaceClass 0 (Defined at Interface level)
>   bInterfaceSubClass  0
>   bInterfaceProtocol  0
>   iInterface  0
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x01  EP 1 OUT
> bmAttributes0
>   Transfer TypeControl
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0008  1x 8 bytes
>   

Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ezequiel Garcia
Hi,

On Wed, May 9, 2012 at 2:56 PM, Ondrej Zary  wrote:
> On Wednesday 09 May 2012 18:54:58 Ezequiel Garcia wrote:
>> Hi,
>>
>> Also please output lsmod with your device plugged and the list of your
>> installed modules (do you know how to do this?)
>>
>> I may be wrong, but this device should be supported by usbvision module.
>
> The log show that usbvision module is loaded but fails to set altsetting to 1.
> Probably because the device has two interfaces (note that the driver is also
> initialized twice).

Yes, I've just noticed this.

Perhaps, you could try using vlc and/or mplayer (instead of cheese)
and also try to use explicit device, i.e. /dev/video1 and/or
/dev/video2.

But if the driver fails to set alternate setting, then it will never
work, right?

Hope this helps,
Ezequiel.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ondrej Zary
On Wednesday 09 May 2012 18:54:58 Ezequiel Garcia wrote:
> Hi,
>
> Also please output lsmod with your device plugged and the list of your
> installed modules (do you know how to do this?)
>
> I may be wrong, but this device should be supported by usbvision module.

The log show that usbvision module is loaded but fails to set altsetting to 1. 
Probably because the device has two interfaces (note that the driver is also 
initialized twice).

-- 
Ondrej Zary
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Dazzle DVC80 under FC16

2012-05-09 Thread Bruno Martins
On 05/09/2012 05:54 PM, Ezequiel Garcia wrote:
> Hi,
> 
> Also please output lsmod with your device plugged and the list of your
> installed modules (do you know how to do this?)
> 
> I may be wrong, but this device should be supported by usbvision module.
> 
> Thanks,
> Ezequiel.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majord...@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

Hi there,

Is this information sufficient? Did lsmod, and the same but grepping
'usbvision' module.

[root@g62 skorzen]# lsmod
Module  Size  Used by
saa711522886  0
usbvision  74822  0
v4l2_common15133  2 saa7115,usbvision
binfmt_misc17431  1
usb_storage52112  0
vboxpci23198  0
vboxnetadp 13382  0
vboxnetflt 23424  0
vboxdrv   267808  3 vboxpci,vboxnetadp,vboxnetflt
lockd  84763  0
fcoe   27289  0
libfcoe47156  1 fcoe
libfc 108615  2 fcoe,libfcoe
scsi_transport_fc  53339  2 fcoe,libfc
scsi_tgt   19553  1 scsi_transport_fc
8021q  24177  0
garp   14069  1 8021q
stp12823  1 garp
llc14090  2 garp,stp
be2iscsi   72382  0
iscsi_boot_sysfs   15641  1 be2iscsi
bnx2i  54521  0
cnic   62821  1 bnx2i
uio19028  1 cnic
cxgb4i 32909  0
cxgb4 103017  1 cxgb4i
cxgb3i 32972  0
libcxgbi   56508  2 cxgb4i,cxgb3i
cxgb3 155458  1 cxgb3i
mdio   13398  1 cxgb3
ib_iser38001  0
rdma_cm41898  1 ib_iser
ib_cm  41692  1 rdma_cm
iw_cm  18176  1 rdma_cm
ib_sa  28417  2 rdma_cm,ib_cm
ib_mad 46392  2 ib_cm,ib_sa
ib_core73803  6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad
ib_addr13745  1 rdma_cm
iscsi_tcp  18333  0
libiscsi_tcp   23970  4 cxgb4i,cxgb3i,libcxgbi,iscsi_tcp
libiscsi   50527  8
be2iscsi,bnx2i,cxgb4i,cxgb3i,libcxgbi,ib_iser,iscsi_tcp,libiscsi_tcp
scsi_transport_iscsi51924  8
be2iscsi,bnx2i,libcxgbi,ib_iser,iscsi_tcp,libiscsi
nf_conntrack_ipv4  14622  1
nf_defrag_ipv4 12673  1 nf_conntrack_ipv4
ip6t_REJECT12939  2
nf_conntrack_ipv6  14290  1
nf_defrag_ipv6 18139  1 nf_conntrack_ipv6
xt_state   12578  2
nf_conntrack   82286  3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter12815  1
ip6_tables 26976  1 ip6table_filter
i2c_i801   17765  0
arc4   12529  2
brcmsmac  551177  0
mac80211  496450  1 brcmsmac
brcmutil   14124  1 brcmsmac
cfg80211  195558  2 brcmsmac,mac80211
crc8   12708  1 brcmsmac
cordic 12486  1 brcmsmac
snd_hda_codec_hdmi 36157  1
snd_hda_codec_realtek   145364  1
bcma   30101  1 brcmsmac
r8169  60789  0
snd_hda_intel  33276  5
snd_hda_codec 115767  3
snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep  17611  1 snd_hda_codec
snd_seq64807  0
snd_seq_device 14129  1 snd_seq
snd_pcm97170  4
snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer  28815  2 snd_seq,snd_pcm
snd78908  18
snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
soundcore  14484  1 snd
snd_page_alloc 18101  2 snd_hda_intel,snd_pcm
iTCO_wdt   17948  0
hp_wmi 18048  0
iTCO_vendor_support13419  1 iTCO_wdt
uvcvideo   76346  0
mii13527  1 r8169
sparse_keymap  13526  1 hp_wmi
videobuf2_core 31894  1 uvcvideo
videodev  106837  5
saa7115,usbvision,v4l2_common,uvcvideo,videobuf2_core
media  20444  2 uvcvideo,videodev
videobuf2_vmalloc  12967  1 uvcvideo
rfkill 21342  3 cfg80211,hp_wmi
microcode  23348  0
videobuf2_memops   13262  1 videobuf2_vmalloc
serio_raw  13371  0
joydev 17412  0
sunrpc235361  2 lockd
uinput 17606  0
wmi18697  1 hp_wmi
i915  466809  2
drm_kms_helper 40231  1 i915
drm   242003  3 i915,drm_kms_helper
i2c_algo_bit   13156  1 i915
i2c_core   37991  9
saa7115,usbvision,v4l2_common,i2c_i801,videodev,i915,drm_kms_helper,drm,i2c_algo_bit
video  18932  1 i915
[root@g62 skorzen]# lsmod | grep usbvision
usbvision  74822  0
v4l2_common

Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ezequiel Garcia
Hi,

Also please output lsmod with your device plugged and the list of your
installed modules (do you know how to do this?)

I may be wrong, but this device should be supported by usbvision module.

Thanks,
Ezequiel.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Dazzle DVC80 under FC16

2012-05-09 Thread Bruno Martins
On 05/09/2012 04:32 PM, Ondrej Zary wrote:
> On Wednesday 09 May 2012, Bruno Martins wrote:
>> Hello guys,
>>
>> Has anyone ever got this to working under any Linux distro, including
>> Fedora?
>>
>> I have just plugged it in and I get this on dmesg:
>>
>> [ 1365.932522] usb 2-1.1: new full-speed USB device number 26 using ehci_hcd
>> [ 1366.073145] usb 2-1.1: New USB device found, idVendor=07d0, idProduct=0004
>> [ 1366.073153] usb 2-1.1: New USB device strings: Mfr=0, Product=0, 
>> SerialNumber=0
>> [ 1366.091741] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
>> [ 1366.092072] USBVision[0]: registered USBVision Video device video1 [v4l2]
>> [ 1366.092091] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
>> [ 1366.092149] USBVision[1]: registered USBVision Video device video2 [v4l2]
>> [ 1366.092182] usbcore: registered new interface driver usbvision
>> [ 1366.092184] USBVision USB Video Device Driver for Linux : 0.9.11
>> [ 1366.189268] saa7115 15-0025: saa7113 found (1f7113d0e10) @ 0x4a 
>> (usbvision-2-1.1)
>> [ 1366.319647] usb 2-1.1: selecting invalid altsetting 1
>> [ 1366.319658] usb 2-1.1: cannot change alternate number to 1 (error=-22)
>>
>> Device is recognized since it appears in lsusb:
>>
>> [skorzen@g62 ~]$ lsusb | grep DVC
>> Bus 002 Device 026: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
>>
>> However, I cannot make it work (my goal is to capture video from a
>> camcorder).
>> I've tried using cheese for this, but it just crashes and ABRT
>> launches for me to fill a bug.
>>
>> Any ideas?
> 
> Please include the output of "lsusb -v" for this device (run the command as 
> root).
> 
> 

Here it is, mate. Thanks for your cooperation.

Bus 002 Device 005: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   1.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize0 8
  idVendor   0x07d0 Dazzle
  idProduct  0x0004 DVC-800 (PAL) Grabber
  bcdDevice1.00
  iManufacturer   0
  iProduct0
  iSerial 0
  bNumConfigurations  1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength  468
bNumInterfaces  2
bConfigurationValue 2
iConfiguration  0
bmAttributes 0x80
  (Bus Powered)
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   3
  bInterfaceClass 0 (Defined at Interface level)
  bInterfaceSubClass  0
  bInterfaceProtocol  0
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes0
  Transfer TypeControl
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes1
  Transfer TypeIsochronous
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x  1x 0 bytes
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83  EP 3 IN
bmAttributes1
  Transfer TypeIsochronous
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x  1x 0 bytes
bInterval   1
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   1
  bNumEndpoints   3
  bInterfaceClass 0 (Defined at Interface level)
  bInterfaceSubClass  0
  bInterfaceProtocol  0
  iInterface  0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes0
  Transfer TypeControl
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0008  1x 8 bytes
bInterval   1
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82  EP 2 IN
bmAttributes1
  Transfer TypeIsochronous
  Synch Type   None
  Usage

Re: Dazzle DVC80 under FC16

2012-05-09 Thread Ondrej Zary
On Wednesday 09 May 2012, Bruno Martins wrote:
> Hello guys,
>
> Has anyone ever got this to working under any Linux distro, including
> Fedora?
>
> I have just plugged it in and I get this on dmesg:
>
> [ 1365.932522] usb 2-1.1: new full-speed USB device number 26 using ehci_hcd
> [ 1366.073145] usb 2-1.1: New USB device found, idVendor=07d0, idProduct=0004
> [ 1366.073153] usb 2-1.1: New USB device strings: Mfr=0, Product=0, 
> SerialNumber=0
> [ 1366.091741] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
> [ 1366.092072] USBVision[0]: registered USBVision Video device video1 [v4l2]
> [ 1366.092091] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL) found
> [ 1366.092149] USBVision[1]: registered USBVision Video device video2 [v4l2]
> [ 1366.092182] usbcore: registered new interface driver usbvision
> [ 1366.092184] USBVision USB Video Device Driver for Linux : 0.9.11
> [ 1366.189268] saa7115 15-0025: saa7113 found (1f7113d0e10) @ 0x4a 
> (usbvision-2-1.1)
> [ 1366.319647] usb 2-1.1: selecting invalid altsetting 1
> [ 1366.319658] usb 2-1.1: cannot change alternate number to 1 (error=-22)
>
> Device is recognized since it appears in lsusb:
>
> [skorzen@g62 ~]$ lsusb | grep DVC
> Bus 002 Device 026: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber
>
> However, I cannot make it work (my goal is to capture video from a
> camcorder).
> I've tried using cheese for this, but it just crashes and ABRT
> launches for me to fill a bug.
>
> Any ideas?

Please include the output of "lsusb -v" for this device (run the command as 
root).


-- 
Ondrej Zary
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Dazzle DVC80 under FC16

2012-05-09 Thread Bruno Martins
Hello guys,

Has anyone ever got this to working under any Linux distro, including
Fedora?

I have just plugged it in and I get this on dmesg:

[ 1365.932522] usb 2-1.1: new full-speed USB device number 26 using
ehci_hcd
[ 1366.073145] usb 2-1.1: New USB device found, idVendor=07d0,
idProduct=0004
[ 1366.073153] usb 2-1.1: New USB device strings: Mfr=0, Product=0,
SerialNumber=0
[ 1366.091741] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL)
found
[ 1366.092072] USBVision[0]: registered USBVision Video device video1
[v4l2]
[ 1366.092091] usbvision_probe: Dazzle Fusion Model DVC-80 Rev 1 (PAL)
found
[ 1366.092149] USBVision[1]: registered USBVision Video device video2
[v4l2]
[ 1366.092182] usbcore: registered new interface driver usbvision
[ 1366.092184] USBVision USB Video Device Driver for Linux : 0.9.11
[ 1366.189268] saa7115 15-0025: saa7113 found (1f7113d0e10) @ 0x4a
(usbvision-2-1.1)
[ 1366.319647] usb 2-1.1: selecting invalid altsetting 1
[ 1366.319658] usb 2-1.1: cannot change alternate number to 1 (error=-22)

Device is recognized since it appears in lsusb:

[skorzen@g62 ~]$ lsusb | grep DVC
Bus 002 Device 026: ID 07d0:0004 Dazzle DVC-800 (PAL) Grabber

However, I cannot make it work (my goal is to capture video from a
camcorder).
I've tried using cheese for this, but it just crashes and ABRT
launches for me to fill a bug.

Any ideas?

Best regards,
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html