18 #define deb_info(args...) dprintk(debug,0x01,args)
26 if (st->
ops.fifo_ctrl(adap->
fe_adap[0].fe, onoff)) {
27 err(
"error while controlling the fifo of the demod.");
52 if (st->
ops.pid_parse(adap->
fe_adap[0].fe, onoff) < 0)
53 err(
"could not handle pid_parser");
108 int wo = (rbuf ==
NULL || rlen == 0),
109 len = 2 + wlen + (wo ? 0 : 2);
112 sndbuf[1] = (addr << 1) | (wo ? 0 : 1);
114 memcpy(&sndbuf[2],wbuf,wlen);
117 sndbuf[wlen+2] = (rlen >> 8) & 0xff;
118 sndbuf[wlen+3] = rlen & 0xff;
135 for (i = 0; i < num; i++) {
138 && (msg[i+1].
flags & I2C_M_RD)) {
139 if (dibusb_i2c_msg(d, msg[i].addr, msg[i].
buf,msg[i].len,
140 msg[i+1].buf,msg[i+1].len) < 0)
143 }
else if ((msg[i].
flags & I2C_M_RD) == 0) {
144 if (dibusb_i2c_msg(d, msg[i].addr, msg[i].
buf,msg[i].len,
NULL,0) < 0)
146 }
else if (msg[i].addr != 0x50) {
150 if (dibusb_i2c_msg(d, msg[i].addr,
NULL, 0, msg[i].
buf, msg[i].len) < 0)
165 .master_xfer = dibusb_i2c_xfer,
166 .functionality = dibusb_i2c_func,
172 u8 wbuf[1] = { offs };
173 return dibusb_i2c_msg(d, 0x50, wbuf, 1, val, 1);
181 .setup = (1 << 8) | (5 << 5) | (1 << 4) | (1 << 3) | (0 << 2) | (2 << 0),
202 &dib3000p_mt2060_agc_config,
205 .ln_adc_level = 0x1cc7,
207 .output_mpeg2_in_188_bytes = 1,
215 .setup = (1 << 8) | (5 << 5) | (1 << 4) | (1 << 3) | (0 << 2) | (2 << 0),
235 #if defined(CONFIG_DVB_DIB3000MC) || \
236 (defined(CONFIG_DVB_DIB3000MC_MODULE) && defined(MODULE))
239 &dib3000p_panasonic_agc_config,
242 .ln_adc_level = 0x1cc7,
244 .output_mpeg2_in_188_bytes = 1,
253 adap->
dev->udev->descriptor.idProduct ==
259 &adap->
dev->i2c_adap,
261 &mod3000p_dib3000p_config);
264 &adap->
dev->i2c_adap,
266 &mod3000p_dib3000p_config);
302 warn(
"LITE-ON DVB-T: Strange IF1 calibration :%2X %2X\n", a, b);
313 }
while (a > 7 && (desc == 0xff || desc == 0x00));
315 if1 -= (0xff - desc);