diff options
Diffstat (limited to 'linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c')
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index fa05a5bb9..de9d364a2 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -1687,9 +1687,18 @@ static int ttusb_dec_3000s_frontend_ioctl(struct dvb_frontend *fe, dprintk("%s: FE_INIT\n", __FUNCTION__); break; - case FE_DISEQC_SEND_MASTER_CMD: + case FE_DISEQC_SEND_MASTER_CMD: { + u8 b[] = { 0x00, 0xff, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00 }; + struct dvb_diseqc_master_cmd *cmd = arg; + memcpy(&b[4], cmd->msg, cmd->msg_len); dprintk("%s: FE_DISEQC_SEND_MASTER_CMD\n", __FUNCTION__); + ttusb_dec_send_command(dec, 0x72, + sizeof(b) - (6 - cmd->msg_len), b, + NULL, NULL); break; + } case FE_DISEQC_SEND_BURST: dprintk("%s: FE_DISEQC_SEND_BURST\n", __FUNCTION__); |