/* FIXME: locking against other video device */ cx88_set_scale(dev->core, dev->width, dev->height, V4L2_FIELD_INTERLACED);  
static int mpeg_open(struct inode *inode, struct file *file){	int minor = iminor(inode);	struct cx8802_dev *h,*dev = NULL;	struct cx8802_fh *fh;	struct list_head *list;	list_for_each(list,&cx8802_devlist) {		h = list_entry(list, struct cx8802_dev, devlist);		if (h->mpeg_dev->minor == minor)			dev = h;	}	if (NULL == dev)		return -ENODEV;	if (blackbird_initialize_codec(dev) < 0)		return -EINVAL;	dprintk(1,"open minor=%d\n",minor);	/* allocate + initialize per filehandle data */	fh = kmalloc(sizeof(*fh),GFP_KERNEL);	if (NULL == fh)		return -ENOMEM;	memset(fh,0,sizeof(*fh));	file->private_data = fh;	fh->dev      = dev;	/* FIXME: locking against other video device */	cx88_set_scale(dev->core, dev->width, dev->height,		       V4L2_FIELD_INTERLACED);	videobuf_queue_init(&fh->mpegq, &blackbird_qops,			    dev->pci, &dev->slock,			    V4L2_BUF_TYPE_VIDEO_CAPTURE,			    V4L2_FIELD_TOP,			    sizeof(struct cx88_buffer),			    fh);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/31629424132c87f7c8bd79d7ed4d014354a06427/cx88-blackbird.c/clean/drivers/media/video/cx88/cx88-blackbird.c