Example #1
0
int d6158earda_set_frontend(struct dvb_frontend *fe, struct dvb_frontend_parameters *p)
{
	struct dvb_d6158_fe_ofdm_state *state = fe->demodulator_priv;
	struct dtv_frontend_properties *props = &fe->dtv_property_cache;

	printk("-----------------------d6158earda_set_frontend\n");
	printk("freq %d, bw %d, system %d, stream_id %d\n", props->frequency, props->bandwidth_hz,
	       props->delivery_system, props->stream_id);

	state->p = p;
	demod_d6158earda_ScanFreq(p, &state->spark_nimdev, props->delivery_system,
				  props->stream_id != NO_STREAM_ID_FILTER ? props->stream_id : 0);
	state->p = NULL;
	return 0;
}
Example #2
0
int d6158earda_set_frontend(struct dvb_frontend* fe,
							struct dvb_frontend_parameters *p)
{
	struct dvb_d6158_fe_ofdm_state* state = fe->demodulator_priv;
	struct nim_device *dev = &state->spark_nimdev;
	struct nim_panic6158_private *priv = dev->priv;
	//UINT8 lock;
	state->p = p;
	printk("-----------------------d6158_set_frontend\n");
	//nim_panic6158_get_lock(dev,&lock);
	//if(lock != 1)
	{
		demod_d6158earda_ScanFreq(p, &state->spark_nimdev, priv->system);
	}
	state->p = NULL;

	return 0;
}