shinyboy / easycap-somagic-linux

Automatically exported from code.google.com/p/easycap-somagic-linux
0 stars 0 forks source link

Does not work for USB id 1c88:003d version of the product? #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Plug in a ezcap Ver36.1 (label on the box)
2. lsusb has a line: 
Bus 002 Device 007: ID 1c88:003d Somagic, Inc.
3. Install prerequisites and the amd64 .deb of somagic-easycap and 
somagic-easycap-tools, and follow instructions to extract firmware
4. run somagic-init
5. get error: USB device 1c88:0007 was not found. Is the device attached?

Original issue reported on code.google.com by foobarbecue on 14 Aug 2012 at 10:56

GoogleCodeExporter commented 9 years ago
Some more details. This is the product I bought: 
http://www.foxtechfpv.com/new-ezcap-usb-20-video-capture-adapter-for-xp-vista-7-
p-411.html

I opened it and took a couple of photos, attached. Looks like it uses the same 
chips, SMI2021CBE and GM7113.

I re-compiled the software with #define DEBUG and also changed 

-#define ORIGINAL_PRODUCT 0x0007
+#define ORIGINAL_PRODUCT 0x003d

in somagic-init.c

and 

-       0x003e,
+       0x003d,

in somagic-capture.c

I got the following output:

aaron@mevotoughbook:~/Downloads/somagic/easycap-somagic-linux/user$ sudo 
somagic-init 
[sudo] password for aaron: 
0x1d6b:0x0002
0x1d6b:0x0002
0x1d6b:0x0001
0x1d6b:0x0001
0x1d6b:0x0001
0x1d6b:0x0001
0x1d6b:0x0001
0x1d6b:0x0001
0x04b4:0x6560
0x0a5c:0x5801
0x1b96:0x0001
0x0a5c:0x4500
0x076b:0xa022
0x413c:0x8161
0x413c:0x8162
0x413c:0x8160
0x1c88:0x003d
1 get descriptor returned 18, bytes: 12 01 00 02 00 00 00 40 88 1c 3d 00 00 01 
01 02 03 01 ".......@..=......."
2 get descriptor returned 9, bytes: 09 02 4b 00 02 01 00 80 fa "..K......"
3 get descriptor returned 34, bytes: 09 02 4b 00 02 01 00 80 fa 09 04 00 00 00 
ff ff ff 00 09 04 00 01 01 ff ff ff 00 07 05 82 05 ff 03 01 
"..K..............................."

Original comment by foobarbecue on 15 Aug 2012 at 6:15

GoogleCodeExporter commented 9 years ago
oops, missed off the last line of output:

Failed to set active device configuration: Device or resource busy

And the photos (will try one at a time)

Original comment by foobarbecue on 15 Aug 2012 at 6:19

Attachments:

GoogleCodeExporter commented 9 years ago
Here is the other side. I forgot to mention that I also tried somagic-capture 
in case the device was already initialized somehow, and got the same 
"Failed to set active device configuration: Device or resource busy"

Original comment by foobarbecue on 15 Aug 2012 at 6:23

Attachments:

GoogleCodeExporter commented 9 years ago
I've got the same device (1c88:003d Somagic, Inc.) and I got it working on my 
Ubuntu 11.10 with following steps:

- I use the precompiled deb packages as drivers, which gives ID 003d for the 
device right after plug-in (no manual initialization needed)
- I modified the somagic-capture.c: 1) Change value of PRODUCT_COUNT from 3 to 
4; 2) Add id 003d to the const int array right below PRODUCT_COUNT definition 
line. Compile.
- Now, to avoid the "device busy" error (i.e. system log message "[ 
3688.378703] usb 1-2: usbfs: interface 1 claimed by usbhid while 
'somagic-capture' sets config #1"), I disable usbhid (modprobe -r usbhid) and 
the use the modified somagic-capture as instructed in the man page.

I've still got some flickering in the captured stream, but I think that's 
another issue. Though the above mentioned method is not exactly a solution, I 
hope it will help you find a way to get around the problem.

Original comment by Lars.Kai...@gmail.com on 24 Aug 2012 at 10:32

GoogleCodeExporter commented 9 years ago
Thanks for these comments and pictures! I have committed a fix to git for the 
missing EzCAP USB 2.0 support. Please download the source and try it out.

Original comment by calam...@gmail.com on 10 Mar 2013 at 8:06