return -EBUSY; 
return -EBUSY; 
static int bttv_s_fmt(struct bttv_fh *fh, struct bttv *btv,		      struct v4l2_format *f){	int retval;	switch (f->type) {	case V4L2_BUF_TYPE_VIDEO_CAPTURE:	{		const struct bttv_format *fmt;		retval = bttv_switch_type(fh,f->type);		if (0 != retval)			return retval;		retval = bttv_try_fmt(fh,btv,f);		if (0 != retval)			return retval;		fmt = format_by_fourcc(f->fmt.pix.pixelformat);		/* update our state informations */		down(&fh->cap.lock);		fh->fmt              = fmt;		fh->cap.field        = f->fmt.pix.field;		fh->cap.last         = V4L2_FIELD_NONE;		fh->width            = f->fmt.pix.width;		fh->height           = f->fmt.pix.height;		btv->init.fmt        = fmt;		btv->init.width      = f->fmt.pix.width;		btv->init.height     = f->fmt.pix.height;		up(&fh->cap.lock);		return 0;	}	case V4L2_BUF_TYPE_VIDEO_OVERLAY:		if (no_overlay > 0) {			printk ("V4L2_BUF_TYPE_VIDEO_OVERLAY: no_overlay\n");			return -EINVAL;		}		return setup_window(fh, btv, &f->fmt.win, 1);	case V4L2_BUF_TYPE_VBI_CAPTURE:		retval = bttv_switch_type(fh,f->type);		if (0 != retval)			return retval;		if (locked_btres(fh->btv, RESOURCE_VBI))                        return -EBUSY;		bttv_vbi_try_fmt(fh,f);		bttv_vbi_setlines(fh,btv,f->fmt.vbi.count[0]);		bttv_vbi_get_fmt(fh,f);		return 0;	default:		return -EINVAL;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bttv-driver.c/buggy/drivers/media/video/bttv-driver.c