aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKirk Lapray <kirk.lapray@gmail.com>2005-11-09 00:38:40 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:29 -0500
commitd4c34aa024aef2be3f3deca751c335f72c3e32b6 (patch)
treead59aa0a61c93ebe4b113fcca41a57164ea8c002
parent6c3d67abdb79ff3e22cd19476c05294274434143 (diff)
[PATCH] V4L: 901: added function for nxt200x to change pll input
Added function for nxt200x to change pll input Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/media/video/cx88/cx88-dvb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c
index 1236cb11d83a..9cce91ec334b 100644
--- a/drivers/media/video/cx88/cx88-dvb.c
+++ b/drivers/media/video/cx88/cx88-dvb.c
@@ -296,10 +296,20 @@ static int nxt200x_set_ts_param(struct dvb_frontend* fe,
296 return 0; 296 return 0;
297} 297}
298 298
299static int nxt200x_set_pll_input(u8* buf, int input)
300{
301 if (input)
302 buf[3] |= 0x08;
303 else
304 buf[3] &= ~0x08;
305 return 0;
306}
307
299static struct nxt200x_config ati_hdtvwonder = { 308static struct nxt200x_config ati_hdtvwonder = {
300 .demod_address = 0x0a, 309 .demod_address = 0x0a,
301 .pll_address = 0x61, 310 .pll_address = 0x61,
302 .pll_desc = &dvb_pll_tuv1236d, 311 .pll_desc = &dvb_pll_tuv1236d,
312 .set_pll_input = nxt200x_set_pll_input,
303 .set_ts_params = nxt200x_set_ts_param, 313 .set_ts_params = nxt200x_set_ts_param,
304}; 314};
305#endif 315#endif