};
#define LOAD_PAGE3 255
-#define LOAD_PAGE4 254
#define END_OF_SEQUENCE 0
/* pac 7302 */
/* output a variable sequence */
static int reg_w_var(struct gspca_dev *gspca_dev,
const __u8 *seq,
- const __u8 *page3, unsigned int page3_len,
- const __u8 *page4, unsigned int page4_len)
+ const __u8 *page3, unsigned int page3_len)
{
int index, len;
int ret = 0;
switch (len) {
case END_OF_SEQUENCE:
return ret;
- case LOAD_PAGE4:
- ret = reg_w_page(gspca_dev, page4, page4_len);
- break;
case LOAD_PAGE3:
ret = reg_w_page(gspca_dev, page3, page3_len);
break;
sd->sof_read = 0;
ret = reg_w_var(gspca_dev, start_7302,
- page3_7302, sizeof(page3_7302),
- NULL, 0);
+ page3_7302, sizeof(page3_7302));
if (0 <= ret)
ret = setbrightcont(gspca_dev);
if (0 <= ret)
.priv = 0},
};
-#define LOAD_PAGE3 255
#define LOAD_PAGE4 254
#define END_OF_SEQUENCE 0
/* output a variable sequence */
static int reg_w_var(struct gspca_dev *gspca_dev,
const __u8 *seq,
- const __u8 *page3, unsigned int page3_len,
const __u8 *page4, unsigned int page4_len)
{
int index, len;
case LOAD_PAGE4:
ret = reg_w_page(gspca_dev, page4, page4_len);
break;
- case LOAD_PAGE3:
- ret = reg_w_page(gspca_dev, page3, page3_len);
- break;
default:
if (len > USB_BUF_SZ) {
PDEBUG(D_ERR|D_STREAM,
sd->sof_read = 0;
ret = reg_w_var(gspca_dev, start_7311,
- NULL, 0,
page4_7311, sizeof(page4_7311));
if (0 <= ret)
ret = setcontrast(gspca_dev);