diff options
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 809f6a664c4f..c56f26c93b7a 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -568,30 +568,7 @@ static struct mt352_config digitv_alps_tded4_config = { | |||
568 | static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) | 568 | static int tdvs_tua6034_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) |
569 | { | 569 | { |
570 | struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; | 570 | struct dvb_bt8xx_card *card = (struct dvb_bt8xx_card *) fe->dvb->priv; |
571 | u8 buf[4]; | 571 | return lg_h06xf_pll_set(fe, card->i2c_adapter, params); |
572 | struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; | ||
573 | int err; | ||
574 | |||
575 | dvb_pll_configure(&dvb_pll_tdvs_tua6034, buf, params->frequency, 0); | ||
576 | dprintk("%s: tuner at 0x%02x bytes: 0x%02x 0x%02x 0x%02x 0x%02x\n", | ||
577 | __FUNCTION__, msg.addr, buf[0],buf[1],buf[2],buf[3]); | ||
578 | if ((err = i2c_transfer(card->i2c_adapter, &msg, 1)) != 1) { | ||
579 | printk(KERN_WARNING "dvb-bt8xx: %s error " | ||
580 | "(addr %02x <- %02x, err = %i)\n", | ||
581 | __FUNCTION__, buf[0], buf[1], err); | ||
582 | if (err < 0) | ||
583 | return err; | ||
584 | else | ||
585 | return -EREMOTEIO; | ||
586 | } | ||
587 | |||
588 | /* Set the Auxiliary Byte. */ | ||
589 | buf[2] &= ~0x20; | ||
590 | buf[2] |= 0x18; | ||
591 | buf[3] = 0x50; | ||
592 | i2c_transfer(card->i2c_adapter, &msg, 1); | ||
593 | |||
594 | return 0; | ||
595 | } | 572 | } |
596 | 573 | ||
597 | static struct lgdt330x_config tdvs_tua6034_config = { | 574 | static struct lgdt330x_config tdvs_tua6034_config = { |