uvd->frame[uvd->curframe].curline = 0; uvd->frame[uvd->curframe].seqRead_Length = 0; uvd->frame[uvd->curframe].seqRead_Index = 0; 
uvd->frame[uvd->curframe].curline = 0; uvd->frame[uvd->curframe].seqRead_Length = 0; uvd->frame[uvd->curframe].seqRead_Index = 0; 
static int konicawc_set_video_mode(struct uvd *uvd, struct video_window *vw){	struct konicawc *cam = (struct konicawc *)uvd->user_data;	int newspeed = cam->speed;	int newsize;	int x = vw->width;	int y = vw->height;	int fps = vw->flags;	if(x > 0 && y > 0) {		DEBUG(2, "trying to find size %d,%d", x, y);		for(newsize = 0; newsize <= MAX_FRAME_SIZE; newsize++) {			if((camera_sizes[newsize].width == x) && (camera_sizes[newsize].height == y))				break;		}	} else {		newsize = cam->size;	}	if(newsize > MAX_FRAME_SIZE) {		DEBUG(1, "couldn't find size %d,%d", x, y);		return -EINVAL;	}	if(fps > 0) {		DEBUG(1, "trying to set fps to %d", fps);		newspeed = konicawc_find_fps(newsize, fps);		DEBUG(1, "find_fps returned %d (%d)", newspeed, spd_to_fps[newsize][newspeed]);	}	if(newspeed > MAX_SPEED)		return -EINVAL;	DEBUG(1, "setting size to %d speed to %d", newsize, newspeed);	if((newsize == cam->size) && (newspeed == cam->speed)) {		DEBUG(1, "Nothing to do");		return 0;	}	DEBUG(0, "setting to  %dx%d @ %d fps", camera_sizes[newsize].width,	     camera_sizes[newsize].height, spd_to_fps[newsize][newspeed]/3);	konicawc_stop_data(uvd);	uvd->ifaceAltActive = spd_to_iface[newspeed];	DEBUG(1, "new interface = %d", uvd->ifaceAltActive);	cam->speed = newspeed;	if(cam->size != newsize) {		cam->size = newsize;		konicawc_set_camera_size(uvd);	}	/* Flush the input queue and clear any current frame in progress */	RingQueue_Flush(&uvd->dp);	cam->lastframe = -2;	if(uvd->curframe != -1) {	  uvd->frame[uvd->curframe].curline = 0;	  uvd->frame[uvd->curframe].seqRead_Length = 0;	  uvd->frame[uvd->curframe].seqRead_Index = 0;	}	konicawc_start_data(uvd);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0259567ad60df13a55583b84d2cddb5526705907/konicawc.c/buggy/drivers/usb/media/konicawc.c