summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2005-06-12 01:50:25 +0000
committerAndrew de Quincy <devnull@localhost>2005-06-12 01:50:25 +0000
commit32aa3a176791b7bd47139faa6152266515912cb6 (patch)
tree7cabd837ff26ffa04c98aa86539340ca4c5b61b6 /linux/drivers/media
parent9063d41450ed6d9925a8e36d89bc3eb1c4ce71aa (diff)
downloadmediapointer-dvb-s2-32aa3a176791b7bd47139faa6152266515912cb6.tar.gz
mediapointer-dvb-s2-32aa3a176791b7bd47139faa6152266515912cb6.tar.bz2
Fixed initialisation of LNBP21
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget.c16
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)