diff options
-rw-r--r-- | linux/drivers/media/dvb/ttpci/budget.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget.c b/linux/drivers/media/dvb/ttpci/budget.c index 2fe501120..550140a00 100644 --- a/linux/drivers/media/dvb/ttpci/budget.c +++ b/linux/drivers/media/dvb/ttpci/budget.c @@ -226,6 +226,14 @@ static int lnbp21_enable_high_lnb_voltage(struct dvb_frontend* fe, int arg) return 0; } +static void lnbp21_init(struct budget* budget) +{ + u8 buf = 0x00; + struct i2c_msg msg = { .addr = 0x08, .flags = 0, .buf = &buf, .len = sizeof(buf) }; + + i2c_transfer (&budget->i2c_adap, &msg, 1); +} + static int alps_bsrv2_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) { struct budget* budget = (struct budget*) fe->dvb->priv; @@ -546,6 +554,7 @@ static void frontend_init(struct budget *budget) if (budget->dvb_frontend) { budget->dvb_frontend->ops->set_voltage = lnbp21_set_voltage; budget->dvb_frontend->ops->enable_high_lnb_voltage = lnbp21_enable_high_lnb_voltage; + lnbp21_init(budget); break; } */ @@ -557,21 +566,14 @@ static void frontend_init(struct budget *budget) budget->dev->pci->device, budget->dev->pci->subsystem_vendor, budget->dev->pci->subsystem_device); - return; } else { if (dvb_register_frontend(&budget->dvb_adapter, budget->dvb_frontend)) { printk("budget: Frontend registration failed!\n"); if (budget->dvb_frontend->ops->release) budget->dvb_frontend->ops->release(budget->dvb_frontend); budget->dvb_frontend = NULL; - return; } } - - if (budget->dev->pci->subsystem_device == 0x1016) { - lnbp21_set_voltage(budget->dvb_frontend, SEC_VOLTAGE_OFF); - lnbp21_enable_high_lnb_voltage(budget->dvb_frontend, 0); - } } static int budget_attach (struct saa7146_dev* dev, struct saa7146_pci_extension_data *info) |