Commit e2adbecf authored by Aapo Tahkola's avatar Aapo Tahkola Committed by Mauro Carvalho Chehab

V4L/DVB (5130): M920x: misc updates and fixes

- hardware pid filtering no longer enabled unless in usb 1.x mode
- more responsive rc handling
- some minor bug fixes and code refolding
- m9206_write delay dropped (doesn't seem to be needed)
Signed-off-by: default avatarAapo Tahkola <aet@rasterburn.org>
Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 017cf012
This diff is collapsed.
...@@ -7,4 +7,22 @@ ...@@ -7,4 +7,22 @@
extern int dvb_usb_m920x_debug; extern int dvb_usb_m920x_debug;
#define deb_rc(args...) dprintk(dvb_usb_m920x_debug,0x01,args) #define deb_rc(args...) dprintk(dvb_usb_m920x_debug,0x01,args)
#define M9206_CORE 0x22
#define M9206_RC_STATE 0xff51
#define M9206_RC_KEY 0xff52
#define M9206_RC_INIT1 0xff54
#define M9206_RC_INIT2 0xff55
#define M9206_FW_GO 0xff69
#define M9206_I2C 0x23
#define M9206_FILTER 0x25
#define M9206_FW 0x30
#define M9206_MAX_FILTERS 8
struct m9206_state {
u16 filters[M9206_MAX_FILTERS];
int filtering_enabled;
int rep_count;
};
#endif #endif
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define QT1010_MIN_STEP 2000000 #define QT1010_MIN_STEP 2000000
#define QT1010_MIN_FREQ 48000000 #define QT1010_MIN_FREQ 48000000
static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params, u8 *buf, int buf_len) static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
{ {
int i; int i;
int div, mod; int div, mod;
...@@ -85,9 +85,6 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame ...@@ -85,9 +85,6 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame
if (freq % QT1010_MIN_STEP) if (freq % QT1010_MIN_STEP)
printk("frequency not supported.\n"); printk("frequency not supported.\n");
(void) buf;
(void) buf_len;
div = (freq - QT1010_MIN_FREQ) / QT1010_MIN_STEP; div = (freq - QT1010_MIN_FREQ) / QT1010_MIN_STEP;
mod = (div + 16 - 9) % 16; mod = (div + 16 - 9) % 16;
...@@ -206,7 +203,7 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame ...@@ -206,7 +203,7 @@ static int qt1010_set_params(struct dvb_frontend *fe, struct dvb_frontend_parame
msg.flags = 0; msg.flags = 0;
msg.len = 2; msg.len = 2;
msg.addr = 0xc4; msg.addr = d->adapter[0].pll_addr;
msg.buf = &rd[i].reg; msg.buf = &rd[i].reg;
if (i2c_transfer(&d->i2c_adap, &msg, 1) != 1) { if (i2c_transfer(&d->i2c_adap, &msg, 1) != 1) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment