aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/dvb/ttpci/budget-ci.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/media/dvb/ttpci/budget-ci.c b/drivers/media/dvb/ttpci/budget-ci.c
index 086458ed36b0..154cc2de8113 100644
--- a/drivers/media/dvb/ttpci/budget-ci.c
+++ b/drivers/media/dvb/ttpci/budget-ci.c
@@ -878,6 +878,17 @@ static struct tda1004x_config philips_tdm1316l_config = {
878 .request_firmware = philips_tdm1316l_request_firmware, 878 .request_firmware = philips_tdm1316l_request_firmware,
879}; 879};
880 880
881static struct tda1004x_config philips_tdm1316l_config_invert = {
882
883 .demod_address = 0x8,
884 .invert = 1,
885 .invert_oclk = 0,
886 .xtal_freq = TDA10046_XTAL_4M,
887 .agc_config = TDA10046_AGC_DEFAULT,
888 .if_freq = TDA10046_FREQ_3617,
889 .request_firmware = philips_tdm1316l_request_firmware,
890};
891
881static int dvbc_philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params) 892static int dvbc_philips_tdm1316l_tuner_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
882{ 893{
883 struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv; 894 struct budget_ci *budget_ci = (struct budget_ci *) fe->dvb->priv;
@@ -1101,9 +1112,8 @@ static void frontend_init(struct budget_ci *budget_ci)
1101 1112
1102 case 0x1012: // TT DVB-T CI budget (tda10046/Philips tdm1316l(tda6651tt)) 1113 case 0x1012: // TT DVB-T CI budget (tda10046/Philips tdm1316l(tda6651tt))
1103 budget_ci->tuner_pll_address = 0x60; 1114 budget_ci->tuner_pll_address = 0x60;
1104 philips_tdm1316l_config.invert = 1;
1105 budget_ci->budget.dvb_frontend = 1115 budget_ci->budget.dvb_frontend =
1106 dvb_attach(tda10046_attach, &philips_tdm1316l_config, &budget_ci->budget.i2c_adap); 1116 dvb_attach(tda10046_attach, &philips_tdm1316l_config_invert, &budget_ci->budget.i2c_adap);
1107 if (budget_ci->budget.dvb_frontend) { 1117 if (budget_ci->budget.dvb_frontend) {
1108 budget_ci->budget.dvb_frontend->ops.tuner_ops.init = philips_tdm1316l_tuner_init; 1118 budget_ci->budget.dvb_frontend->ops.tuner_ops.init = philips_tdm1316l_tuner_init;
1109 budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = philips_tdm1316l_tuner_set_params; 1119 budget_ci->budget.dvb_frontend->ops.tuner_ops.set_params = philips_tdm1316l_tuner_set_params;