/* thread/frontend values */
struct dvb_device *dvbdev;
- struct dvb_frontend_parameters parameters_in;
struct dvb_frontend_parameters parameters_out;
struct dvb_fe_events events;
struct semaphore sem;
fepriv->algo_status |= DVBFE_ALGO_SEARCH_AGAIN;
fepriv->delay = HZ / 2;
}
- fepriv->parameters_out = fepriv->parameters_in;
fe->ops.read_status(fe, &s);
if (s != fepriv->status) {
dvb_frontend_add_event(fe, s); /* update event list */
{
int r = 0;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
- struct dvb_frontend_private *fepriv = fe->frontend_priv;
- dtv_property_dump(tvp);
/* Allow the frontend to validate incoming properties */
if (fe->ops.set_property) {
c->state = tvp->cmd;
dprintk("%s() Finalised property cache\n", __func__);
- /* Needed, due to status update */
- dtv_property_legacy_params_sync(fe, &fepriv->parameters_in);
-
r = dtv_set_frontend(fe);
break;
case DTV_FREQUENCY:
if (dvb_frontend_check_parameters(fe) < 0)
return -EINVAL;
- /*
- * Initialize output parameters to match the values given by
- * the user. FE_SET_FRONTEND triggers an initial frontend event
- * with status = 0, which copies output parameters to userspace.
- *
- * This is still needed for DVBv5 calls, due to event state update.
- */
- fepriv->parameters_out = fepriv->parameters_in;
-
/*
* Be sure that the bandwidth will be filled for all
* non-satellite systems, as tuners need to know what
break;
case FE_SET_FRONTEND:
- /* Synchronise DVBv5 parameters from DVBv3 */
- memcpy (&fepriv->parameters_in, parg,
- sizeof (struct dvb_frontend_parameters));
-
err = set_delivery_system(fe, SYS_UNDEFINED);
if (err)
break;
- err = dtv_property_cache_sync(fe, c, &fepriv->parameters_in);
+ err = dtv_property_cache_sync(fe, c, parg);
if (err)
break;
err = dtv_set_frontend(fe);
break;
case FE_GET_FRONTEND:
- err = dtv_get_frontend(fe, &fepriv->parameters_out);
- if (err >= 0)
- memcpy(parg, &fepriv->parameters_out,
- sizeof(struct dvb_frontend_parameters));
+ err = dtv_get_frontend(fe, parg);
break;
case FE_SET_FRONTEND_TUNE_MODE: