static int gx1001_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) { struct gx1001_state *state = fe->demodulator_priv; demod_connect(state, p->frequency,p->u.qam.modulation,p->u.qam.symbol_rate); state->freq=p->frequency; state->mode=p->u.qam.modulation ; state->symbol_rate=p->u.qam.symbol_rate; //these data will be writed to eeprom pr_dbg("gx1001=>frequency=%d,symbol_rate=%d\r\n",p->frequency,p->u.qam.symbol_rate); return 0; }
static int cdx2834_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p) { struct cdx2834_state *state = fe->demodulator_priv; unsigned char s=0; state->mode = 0; //dump_stack(); state->freq=p->frequency; state->bandwidth=p->u.ofdm.bandwidth ; state->mode = p->u.ofdm.ofdm_mode; printk("state->mode %d \n",state->mode); printk("cdx2834=>frequency=%d,bandwidth=%d\r\n",p->frequency,state->bandwidth); demod_connect(state, p->frequency,p->u.ofdm.bandwidth); demod_check_locked(&s); if(s!=1) { state->mode = 1; p->u.ofdm.ofdm_mode = state->mode; printk(" Not T ,Lock T2\n"); demod_connect(state, p->frequency,p->u.ofdm.bandwidth); } return 0; }