aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorJohannes Stezenbach <js@linuxtv.org>2005-09-09 16:02:34 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:39 -0400
commitd897275500d8fac919a11073eb587ce0e3fcc36c (patch)
treece291a1b9277fc58632f5456e6a2c203014fc25b /drivers/media/dvb
parent6816a4c183e62bca1fa4812214e483ab503dcb7d (diff)
[PATCH] dvb: frontend: cx24110: DiSEqC fix
Fix DiSEqC switching (one bug fix suggested by Peter Hettkamp, and one experimentally determined msleep(30) suggested by Adam Szalkowski). Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/frontends/cx24110.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/cx24110.c b/drivers/media/dvb/frontends/cx24110.c
index 555d472e42de..71b54094bda8 100644
--- a/drivers/media/dvb/frontends/cx24110.c
+++ b/drivers/media/dvb/frontends/cx24110.c
@@ -398,7 +398,7 @@ static int cx24110_diseqc_send_burst(struct dvb_frontend* fe, fe_sec_mini_cmd_t
398 return -EINVAL; 398 return -EINVAL;
399 399
400 rv = cx24110_readreg(state, 0x77); 400 rv = cx24110_readreg(state, 0x77);
401 cx24110_writereg(state, 0x77, rv|0x04); 401 cx24110_writereg(state, 0x77, rv | 0x04);
402 402
403 rv = cx24110_readreg(state, 0x76); 403 rv = cx24110_readreg(state, 0x76);
404 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit)); 404 cx24110_writereg(state, 0x76, ((rv & 0x90) | 0x40 | bit));
@@ -418,7 +418,8 @@ static int cx24110_send_diseqc_msg(struct dvb_frontend* fe,
418 cx24110_writereg(state, 0x79 + i, cmd->msg[i]); 418 cx24110_writereg(state, 0x79 + i, cmd->msg[i]);
419 419
420 rv = cx24110_readreg(state, 0x77); 420 rv = cx24110_readreg(state, 0x77);
421 cx24110_writereg(state, 0x77, rv|0x04); 421 cx24110_writereg(state, 0x77, rv & ~0x04);
422 msleep(30); /* reportedly fixes switching problems */
422 423
423 rv = cx24110_readreg(state, 0x76); 424 rv = cx24110_readreg(state, 0x76);
424 425