diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-01 19:29:16 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-04-01 19:29:16 -0300 |
commit | 6daa7cd5c7610d667573d0b4cf3ed2627a60aa14 (patch) | |
tree | 6b10d5596504e9645f153a77bc1aac5a8e8ed36c /linux/drivers | |
parent | c45dcad4adb2418be37f1c82bd53158132a541fd (diff) | |
download | mediapointer-dvb-s2-6daa7cd5c7610d667573d0b4cf3ed2627a60aa14.tar.gz mediapointer-dvb-s2-6daa7cd5c7610d667573d0b4cf3ed2627a60aa14.tar.bz2 |
tda10086: fix DiSEqC message length
From: Andreas Oberritter <obi@linuxtv.org>
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 'linux/drivers')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10086.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10086.c b/linux/drivers/media/dvb/frontends/tda10086.c index 4c27a2d90..ccc429cbb 100644 --- a/linux/drivers/media/dvb/frontends/tda10086.c +++ b/linux/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); |