Lines Matching refs:alt
61 static int set_alternate(struct camera_data *cam, unsigned int alt);
62 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
379 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt)
401 cmd.buffer.block_data[0] = iso_regs[alt][0];
402 cmd.buffer.block_data[1] = iso_regs[alt][1];
403 cmd.buffer.block_data[2] = iso_regs[alt][2];
404 cmd.buffer.block_data[3] = iso_regs[alt][3];
426 if (alt == USBIF_BULK) {
430 } else if (alt >= USBIF_ISO_1) {
452 unsigned int alt)
456 if(alt < USBIF_ISO_1 || alt > USBIF_ISO_6)
459 if(alt == cam->params.camera_state.stream_mode)
464 configure_transfer_mode(cam, alt);
466 cam->params.camera_state.stream_mode = alt;
481 int set_alternate(struct camera_data *cam, unsigned int alt)
485 if(alt == cam->cur_alt)
489 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY);
494 if (alt != USBIF_CMDONLY) {
495 DBG("Changing from alt %d to %d\n", USBIF_CMDONLY, alt);
496 ret = usb_set_interface(cam->dev, cam->iface, alt);
502 cam->cur_alt = alt;