From 94d1a7e98a2827fbd6d1956bbf20fb679c7b5d45 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Tue, 16 Aug 2005 10:13:32 +0000 Subject: added support for the NXT6000-based digitv-box. added .get_tune_settings callback for the NXT6000 to have a min_tune_delay of 500ms Signed-off-by: Svante Olofsson Signed-off-by: Patrick Boettcher --- linux/drivers/media/dvb/frontends/nxt6000.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'linux/drivers/media/dvb/frontends/nxt6000.c') diff --git a/linux/drivers/media/dvb/frontends/nxt6000.c b/linux/drivers/media/dvb/frontends/nxt6000.c index 966de9853..c4d1eac0c 100644 --- a/linux/drivers/media/dvb/frontends/nxt6000.c +++ b/linux/drivers/media/dvb/frontends/nxt6000.c @@ -482,6 +482,7 @@ static int nxt6000_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par if ((result = nxt6000_set_inversion(state, param->inversion)) < 0) return result; + msleep(500); return 0; } @@ -525,6 +526,12 @@ static int nxt6000_read_signal_strength(struct dvb_frontend* fe, u16* signal_str return 0; } +static int nxt6000_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings *tune) +{ + tune->min_delay_ms = 500; + return 0; +} + static struct dvb_frontend_ops nxt6000_ops; struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, @@ -577,6 +584,8 @@ static struct dvb_frontend_ops nxt6000_ops = { .release = nxt6000_release, .init = nxt6000_init, + + .get_tune_settings = nxt6000_fe_get_tune_settings, .set_frontend = nxt6000_set_frontend, -- cgit v1.2.3