} while (xok != 1 ); 
} while (xok != 1 ); 
static int mt2032_init(struct i2c_client *c){	struct tuner *t = i2c_get_clientdata(c);        unsigned char buf[21];        int ret,xogc,xok=0;	// Initialize Registers per spec.        buf[1]=2; // Index to register 2        buf[2]=0xff;        buf[3]=0x0f;        buf[4]=0x1f;        ret=i2c_master_send(c,buf+1,4);        buf[5]=6; // Index register 6        buf[6]=0xe4;        buf[7]=0x8f;        buf[8]=0xc3;        buf[9]=0x4e;        buf[10]=0xec;        ret=i2c_master_send(c,buf+5,6);        buf[12]=13;  // Index register 13        buf[13]=0x32;        ret=i2c_master_send(c,buf+12,2);        // Adjust XOGC (register 7), wait for XOK        xogc=7;        do {		tuner_dbg("mt2032: xogc = 0x%02x\n",xogc&0x07);                mdelay(10);                buf[0]=0x0e;                i2c_master_send(c,buf,1);                i2c_master_recv(c,buf,1);                xok=buf[0]&0x01;                tuner_dbg("mt2032: xok = 0x%02x\n",xok);                if (xok == 1) break;                xogc--;                tuner_dbg("mt2032: xogc = 0x%02x\n",xogc&0x07);                if (xogc == 3) {                        xogc=4; // min. 4 per spec                        break;                }                buf[0]=0x07;                buf[1]=0x88 + xogc;                ret=i2c_master_send(c,buf,2);                if (ret!=2)			tuner_warn("i2c i/o error: rc == %d (should be 2)\n",ret);        } while (xok != 1 );	t->xogc=xogc;	t->tv_freq    = mt2032_set_tv_freq;	t->radio_freq = mt2032_set_radio_freq;        return(1);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/mt20xx.c/clean/drivers/media/video/mt20xx.c