Commit cc952d03 authored by Kirk Lapray's avatar Kirk Lapray Committed by Linus Torvalds

[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: default avatarKirk Lapray <kirk.lapray@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 496157d0
...@@ -556,13 +556,18 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe, ...@@ -556,13 +556,18 @@ static int nxt200x_setup_frontend_parameters (struct dvb_frontend* fe,
if (state->config->set_ts_params) if (state->config->set_ts_params)
state->config->set_ts_params(fe, 1); state->config->set_ts_params(fe, 1);
/* set to use cable input */ /* set input */
buf[3] |= 0x08; if (state->config->set_pll_input)
state->config->set_pll_input(buf, 1);
break; break;
case VSB_8: case VSB_8:
/* Set non-punctured clock for VSB */ /* Set non-punctured clock for VSB */
if (state->config->set_ts_params) if (state->config->set_ts_params)
state->config->set_ts_params(fe, 0); state->config->set_ts_params(fe, 0);
/* set input */
if (state->config->set_pll_input)
state->config->set_pll_input(buf, 0);
break; break;
default: default:
return -EINVAL; return -EINVAL;
......
...@@ -42,6 +42,9 @@ struct nxt200x_config ...@@ -42,6 +42,9 @@ struct nxt200x_config
u8 pll_address; u8 pll_address;
struct dvb_pll_desc *pll_desc; struct dvb_pll_desc *pll_desc;
/* used to set pll input */
int (*set_pll_input)(u8* buf, int input);
/* need to set device param for start_dma */ /* need to set device param for start_dma */
int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured); int (*set_ts_params)(struct dvb_frontend* fe, int is_punctured);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment