diff options
author | Abylay Ospan <aospan@netup.ru> | 2009-07-20 01:15:45 +0400 |
---|---|---|
committer | Abylay Ospan <aospan@netup.ru> | 2009-07-20 01:15:45 +0400 |
commit | ab5fd1dec1bf106e22d4bc18f3119830270f20aa (patch) | |
tree | 2d3fae286b717ffb7436664c639ae1129d7246ff /linux/drivers/media | |
parent | 20de14406ca4448efc8d965f5bfe0ab0def25b3e (diff) | |
download | mediapointer-dvb-s2-ab5fd1dec1bf106e22d4bc18f3119830270f20aa.tar.gz mediapointer-dvb-s2-ab5fd1dec1bf106e22d4bc18f3119830270f20aa.tar.bz2 |
Bug fix: stv0900 i2c repeater configuration must be set to manual.
From: Abylay Ospan <aospan@netup.ru>
In automatic mode every stop event on SDA line ends repetition.
However, in NetUP Dual card on the same i2c bus we have several devices.
If someone using both adapters to lock simultaneously or working with CAM interface
during lock procedure, it lead to end repetition prematurely quite often.
Set stv0900 i2c repeater to manual mode prevents such situation.
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/frontends/stv0900_core.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/stv0900_core.c b/linux/drivers/media/dvb/frontends/stv0900_core.c index 84bf35edb..5dbcf215f 100644 --- a/linux/drivers/media/dvb/frontends/stv0900_core.c +++ b/linux/drivers/media/dvb/frontends/stv0900_core.c @@ -234,8 +234,8 @@ enum fe_stv0900_error stv0900_initialize(struct stv0900_internal *i_params) #endif stv0900_write_reg(i_params, R0900_P1_TNRCFG, 0x6c); stv0900_write_reg(i_params, R0900_P2_TNRCFG, 0x6f); - stv0900_write_reg(i_params, R0900_P1_I2CRPT, 0x24); - stv0900_write_reg(i_params, R0900_P2_I2CRPT, 0x24); + stv0900_write_reg(i_params, R0900_P1_I2CRPT, 0x20); + stv0900_write_reg(i_params, R0900_P2_I2CRPT, 0x20); stv0900_write_reg(i_params, R0900_NCOARSE, 0x13); msleep(3); stv0900_write_reg(i_params, R0900_I2CCFG, 0x08); @@ -374,8 +374,8 @@ static int stv0900_i2c_gate_ctrl(struct dvb_frontend *fe, int enable) u32 fi2c; dmd_reg(fi2c, F0900_P1_I2CT_ON, F0900_P2_I2CT_ON); - if (enable) - stv0900_write_bits(i_params, fi2c, 1); + + stv0900_write_bits(i_params, fi2c, enable); return 0; } |