Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 32622 Details for
Bug 52932
gphoto2 patch for StyleCam Snap, does not work with libgphoto2-2.1.4
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The blink2 patch used for the -r1 ebuild fix
libgphoto2-2.1.4-blink2.patch (text/plain), 1.62 KB, created by
xiando
on 2004-06-03 18:05:58 UTC
(
hide
)
Description:
The blink2 patch used for the -r1 ebuild fix
Filename:
MIME Type:
Creator:
xiando
Created:
2004-06-03 18:05:58 UTC
Size:
1.62 KB
patch
obsolete
>--- libgphoto2-2.1.4-orig/camlibs/sipix/blink2.c 2004-03-26 12:16:13.000000000 +0100 >+++ libgphoto2-2.1.4/camlibs/sipix/blink2.c 2004-04-01 13:28:45.000000000 +0200 >@@ -55,8 +55,10 @@ > ) { > char buf[6]; > int ret; >- >- ret = gp_port_usb_msg_read(port, BLINK2_GET_NUMPICS, 0x03, 0, buf, 6); >+ >+ ret = gp_port_usb_msg_read(port, 0x18, 0x03, 0, buf, 6); >+ ret = gp_port_usb_msg_read(port, BLINK2_GET_NUMPICS, 0x03, 0, buf, 2); >+ ret = gp_port_usb_msg_read(port, BLINK2_GET_NUMPICS, 0x03, 0, buf, 2); > if (ret<GP_OK) > return ret; > *numpics = (buf[0]<<8) | buf[1]; >@@ -95,7 +97,7 @@ > if (ret < GP_OK) return ret; > > xbuf = malloc(8*(1+numpics)); >- ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,buf,8 ); >+ ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,buf,1 ); > if (ret < GP_OK) { > free(xbuf); > return ret; >@@ -142,7 +144,7 @@ > free(xbuf); > return GP_ERROR_NO_MEMORY; > } >- ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,buf,8 ); >+ ret = gp_port_usb_msg_read( camera->port,BLINK2_GET_DIR,0x03,0,buf,1 ); > if (ret < GP_OK) { > free(addrs); > free(xbuf); >@@ -375,10 +377,12 @@ > settings.usb.interface = 0; > ret = gp_port_set_settings( camera->port, settings); > if (ret < GP_OK) return ret; >- ret = gp_port_usb_msg_read( camera->port, 0x18, 0x0300, 0x0000, buf, 6); >+ >+ ret = gp_port_usb_msg_read( camera->port, 0x18, 0x03, 0, buf, 6); > if (ret < GP_OK) > return ret; >- ret = gp_port_usb_msg_read( camera->port, 0x04, 0x0300, 0x0000, buf, 8); >+ >+ ret = gp_port_usb_msg_read( camera->port, 0x04, 0x03, 0, buf, 1); > if (ret < GP_OK) > return ret; > return GP_OK;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 52932
:
32621
| 32622