printk("Write 0 tp VPSTATUS\n"); buf[0]=BT832_VP_STATUS; buf[1]= 0x00; if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) printk("bt832: i2c i/o error VPS: rc == %d (should be 2)\n",rc); 
printk("Write 0 tp VPSTATUS\n"); buf[0]=BT832_VP_STATUS; buf[1]= 0x00; if (2 != (rc = i2c_master_send(i2c_client_s,buf,2))) printk("bt832: i2c i/o error VPS: rc == %d (should be 2)\n",rc); 
int bt832_init(struct i2c_client *i2c_client_s){	unsigned char *buf;	int rc;	buf=kmalloc(65,GFP_KERNEL);	bt832_hexdump(i2c_client_s,buf);	if(buf[0x40] != 0x31) {		printk("bt832: this i2c chip is no bt832 (id=%02x). Detaching.\n",buf[0x40]);		kfree(buf);		return 0;	}        printk("Write 0 tp VPSTATUS\n");        buf[0]=BT832_VP_STATUS; // Reg.52        buf[1]= 0x00;        if (2 != (rc = i2c_master_send(i2c_client_s,buf,2)))                printk("bt832: i2c i/o error VPS: rc == %d (should be 2)\n",rc);        bt832_hexdump(i2c_client_s,buf);	// Leave low power mode:	printk("Bt832: leave low power mode.\n");	buf[0]=BT832_CAM_SETUP0; //0x39 57	buf[1]=0x08;	if (2 != (rc = i2c_master_send(i2c_client_s,buf,2)))                printk("bt832: i2c i/o error LLPM: rc == %d (should be 2)\n",rc);        bt832_hexdump(i2c_client_s,buf);	printk("Write 0 tp VPSTATUS\n");        buf[0]=BT832_VP_STATUS; // Reg.52        buf[1]= 0x00;        if (2 != (rc = i2c_master_send(i2c_client_s,buf,2)))                printk("bt832: i2c i/o error VPS: rc == %d (should be 2)\n",rc);        bt832_hexdump(i2c_client_s,buf);	// Enable Output	printk("Enable Output\n");	buf[0]=BT832_VP_CONTROL1; // Reg.40	buf[1]= 0x27 & (~0x01); // Default | !skip	if (2 != (rc = i2c_master_send(i2c_client_s,buf,2)))                printk("bt832: i2c i/o error EO: rc == %d (should be 2)\n",rc);        bt832_hexdump(i2c_client_s,buf);	// for testing (even works when no camera attached)	printk("bt832: *** Generate NTSC M Bars *****\n");	buf[0]=BT832_VP_TESTCONTROL0; // Reg. 42	buf[1]=3; // Generate NTSC System M bars, Generate Frame timing internally        if (2 != (rc = i2c_master_send(i2c_client_s,buf,2)))                printk("bt832: i2c i/o error MBAR: rc == %d (should be 2)\n",rc);	printk("Bt832: Camera Present: %s\n",		(buf[1+BT832_CAM_STATUS] & BT832_56_CAMERA_PRESENT) ? "yes":"no");        bt832_hexdump(i2c_client_s,buf);	kfree(buf);	return 1;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/bt832.c/buggy/drivers/media/video/bt832.c