diff options
author | Andreas Oberritter <obi@linuxtv.org> | 2007-04-01 19:29:16 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-02 11:03:04 -0300 |
commit | d420cb44693b8370cbf06c3e31b4b5dec66c9f86 (patch) | |
tree | 7e60e2d092948be4d09ea88f2b9eb8b7ff4db96c /drivers/media/dvb/frontends | |
parent | 2e175a90047a2dbc76fde169c990164895b25dfc (diff) | |
download | blackbird-op-linux-d420cb44693b8370cbf06c3e31b4b5dec66c9f86.tar.gz blackbird-op-linux-d420cb44693b8370cbf06c3e31b4b5dec66c9f86.zip |
V4L/DVB (5495): Tda10086: fix DiSEqC message length
Setting the message length to zero means to send one byte, so you need a
subtraction instead of an addition.
Signed-off-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/tda10086.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda10086.c b/drivers/media/dvb/frontends/tda10086.c index 4c27a2d90a38..ccc429cbbad0 100644 --- a/drivers/media/dvb/frontends/tda10086.c +++ b/drivers/media/dvb/frontends/tda10086.c @@ -212,7 +212,7 @@ static int tda10086_send_master_cmd (struct dvb_frontend* fe, for(i=0; i< cmd->msg_len; i++) { tda10086_write_byte(state, 0x48+i, cmd->msg[i]); } - tda10086_write_byte(state, 0x36, 0x08 | ((cmd->msg_len + 1) << 4)); + tda10086_write_byte(state, 0x36, 0x08 | ((cmd->msg_len - 1) << 4)); tda10086_diseqc_wait(state); |