struct tda10021_state* state = (struct tda10021_state*) fe->demodulator_priv; 
struct tda10021_state* state = fe->demodulator_priv; 
static int tda10021_set_parameters (struct dvb_frontend *fe,			    struct dvb_frontend_parameters *p){	struct tda10021_state* state = (struct tda10021_state*) fe->demodulator_priv;	//table for QAM4-QAM256 ready  QAM4  QAM16 QAM32 QAM64 QAM128 QAM256	//CONF	static const u8 reg0x00 [] = { 0x14, 0x00, 0x04, 0x08, 0x0c,  0x10 };	//AGCREF value	static const u8 reg0x01 [] = { 0x78, 0x8c, 0x8c, 0x6a, 0x78,  0x5c };	//LTHR value	static const u8 reg0x05 [] = { 0x78, 0x87, 0x64, 0x46, 0x36,  0x26 };	//MSETH	static const u8 reg0x08 [] = { 0x8c, 0xa2, 0x74, 0x43, 0x34,  0x23 };	//AREF	static const u8 reg0x09 [] = { 0x96, 0x91, 0x96, 0x6a, 0x7e,  0x6b };	int qam = p->u.qam.modulation;	if (qam < 0 || qam > 5)		return -EINVAL;	//printk("tda10021: set frequency to %d qam=%d symrate=%d\n", p->frequency,qam,p->u.qam.symbol_rate);	lock_tuner(state);	state->config->pll_set(fe, p);	unlock_tuner(state);	tda10021_set_symbolrate (state, p->u.qam.symbol_rate);	tda10021_writereg (state, 0x34, state->pwm);	tda10021_writereg (state, 0x01, reg0x01[qam]);	tda10021_writereg (state, 0x05, reg0x05[qam]);	tda10021_writereg (state, 0x08, reg0x08[qam]);	tda10021_writereg (state, 0x09, reg0x09[qam]);	tda10021_setup_reg0 (state, reg0x00[qam], p->inversion);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/b8742700f13163ffa00cddce2a3c940b9ab2ab5a/tda10021.c/clean/drivers/media/dvb/frontends/tda10021.c