diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-04-18 16:47:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:58:30 -0400 |
commit | 7c25039dbb45f3e6a34dabe715107d34d298dc40 (patch) | |
tree | 861fd1121e5648d29c021b4d42d0b2abe800f5dc /drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |
parent | 55bbcdefc525236bd6ed691456923322be4a82c7 (diff) |
V4L/DVB (3844): B2c2-flexcop: use fe_lgh06xf.h
- removed duplicated tuning code for LG TDVS H061F
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/b2c2/flexcop-fe-tuner.c')
-rw-r--r-- | drivers/media/dvb/b2c2/flexcop-fe-tuner.c | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c index 9c7f122826e0..79f9930b7255 100644 --- a/drivers/media/dvb/b2c2/flexcop-fe-tuner.c +++ b/drivers/media/dvb/b2c2/flexcop-fe-tuner.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include "stv0297.h" | 14 | #include "stv0297.h" |
15 | #include "mt312.h" | 15 | #include "mt312.h" |
16 | #include "lgdt330x.h" | 16 | #include "lgdt330x.h" |
17 | #include "fe_lgh06xf.h" | ||
17 | #include "dvb-pll.h" | 18 | #include "dvb-pll.h" |
18 | 19 | ||
19 | /* lnb control */ | 20 | /* lnb control */ |
@@ -301,38 +302,7 @@ static int lgdt3303_pll_set(struct dvb_frontend* fe, | |||
301 | struct dvb_frontend_parameters* params) | 302 | struct dvb_frontend_parameters* params) |
302 | { | 303 | { |
303 | struct flexcop_device *fc = fe->dvb->priv; | 304 | struct flexcop_device *fc = fe->dvb->priv; |
304 | u8 buf[4]; | 305 | return lg_h06xf_pll_set(fe, &fc->i2c_adap, params); |
305 | struct i2c_msg msg = | ||
306 | { .addr = 0x61, .flags = 0, .buf = buf, .len = 4 }; | ||
307 | int err; | ||
308 | |||
309 | dvb_pll_configure(&dvb_pll_tdvs_tua6034,buf, params->frequency, 0); | ||
310 | dprintk(1, "%s: tuner at 0x%02x bytes: 0x%02x 0x%02x 0x%02x 0x%02x\n", | ||
311 | __FUNCTION__, msg.addr, buf[0],buf[1],buf[2],buf[3]); | ||
312 | if ((err = i2c_transfer(&fc->i2c_adap, &msg, 1)) != 1) { | ||
313 | printk(KERN_WARNING "lgdt3303: %s error " | ||
314 | "(addr %02x <- %02x, err = %i)\n", | ||
315 | __FUNCTION__, buf[0], buf[1], err); | ||
316 | if (err < 0) | ||
317 | return err; | ||
318 | else | ||
319 | return -EREMOTEIO; | ||
320 | } | ||
321 | |||
322 | buf[0] = 0x86 | 0x18; | ||
323 | buf[1] = 0x50; | ||
324 | msg.len = 2; | ||
325 | if ((err = i2c_transfer(&fc->i2c_adap, &msg, 1)) != 1) { | ||
326 | printk(KERN_WARNING "lgdt3303: %s error " | ||
327 | "(addr %02x <- %02x, err = %i)\n", | ||
328 | __FUNCTION__, buf[0], buf[1], err); | ||
329 | if (err < 0) | ||
330 | return err; | ||
331 | else | ||
332 | return -EREMOTEIO; | ||
333 | } | ||
334 | |||
335 | return 0; | ||
336 | } | 306 | } |
337 | 307 | ||
338 | static struct lgdt330x_config air2pc_atsc_hd5000_config = { | 308 | static struct lgdt330x_config air2pc_atsc_hd5000_config = { |