fix compiling with kernel dvb-core

This commit is contained in:
rjkm
2025-09-10 21:30:43 +02:00
parent 92ebd94bd3
commit d94ec67136
2 changed files with 7 additions and 0 deletions

View File

@@ -114,10 +114,14 @@ static int max_send_master_cmd(struct dvb_frontend *fe,
if (cmd->msg_len && if (cmd->msg_len &&
cmd->msg_len == input_diseqc_sequence_length && cmd->msg_len == input_diseqc_sequence_length &&
!memcmp(cmd->msg, input_diseqc_sequence, cmd->msg_len - 1)) { !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) if (dvb->fe->ops.set_input == max_set_input)
return max_set_input(fe, cmd->msg[cmd->msg_len - 1] & 0x0f); return max_set_input(fe, cmd->msg[cmd->msg_len - 1] & 0x0f);
else else
return 0; return 0;
#endif
} }
if (dvb->diseqc_send_master_cmd) if (dvb->diseqc_send_master_cmd)
dvb->diseqc_send_master_cmd(fe, cmd); dvb->diseqc_send_master_cmd(fe, cmd);

View File

@@ -28,6 +28,9 @@
#define APSK_128 21 #define APSK_128 21
#define APSK_256 22 #define APSK_256 22
#define APSK_256_L 23 #define APSK_256_L 23
#define SYS_ATSC3 (SYS_DVBC2+1)
#define SYS_ISDBS3 (SYS_ATSC3+1)
#endif #endif
#if 0 #if 0