cx_write(MO_GP3_IO, cx88_boards[board].radio.gpio3); 
static int video_open(struct inode *inode, struct file *file){	int minor = iminor(inode);	struct cx8800_dev *h,*dev = NULL;	struct cx8800_fh *fh;	struct list_head *list;	enum v4l2_buf_type type = 0;	int radio = 0;	list_for_each(list,&cx8800_devlist) {		h = list_entry(list, struct cx8800_dev, devlist);		if (h->video_dev->minor == minor) {			dev  = h;			type = V4L2_BUF_TYPE_VIDEO_CAPTURE;		}		if (h->vbi_dev->minor == minor) {			dev  = h;			type = V4L2_BUF_TYPE_VBI_CAPTURE;		}		if (h->radio_dev &&		    h->radio_dev->minor == minor) {			radio = 1;			dev   = h;		}	}	if (NULL == dev)		return -ENODEV;	dprintk(1,"open minor=%d radio=%d type=%s\n",		minor,radio,v4l2_type_names[type]);	/* 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;	fh->radio    = radio;	fh->type     = type;	fh->width    = 320;	fh->height   = 240;	fh->fmt      = format_by_fourcc(V4L2_PIX_FMT_BGR24);	videobuf_queue_init(&fh->vidq, &cx8800_video_qops,			    dev->pci, &dev->slock,			    V4L2_BUF_TYPE_VIDEO_CAPTURE,			    V4L2_FIELD_INTERLACED,			    sizeof(struct cx88_buffer),			    fh);	videobuf_queue_init(&fh->vbiq, &cx8800_vbi_qops,			    dev->pci, &dev->slock,			    V4L2_BUF_TYPE_VBI_CAPTURE,			    V4L2_FIELD_SEQ_TB,			    sizeof(struct cx88_buffer),			    fh);	if (fh->radio) {		struct cx88_core *core = dev->core;		int board = core->board;		dprintk(1,"video_open: setting radio device\n");		cx_write(MO_GP0_IO, cx88_boards[board].radio.gpio0);		cx_write(MO_GP1_IO, cx88_boards[board].radio.gpio1);		cx_write(MO_GP2_IO, cx88_boards[board].radio.gpio2);		cx_write(MO_GP3_IO, cx88_boards[board].radio.gpio3);		dev->core->tvaudio = WW_FM;		cx88_set_tvaudio(core);		cx88_set_stereo(core,V4L2_TUNER_MODE_STEREO,1);		cx88_call_i2c_clients(dev->core,AUDC_SET_RADIO,NULL);	}        return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/fd3113e84e188781aa2935fbc4351d64ccdd171b/cx88-video.c/buggy/drivers/media/video/cx88/cx88-video.c