diff --git a/ddbridge/ddbridge-max.c b/ddbridge/ddbridge-max.c index 23e3218..c893247 100644 --- a/ddbridge/ddbridge-max.c +++ b/ddbridge/ddbridge-max.c @@ -114,10 +114,14 @@ static int max_send_master_cmd(struct dvb_frontend *fe, if (cmd->msg_len && cmd->msg_len == input_diseqc_sequence_length && !memcmp(cmd->msg, input_diseqc_sequence, cmd->msg_len - 1)) { +#ifdef KERNEL_DVB_CORE + return max_set_input(fe, cmd->msg[cmd->msg_len - 1] & 0x0f); +#else if (dvb->fe->ops.set_input == max_set_input) return max_set_input(fe, cmd->msg[cmd->msg_len - 1] & 0x0f); else return 0; +#endif } if (dvb->diseqc_send_master_cmd) dvb->diseqc_send_master_cmd(fe, cmd); diff --git a/include/dd_compat.h b/include/dd_compat.h index 63449c7..aaf6807 100644 --- a/include/dd_compat.h +++ b/include/dd_compat.h @@ -28,6 +28,9 @@ #define APSK_128 21 #define APSK_256 22 #define APSK_256_L 23 + +#define SYS_ATSC3 (SYS_DVBC2+1) +#define SYS_ISDBS3 (SYS_ATSC3+1) #endif #if 0