summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-04-18 21:47:08 +0100
committerMichael Krufky <mkrufky@linuxtv.org>2006-04-18 21:47:08 +0100
commitee251cb9eca08f2c9c0aef8507efab64bfa32e99 (patch)
tree9004d0d46b7214d9e2212da7f1fc6c98fc2b4318 /linux/drivers/media/dvb
parenta9ccefdfb8e688f194b7c5aa82f7526c65555215 (diff)
downloadmediapointer-dvb-s2-ee251cb9eca08f2c9c0aef8507efab64bfa32e99.tar.gz
mediapointer-dvb-s2-ee251cb9eca08f2c9c0aef8507efab64bfa32e99.tar.bz2
dvb-bt8xx: use fe_lgh06xf.h
From: Michael Krufky <mkrufky@linuxtv.org> - removed duplicated tuning code for LG TDVS H064F Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c25
-rw-r--r--linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h1
2 files changed, 2 insertions, 24 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
index 0e01863ab..93aaaa4e5 100644
--- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
+++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
@@ -569,30 +569,7 @@ static struct mt352_config digitv_alps_tded4_config = {
static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
{
struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv;
- u8 buf[4];
- struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) };
- int err;
-
- dvb_pll_configure(&dvb_pll_tdvs_tua6034, buf, params->frequency, 0);
- dprintk("%s: tuner at 0x%02x bytes: 0x%02x 0x%02x 0x%02x 0x%02x\n",
- __FUNCTION__, msg.addr, buf[0],buf[1],buf[2],buf[3]);
- if ((err = i2c_transfer(card->i2c_adapter, &msg, 1)) != 1) {
- printk(KERN_WARNING "dvb-bt8xx: %s error "
- "(addr %02x <- %02x, err = %i)\n",
- __FUNCTION__, buf[0], buf[1], err);
- if (err < 0)
- return err;
- else
- return -EREMOTEIO;
- }
-
- /* Set the Auxiliary Byte. */
- buf[2] &= ~0x20;
- buf[2] |= 0x18;
- buf[3] = 0x50;
- i2c_transfer(card->i2c_adapter, &msg, 1);
-
- return 0;
+ return lg_h06xf_pll_set(fe, card->i2c_adapter, params);
}
static struct lgdt330x_config tdvs_tua6034_config = {
diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h
index 626718774..ad261b593 100644
--- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h
+++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.h
@@ -40,6 +40,7 @@
#include "cx24110.h"
#include "or51211.h"
#include "lgdt330x.h"
+#include "fe_lgh06xf.h"
#include "zl10353.h"
struct dvb_bt8xx_card {