Lines Matching defs:alt
51 static int set_alternate(struct camera_data *cam, unsigned int alt);
52 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt);
371 static int configure_transfer_mode(struct camera_data *cam, unsigned int alt)
393 cmd.buffer.block_data[0] = iso_regs[alt][0];
394 cmd.buffer.block_data[1] = iso_regs[alt][1];
395 cmd.buffer.block_data[2] = iso_regs[alt][2];
396 cmd.buffer.block_data[3] = iso_regs[alt][3];
418 if (alt == USBIF_BULK) {
422 } else if (alt >= USBIF_ISO_1) {
444 unsigned int alt)
448 if(alt < USBIF_ISO_1 || alt > USBIF_ISO_6)
451 if(alt == cam->params.camera_state.stream_mode)
456 configure_transfer_mode(cam, alt);
458 cam->params.camera_state.stream_mode = alt;
473 static int set_alternate(struct camera_data *cam, unsigned int alt)
477 if(alt == cam->cur_alt)
481 DBG("Changing from alt %d to %d\n", cam->cur_alt, USBIF_CMDONLY);
486 if (alt != USBIF_CMDONLY) {
487 DBG("Changing from alt %d to %d\n", USBIF_CMDONLY, alt);
488 ret = usb_set_interface(cam->dev, cam->iface, alt);
494 cam->cur_alt = alt;