Skip to contentSkip to conversation

i2c-2.8.0 USBVision Patch

DISCUSSION Jean Delvare 2 participants 8 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

I happen to stumble on your conversation and patch.

Thanks, I will update our code base.

Once done, please confirm which constant you have been using and if you want a comment associated in i2c-id.h.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 8 lines

Please change the following...

.id = I2C_HW_B_BT848,

to the following...

.id = I2C_USBVISION,

That ID is for an adapter, so it has to be I2C_HW_USBVISION (or even longer? Please take a look at i2c-id.h in the Linux kernel sources and tell me what you think).

Also, there's a second ID you'd need to change: I2C_ALGO_BIT should become I2C_ALGO_USB, right?

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Jean Delvare
Quoted 6 lines

Sounds great to me.... I would like to keep it basically like everything else. I checked out the i2c-id.h file.

a) I2C_HW_B_USBVISION
b) I2C_ALGO_USB

I'm not sure about I2C_HW_B_USBVISION. I'd tend to say that _B_ is for adapters that use the i2c-algo-bit algorithm layer, which isn't your case, unless I'm missing something. So I'm now wondering if it shouldn't be I2C_HW_USB_USBVISION or something similar, since you are using your own algorithm.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Jean Delvare
Quoted 5 lines

Ok....

a) I2C_HW_USB_USBVISION
b) I2C_ALGO_USB

Done:

#define I2C_ALGO_USB 0x170000 /* USB algorithm */

/* --- USB based adapters */
#define I2C_HW_USB_USBVISION 0x00

(Not committed yet, will do ASAP.)

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Jean Delvare
Quoted 7 lines

#define I2C_ALGO_USB 0x170000 /* USB algorithm */

/* --- USB based adapters */
#define I2C_HW_USB_USBVISION 0x00

(Not committed yet, will do ASAP.)

Done.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#5 lore raw
In reply to Jean Delvare
Quoted 13 lines · Jean Delvare
Quoted 5 lines

I happen to stumble on your conversation and patch.

Thanks, I will update our code base.

Once done, please confirm which constant you have been using and if you want a comment associated in i2c-id.h.

Thanks.

Please change the following...

.id = I2C_HW_B_BT848,

to the following...

.id = I2C_USBVISION,

Thanks....
Dwaine.
http://www.emuit.com/webcam.html

#6 lore raw
In reply to Jean Delvare
Quoted 10 lines · Jean Delvare
Quoted 9 lines

Please change the following...

.id = I2C_HW_B_BT848,

to the following...

.id = I2C_USBVISION,

Quoted 9 lines

That ID is for an adapter, so it has to be I2C_HW_USBVISION (or even longer? Please take a look at i2c-id.h in the Linux kernel sources and tell me what you think).

Also, there's a second ID you'd need to change: I2C_ALGO_BIT should become I2C_ALGO_USB, right?

Sounds great to me.... I would like to keep it basically like everything else. I checked out the i2c-id.h file.

a) I2C_HW_B_USBVISION
b) I2C_ALGO_USB

Thanks...

Dwaine.

#7 lore raw
In reply to Jean Delvare
Quoted 8 lines · Jean Delvare
Quoted 7 lines

Sounds great to me.... I would like to keep it basically like everything else. I checked out the i2c-id.h file.

a) I2C_HW_B_USBVISION
b) I2C_ALGO_USB

Quoted 8 lines

I'm not sure about I2C_HW_B_USBVISION. I'd tend to say that _B_ is for adapters that use the i2c-algo-bit algorithm layer, which isn't your case, unless I'm missing something. So I'm now wondering if it shouldn't be I2C_HW_USB_USBVISION or something similar, since you are using your own algorithm.

Ok....

a) I2C_HW_USB_USBVISION
b) I2C_ALGO_USB

Dwaine.