}
if (stat & MANTIS_INT_I2CRACK) {
dprintk(verbose, MANTIS_DEBUG, 0, "* I2C R-ACK *");
-// wake_up(&mantis->i2c_wq);
}
if (stat & MANTIS_INT_PCMCIA7) {
dprintk(verbose, MANTIS_DEBUG, 0, "* PCMCIA-07 *");
#include "mantis_common.h"
#include "mantis_vp2033.h"
-struct tda10021_state {
- struct i2c_adapter *i2c;
- struct dvb_frontend_ops ops;
- /* configuration settings */
- const struct tda10021_config *config;
- struct dvb_frontend frontend;
-
- u8 pwm;
- u8 reg0;
-};
-
#define MANTIS_MODEL_NAME "VP-2033"
#define MANTIS_DEV_TYPE "DVB-C"
int philips_cu1216_tuner_set(struct dvb_frontend *fe,
struct dvb_frontend_parameters *params)
{
-// struct tda10021_state *state = fe->demodulator_priv;
struct mantis_pci *mantis = fe->dvb->priv;
u8 buf[4];
buf[3] = (params->frequency < 150000000 ? 0xA1 :
params->frequency < 445000000 ? 0x92 : 0x34);
-// if (i2c_transfer(state->i2c, &msg, 1) < 0) {
if (i2c_transfer(&mantis->adapter, &msg, 1) < 0) {
printk("%s tuner not ack!\n", __FUNCTION__);
return -EIO;
}
msleep(100);
+
return 0;
}