[sane-devel] Question about Genesys_Frontend

2008-04-26 Thread Pierre Willenbrock
Guillaume Gastebois schrieb:
 Hello,
 
 In genesys backend, we can find :
 
 typedef struct
 {
u_int8_t reg[4];
u_int8_t sign[3];
u_int8_t offset[3];
u_int8_t gain[3];
u_int8_t reg2[3];
 } Genesys_Frontend;
 
 
 but in WM8199 regs don't have the same name.
 For me registers addresses are :
 
 reg[0]=0x01,reg[1]=0x02,reg[2]=0x03,reg[3]=0x06,
 sign[0]=?,sign[1]=?,sign[2]=?,
 offset[0]=0x20,offset[1]=0x21,offset[2]=0x22,
 gain[0]=0x28,gain[1]=0x29,gain[2]=0x2a,
 reg2[0]=0x08,reg2[1]=0x09,reg2[2]=?,
 
 I anybody able to replace ? and/or correct mistakes in text before ?

There are some AFEs that use these registers, and some, that don't. If 
the windows driver does not set them, most likely they are not 
used/defined and ignored by the AFE. So it should be safe to set them to 0.

 Thanks
 
 Regards
 Guillaume

Regards,
   Pierre



[sane-devel] Question about Genesys_Frontend

2008-04-24 Thread Guillaume Gastebois
Hello,

In genesys backend, we can find :

typedef struct
{
   u_int8_t reg[4];
   u_int8_t sign[3];
   u_int8_t offset[3];
   u_int8_t gain[3];
   u_int8_t reg2[3];
} Genesys_Frontend;


but in WM8199 regs don't have the same name.
For me registers addresses are :

reg[0]=0x01,reg[1]=0x02,reg[2]=0x03,reg[3]=0x06,
sign[0]=?,sign[1]=?,sign[2]=?,
offset[0]=0x20,offset[1]=0x21,offset[2]=0x22,
gain[0]=0x28,gain[1]=0x29,gain[2]=0x2a,
reg2[0]=0x08,reg2[1]=0x09,reg2[2]=?,

I anybody able to replace ? and/or correct mistakes in text before ?

Thanks

Regards
Guillaume