mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 07:13:34 +00:00
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>
This commit is contained in:
parent
2e175a9004
commit
d420cb4469
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ static int tda10086_send_master_cmd (struct dvb_frontend* fe,
|
||||||
for(i=0; i< cmd->msg_len; i++) {
|
for(i=0; i< cmd->msg_len; i++) {
|
||||||
tda10086_write_byte(state, 0x48+i, cmd->msg[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);
|
tda10086_diseqc_wait(state);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue