[media] stb0899: fix diseqc messages getting lost
authorManu Abraham <abraham.manu@gmail.com>
Sun, 14 Nov 2010 19:01:47 +0000 (16:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 29 Dec 2010 10:16:49 +0000 (08:16 -0200)
- Some badly written applications in conjuction with certain SEC devices
  do send too many messages causing the DiSEqC bus to get congested. As
  a result, the end devices do get confused and hence do not respond.
  The issue was found by Julian Scheel.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index 8e38fcee564e918bb107c13bda376d1c6e962872..37a222d9ddb366ebd201debedec915661589be94 100644 (file)
@@ -714,7 +714,7 @@ static int stb0899_send_diseqc_msg(struct dvb_frontend *fe, struct dvb_diseqc_ma
        reg = stb0899_read_reg(state, STB0899_DISCNTRL1);
        STB0899_SETFIELD_VAL(DISPRECHARGE, reg, 0);
        stb0899_write_reg(state, STB0899_DISCNTRL1, reg);
-
+       msleep(100);
        return 0;
 }