From fa4d6a6cc217ca95ff1e337b7a107339caa0e542 Mon Sep 17 00:00:00 2001 From: Johannes Stezenbach Date: Sun, 27 Jun 2004 21:02:30 +0000 Subject: FE_GET_TUNE_SETTINGS fixes (missing break, changed timings) by Christopher Pascoe --- linux/drivers/media/dvb/frontends/mt352.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'linux/drivers/media/dvb') diff --git a/linux/drivers/media/dvb/frontends/mt352.c b/linux/drivers/media/dvb/frontends/mt352.c index 5f957db81..21079b606 100644 --- a/linux/drivers/media/dvb/frontends/mt352.c +++ b/linux/drivers/media/dvb/frontends/mt352.c @@ -521,9 +521,7 @@ static int mt352_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) u8 r,snr; fe_status_t *status; u16 signal; -#ifdef FE_GET_TUNE_SETTINGS - struct dvb_frontend_tune_settings* fe_tune_settings; -#endif + struct dvb_frontend_tune_settings *fe_tune_settings; switch (cmd) { case FE_GET_INFO: @@ -581,13 +579,12 @@ static int mt352_ioctl (struct dvb_frontend *fe, unsigned int cmd, void *arg) return mt352_get_parameters (i2c, (struct dvb_frontend_parameters *) arg,card_type); -#ifdef FE_GET_TUNE_SETTINGS case FE_GET_TUNE_SETTINGS: - fe_tune_settings = (struct dvb_frontend_tune_settings*) arg; - fe_tune_settings->min_delay_ms = 50; - fe_tune_settings->step_size = mt352_info.frequency_stepsize; - fe_tune_settings->max_drift = mt352_info.frequency_stepsize*2; -#endif + fe_tune_settings = (struct dvb_frontend_tune_settings *) arg; + fe_tune_settings->min_delay_ms = 800; + fe_tune_settings->step_size = 0; + fe_tune_settings->max_drift = 0; + break; case FE_SLEEP: return mt352_sleep(i2c); -- cgit v1.2.3