21 #include <linux/signal.h>
22 #include <linux/sched.h>
37 #define MANTIS_MODEL_NAME "VP-2033"
38 #define MANTIS_DEV_TYPE "DVB-C"
41 .demod_address = 0x18 >> 1,
46 .demod_address = 0x18 >> 1,
57 {.addr = 0x50, .flags = 0, .buf = &
b, .len = 1},
58 {.addr = 0x50, .flags =
I2C_M_RD, .buf = &
pwm, .len = 1}
68 static int tda1002x_cu1216_tuner_set(
struct dvb_frontend *fe)
78 #define CU1216_IF 36125000
79 #define TUNER_MUL 62500
83 buf[0] = (div >> 8) & 0x7f;
86 buf[3] = (p->
frequency < 150000000 ? 0x01 :
91 if (fe->
ops.i2c_gate_ctrl)
92 fe->
ops.i2c_gate_ctrl(fe, 1);
100 for (i = 0; i < 20; i++) {
101 if (fe->
ops.i2c_gate_ctrl)
102 fe->
ops.i2c_gate_ctrl(fe, 1);
104 if (
i2c_transfer(adapter, &msg, 1) == 1 && (buf[0] & 0x40))
115 if (fe->
ops.i2c_gate_ctrl)
116 fe->
ops.i2c_gate_ctrl(fe, 1);
142 "found Philips CU1216 DVB-C frontend (TDA10021) @ 0x%02x",
151 "found Philips CU1216 DVB-C frontend (TDA10023) @ 0x%02x",
157 fe->
ops.tuner_ops.set_params = tda1002x_cu1216_tuner_set;
185 .frontend_init = vp2033_frontend_init,