struct or51132_state* state = (struct or51132_state*) fe->demodulator_priv; 
struct or51132_state* state = fe->demodulator_priv; 
static int or51132_setmode(struct dvb_frontend* fe){	struct or51132_state* state = (struct or51132_state*) fe->demodulator_priv;	unsigned char cmd_buf[4];	dprintk("setmode %d\n",(int)state->current_modulation);	/* set operation mode in Receiver 1 register; */	cmd_buf[0] = 0x04;	cmd_buf[1] = 0x01;	switch (state->current_modulation) {	case QAM_256:	case QAM_64:	case QAM_AUTO:		/* Auto-deinterleave; MPEG ser, MPEG2tr, phase noise-high*/		cmd_buf[2] = 0x5F;		break;	case VSB_8:		/* Auto CH, Auto NTSC rej, MPEGser, MPEG2tr, phase noise-high*/		cmd_buf[2] = 0x50;		break;	default:		printk("setmode:Modulation set to unsupported value\n");	};	cmd_buf[3] = 0x00;	if (i2c_writebytes(state,state->config->demod_address,			   cmd_buf,3)) {		printk(KERN_WARNING "or51132: set_mode error 1\n");		return -1;	}	dprintk("or51132: set #1 to %02x\n", cmd_buf[2]);	/* Set operation mode in Receiver 6 register */	cmd_buf[0] = 0x1C;	switch (state->current_modulation) {	case QAM_AUTO:		/* REC MODE Normal Carrier Lock */		cmd_buf[1] = 0x00;		/* Channel MODE Auto QAM64/256 */		cmd_buf[2] = 0x4f;		break;	case QAM_256:		/* REC MODE Normal Carrier Lock */		cmd_buf[1] = 0x00;		/* Channel MODE QAM256 */		cmd_buf[2] = 0x45;		break;	case QAM_64:		/* REC MODE Normal Carrier Lock */		cmd_buf[1] = 0x00;		/* Channel MODE QAM64 */		cmd_buf[2] = 0x43;		break;	case VSB_8:		 /* REC MODE inv IF spectrum, Normal */		cmd_buf[1] = 0x03;		/* Channel MODE ATSC/VSB8 */		cmd_buf[2] = 0x06;		break;	default:		printk("setmode: Modulation set to unsupported value\n");	};	cmd_buf[3] = 0x00;	msleep(20); /* 20ms */	if (i2c_writebytes(state,state->config->demod_address,			   cmd_buf,3)) {		printk(KERN_WARNING "or51132: set_mode error 2\n");		return -1;	}	dprintk("or51132: set #6 to 0x%02x%02x\n", cmd_buf[1], cmd_buf[2]);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/or51132.c/clean/drivers/media/dvb/frontends/or51132.c