22 #include <linux/errno.h>
24 #include <linux/kernel.h>
25 #include <linux/module.h>
26 #include <linux/string.h>
27 #include <linux/slab.h>
42 #define dprintk(__y, __z, format, arg...) do { \
44 if ((verbose > FE_ERROR) && (verbose > __y)) \
45 printk(KERN_ERR "%s: " format "\n", __func__ , ##arg); \
46 else if ((verbose > FE_NOTICE) && (verbose > __y)) \
47 printk(KERN_NOTICE "%s: " format "\n", __func__ , ##arg); \
48 else if ((verbose > FE_INFO) && (verbose > __y)) \
49 printk(KERN_INFO "%s: " format "\n", __func__ , ##arg); \
50 else if ((verbose > FE_DEBUG) && (verbose > __y)) \
51 printk(KERN_DEBUG "%s: " format "\n", __func__ , ##arg); \
54 printk(format, ##arg); \
87 static int isl6423_set_modulation(
struct dvb_frontend *fe)
101 err = isl6423_write(isl6423, reg_2);
129 err = isl6423_write(isl6423,
reg_3);
133 err = isl6423_write(isl6423,
reg_4);
179 err = isl6423_write(isl6423,
reg_3);
183 err = isl6423_write(isl6423,
reg_4);
203 switch (
config->current_max) {
231 err = isl6423_write(isl6423,
reg_3);
247 err = isl6423_write(isl6423,
reg_3);
282 isl6423->
reg_3 = 0x02 << 5;
284 isl6423->
reg_4 = 0x03 << 5;
286 if (isl6423_set_current(fe))
289 if (isl6423_set_modulation(fe))
292 fe->
ops.release_sec = isl6423_release;
293 fe->
ops.set_voltage = isl6423_set_voltage;
294 fe->
ops.enable_high_lnb_voltage = isl6423_voltage_boost;