if (dev->tuner_type == TUNER_PHILIPS_TDA8290) { u8 data[2]; int ret; struct i2c_msg msg = {.addr=I2C_ADDR_TDA8290, .flags=0, .buf=data, .len = 2}; data[0] = 0x21; data[1] = 0xc0; ret = i2c_transfer(&dev->i2c_adap, &msg, 1); if (ret != 1) printk(KERN_ERR "TDA8290 access failure\n"); msg.addr = I2C_ADDR_TDA8275; data[0] = 0x30; data[1] = 0xd0; ret = i2c_transfer(&dev->i2c_adap, &msg, 1); if (ret != 1) printk(KERN_ERR "TDA8275 access failure\n"); msg.addr = I2C_ADDR_TDA8290; data[0] = 0x21; data[1] = 0x80; i2c_transfer(&dev->i2c_adap, &msg, 1); data[0] = 0x00; data[1] = 0x02; i2c_transfer(&dev->i2c_adap, &msg, 1); } 
saa7134_i2c_call_clients(dev, TUNER_SET_STANDBY, NULL); 
static int video_release(struct inode *inode, struct file *file){	struct saa7134_fh  *fh  = file->private_data;	struct saa7134_dev *dev = fh->dev;	unsigned long flags;	/* turn off overlay */	if (res_check(fh, RESOURCE_OVERLAY)) {		spin_lock_irqsave(&dev->slock,flags);		stop_preview(dev,fh);		spin_unlock_irqrestore(&dev->slock,flags);		res_free(dev,fh,RESOURCE_OVERLAY);	}	/* stop video capture */	if (res_check(fh, RESOURCE_VIDEO)) {		videobuf_streamoff(&fh->cap);		res_free(dev,fh,RESOURCE_VIDEO);	}	if (fh->cap.read_buf) {		buffer_release(&fh->cap,fh->cap.read_buf);		kfree(fh->cap.read_buf);	}	/* stop vbi capture */	if (res_check(fh, RESOURCE_VBI)) {		if (fh->vbi.streaming)			videobuf_streamoff(&fh->vbi);		if (fh->vbi.reading)			videobuf_read_stop(&fh->vbi);		res_free(dev,fh,RESOURCE_VBI);	}	/* ts-capture will not work in planar mode, so turn it off Hac: 04.05*/	saa_andorb(SAA7134_OFMT_VIDEO_A, 0x1f, 0);	saa_andorb(SAA7134_OFMT_VIDEO_B, 0x1f, 0);	saa_andorb(SAA7134_OFMT_DATA_A, 0x1f, 0);	saa_andorb(SAA7134_OFMT_DATA_B, 0x1f, 0);	if (dev->tuner_type == TUNER_PHILIPS_TDA8290) {		u8 data[2];		int ret;		struct i2c_msg msg = {.addr=I2C_ADDR_TDA8290, .flags=0, .buf=data, .len = 2};		data[0] = 0x21;		data[1] = 0xc0;		ret = i2c_transfer(&dev->i2c_adap, &msg, 1);		if (ret != 1)			printk(KERN_ERR "TDA8290 access failure\n");		msg.addr = I2C_ADDR_TDA8275;		data[0] = 0x30;		data[1] = 0xd0;		ret = i2c_transfer(&dev->i2c_adap, &msg, 1);		if (ret != 1)			printk(KERN_ERR "TDA8275 access failure\n");		msg.addr = I2C_ADDR_TDA8290;		data[0] = 0x21;		data[1] = 0x80;		i2c_transfer(&dev->i2c_adap, &msg, 1);		data[0] = 0x00;		data[1] = 0x02;		i2c_transfer(&dev->i2c_adap, &msg, 1);	}	/* free stuff */	videobuf_mmap_free(&fh->cap);	videobuf_mmap_free(&fh->vbi);	saa7134_pgtable_free(dev->pci,&fh->pt_cap);	saa7134_pgtable_free(dev->pci,&fh->pt_vbi);	v4l2_prio_close(&dev->prio,&fh->prio);	file->private_data = NULL;	kfree(fh);	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/2f1807102a3a5c9b9782b6e8d271fc8ccef91f0a/saa7134-video.c/buggy/drivers/media/video/saa7134/saa7134-video.c