diff options
author | Kirk Lapray <kirk.lapray@gmail.com> | 2005-11-09 00:36:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:06 -0500 |
commit | cc952d03c0c36ec9a4c2a683015dbb98e8a889df (patch) | |
tree | 98665704775768d666e434a969aad089388fb7b4 /drivers/media/dvb/frontends/nxt200x.c | |
parent | 496157d089c3caeda35017833ea3bb895f29ed15 (diff) |
[PATCH] dvb: nxt200x: Add function for nxt200x to change pll input
- Added function for nxt200x to change pll input
- For VSB set to input 0, for QAM set to input 1
- will only be set for cards that have set_pll_input defined
Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/frontends/nxt200x.c')
-rw-r--r-- | drivers/media/dvb/frontends/nxt200x.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/nxt200x.c b/drivers/media/dvb/frontends/nxt200x.c index 4cffe7ad9710..bad0933eb714 100644 --- a/drivers/media/dvb/frontends/nxt200x.c +++ b/drivers/media/dvb/frontends/nxt200x.c | |||
@@ -556,13 +556,18 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe, | |||
556 | if (state->config->set_ts_params) | 556 | if (state->config->set_ts_params) |
557 | state->config->set_ts_params(fe, 1); | 557 | state->config->set_ts_params(fe, 1); |
558 | 558 | ||
559 | /* set to use cable input */ | 559 | /* set input */ |
560 | buf[3] |= 0x08; | 560 | if (state->config->set_pll_input) |
561 | state->config->set_pll_input(buf, 1); | ||
561 | break; | 562 | break; |
562 | case VSB_8: | 563 | case VSB_8: |
563 | /* Set non-punctured clock for VSB */ | 564 | /* Set non-punctured clock for VSB */ |
564 | if (state->config->set_ts_params) | 565 | if (state->config->set_ts_params) |
565 | state->config->set_ts_params(fe, 0); | 566 | state->config->set_ts_params(fe, 0); |
567 | |||
568 | /* set input */ | ||
569 | if (state->config->set_pll_input) | ||
570 | state->config->set_pll_input(buf, 0); | ||
566 | break; | 571 | break; |
567 | default: | 572 | default: |
568 | return -EINVAL; | 573 | return -EINVAL; |