diff options
author | Svante Olofsson <svante@agentum.com> | 2005-09-09 16:02:48 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:41 -0400 |
commit | 115eea4e91049a42d81e5284cbb0f50acab6eb39 (patch) | |
tree | 9972a46642aa5cf67d2e11896f07a93d365f5bc0 /drivers/media/dvb/frontends/nxt6000.c | |
parent | 47dc3d688d04f06d8ef90a06c48930906fbc4a8c (diff) |
[PATCH] dvb: usb: digitv: support for nxt6000 demod
Add support for the NXT6000-based digitv-box. Add .get_tune_settings callback
for the NXT6000 to have a min_tune_delay of 500ms.
Signed-off-by: Svante Olofsson <svante@agentum.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/nxt6000.c')
-rw-r--r-- | drivers/media/dvb/frontends/nxt6000.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/nxt6000.c b/drivers/media/dvb/frontends/nxt6000.c index 966de9853d18..88a57b791112 100644 --- a/drivers/media/dvb/frontends/nxt6000.c +++ b/drivers/media/dvb/frontends/nxt6000.c | |||
@@ -482,6 +482,7 @@ static int nxt6000_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par | |||
482 | if ((result = nxt6000_set_inversion(state, param->inversion)) < 0) | 482 | if ((result = nxt6000_set_inversion(state, param->inversion)) < 0) |
483 | return result; | 483 | return result; |
484 | 484 | ||
485 | msleep(500); | ||
485 | return 0; | 486 | return 0; |
486 | } | 487 | } |
487 | 488 | ||
@@ -525,6 +526,12 @@ static int nxt6000_read_signal_strength(struct dvb_frontend* fe, u16* signal_str | |||
525 | return 0; | 526 | return 0; |
526 | } | 527 | } |
527 | 528 | ||
529 | static int nxt6000_fe_get_tune_settings(struct dvb_frontend* fe, struct dvb_frontend_tune_settings *tune) | ||
530 | { | ||
531 | tune->min_delay_ms = 500; | ||
532 | return 0; | ||
533 | } | ||
534 | |||
528 | static struct dvb_frontend_ops nxt6000_ops; | 535 | static struct dvb_frontend_ops nxt6000_ops; |
529 | 536 | ||
530 | struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, | 537 | struct dvb_frontend* nxt6000_attach(const struct nxt6000_config* config, |
@@ -578,6 +585,8 @@ static struct dvb_frontend_ops nxt6000_ops = { | |||
578 | 585 | ||
579 | .init = nxt6000_init, | 586 | .init = nxt6000_init, |
580 | 587 | ||
588 | .get_tune_settings = nxt6000_fe_get_tune_settings, | ||
589 | |||
581 | .set_frontend = nxt6000_set_frontend, | 590 | .set_frontend = nxt6000_set_frontend, |
582 | 591 | ||
583 | .read_status = nxt6000_read_status, | 592 | .read_status = nxt6000_read_status, |