21 #include <linux/signal.h>
22 #include <linux/sched.h>
37 #define MANTIS_MODEL_NAME "VP-2040"
38 #define MANTIS_DEV_TYPE "DVB-C"
41 .demod_address = 0x18 >> 1,
46 .demod_address = 0x18 >> 1,
50 static int tda1002x_cu1216_tuner_set(
struct dvb_frontend *fe)
57 struct i2c_msg msg = {.addr = 0x60, .flags = 0, .buf =
buf, .len =
sizeof(
buf)};
60 #define CU1216_IF 36125000
61 #define TUNER_MUL 62500
65 buf[0] = (div >> 8) & 0x7f;
68 buf[3] = (p->
frequency < 150000000 ? 0x01 :
73 if (fe->
ops.i2c_gate_ctrl)
74 fe->
ops.i2c_gate_ctrl(fe, 1);
82 for (i = 0; i < 20; i++) {
83 if (fe->
ops.i2c_gate_ctrl)
84 fe->
ops.i2c_gate_ctrl(fe, 1);
86 if (
i2c_transfer(adapter, &msg, 1) == 1 && (buf[0] & 0x40))
97 if (fe->
ops.i2c_gate_ctrl)
98 fe->
ops.i2c_gate_ctrl(fe, 1);
113 {.
addr = 0x50, .flags = 0, .buf = &
b, .len = 1},
114 {.addr = 0x50, .flags =
I2C_M_RD, .buf = &
pwm, .len = 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;
184 .frontend_init = vp2040_frontend_init,