OSDN Git Service

[media] m88ds3103: calculate DiSEqC message sending time
authorAntti Palosaari <crope@iki.fi>
Wed, 29 Jun 2016 23:39:45 +0000 (20:39 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Jul 2016 19:56:18 +0000 (16:56 -0300)
commit9ef3cdc1efeb4e98bd579a7f3b182d57c241c0d3
tree6e8159b3ae83606c43db39ea8ecdcb7528bdfe6a
parent92519f8f26084da60c2bbea6ac70486e64ab9cf8
[media] m88ds3103: calculate DiSEqC message sending time

DiSEqC message sending takes 13.5 ms per byte, which is 54 ms total
when typical 4 byte message is sent. Don't hard-code time limit to
54 ms, but calculate it. Time limit is only used to determine when to
start poll "DiSEqC Tx ready" status from the chip.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/m88ds3103.c