aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2008-05-17 21:58:04 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:06:06 -0400
commit4388c3b4fe0362e8bb3fe3a09b312db929b8c730 (patch)
tree28a34571da0769dc53fe030aadfb081142d54398 /drivers/media/dvb/ttpci
parent34cb61693e204897a6ae37d56a1e07d0cdd8cdbf (diff)
V4L/DVB (7912): TDA10023: make few parameters configurable
- separate TDA10021 and TDA10023 attach - configurable Xtal settings - configurable input freq offset + baseband conversion type settings Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/ttpci')
-rw-r--r--drivers/media/dvb/ttpci/budget-av.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/media/dvb/ttpci/budget-av.c b/drivers/media/dvb/ttpci/budget-av.c
index b30a5288e484..b7d1f2f18d3a 100644
--- a/drivers/media/dvb/ttpci/budget-av.c
+++ b/drivers/media/dvb/ttpci/budget-av.c
@@ -667,6 +667,11 @@ static struct tda1002x_config philips_cu1216_config_altaddress = {
667 .invert = 0, 667 .invert = 0,
668}; 668};
669 669
670static struct tda10023_config philips_cu1216_tda10023_config = {
671 .demod_address = 0x0c,
672 .invert = 1,
673};
674
670static int philips_tu1216_tuner_init(struct dvb_frontend *fe) 675static int philips_tu1216_tuner_init(struct dvb_frontend *fe)
671{ 676{
672 struct budget *budget = (struct budget *) fe->dvb->priv; 677 struct budget *budget = (struct budget *) fe->dvb->priv;
@@ -1019,9 +1024,10 @@ static void frontend_init(struct budget_av *budget_av)
1019 case SUBID_DVBC_KNC1_PLUS_MK3: 1024 case SUBID_DVBC_KNC1_PLUS_MK3:
1020 budget_av->reinitialise_demod = 1; 1025 budget_av->reinitialise_demod = 1;
1021 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240; 1026 budget_av->budget.dev->i2c_bitrate = SAA7146_I2C_BUS_BIT_RATE_240;
1022 fe = dvb_attach(tda10023_attach, &philips_cu1216_config, 1027 fe = dvb_attach(tda10023_attach,
1023 &budget_av->budget.i2c_adap, 1028 &philips_cu1216_tda10023_config,
1024 read_pwm(budget_av)); 1029 &budget_av->budget.i2c_adap,
1030 read_pwm(budget_av));
1025 if (fe) { 1031 if (fe) {
1026 fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set_params; 1032 fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set_params;
1027 } 1033 }