diff options
author | Johannes Stezenbach <devnull@localhost> | 2004-06-27 21:02:30 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2004-06-27 21:02:30 +0000 |
commit | fa4d6a6cc217ca95ff1e337b7a107339caa0e542 (patch) | |
tree | a05b64b8dbe86aa6316ed2cab6ac23692ec94c49 /linux/drivers/media/dvb | |
parent | b79abe92690cfd8a5c855838870e1460fc23a69b (diff) | |
download | mediapointer-dvb-s2-fa4d6a6cc217ca95ff1e337b7a107339caa0e542.tar.gz mediapointer-dvb-s2-fa4d6a6cc217ca95ff1e337b7a107339caa0e542.tar.bz2 |
FE_GET_TUNE_SETTINGS fixes (missing break, changed timings)
by Christopher Pascoe
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r-- | linux/drivers/media/dvb/frontends/mt352.c | 15 |
1 files changed, 6 insertions, 9 deletions
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); |