aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/budget-av.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-11-19 12:10:59 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-10 06:04:56 -0500
commit61cebe9db7992c2c6ccb91f179f56008e74c2de1 (patch)
tree63b4bcf4c6e81107e4b3453e15e6dd3212de387f /drivers/media/dvb/ttpci/budget-av.c
parentb07b4783fb30dee8c542fc76ed8993108d46d6aa (diff)
V4L/DVB (4855): Support KNC1 DVBC cards with alternative tda10021 i2c address
For some reason, some of these cards have the tda10021 configured to a different address. This adds support for such cards Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/budget-av.c')
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index c7312420c37d..461e8d75b632 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -655,6 +655,10 @@ static struct tda10021_config philips_cu1216_config = {
655 .demod_address = 0x0c, 655 .demod_address = 0x0c,
656}; 656};
657 657
658static struct tda10021_config philips_cu1216_config_altaddress = {
659 .demod_address = 0x0d,
660};
661
658 662
659 663
660 664
@@ -1013,6 +1017,10 @@ static void frontend_init(struct budget_av *budget_av)
1013 fe = dvb_attach(tda10021_attach, &philips_cu1216_config, 1017 fe = dvb_attach(tda10021_attach, &philips_cu1216_config,
1014 &budget_av->budget.i2c_adap, 1018 &budget_av->budget.i2c_adap,
1015 read_pwm(budget_av)); 1019 read_pwm(budget_av));
1020 if (fe == NULL)
1021 fe = dvb_attach(tda10021_attach, &philips_cu1216_config_altaddress,
1022 &budget_av->budget.i2c_adap,
1023 read_pwm(budget_av));
1016 if (fe) { 1024 if (fe) {
1017 budget_av->tda10021_poclkp = 1; 1025 budget_av->tda10021_poclkp = 1;
1018 budget_av->tda10021_set_frontend = fe->ops.set_frontend; 1026 budget_av->tda10021_set_frontend = fe->ops.set_frontend;