add delmode=2 for M2 cable only mode

This commit is contained in:
rjkm
2025-03-21 14:13:01 +01:00
parent 434dd4720c
commit 73f974f36b

View File

@@ -567,8 +567,8 @@ int ddb_fe_attach_mci(struct ddb_input *input, u32 type)
{ {
u32 mode, mmode; u32 mode, mmode;
// delmode: 0 - sat,sat 1-cable,cable/sat // delmode: 0 - sat,sat 1-cable,cable/sat 2-cable,cable
switch (delmode & 1) { switch (delmode & 3) {
case 0: case 0:
mode = 2; mode = 2;
mmode = 2; /* M_S */ mmode = 2; /* M_S */
@@ -577,6 +577,10 @@ int ddb_fe_attach_mci(struct ddb_input *input, u32 type)
mode = 1; mode = 1;
mmode = demod ? 3 : 1; /* demod 1=M/0=M_A */ mmode = demod ? 3 : 1; /* demod 1=M/0=M_A */
break; break;
case 2:
mode = 1;
mmode = 1; /* both M_A only */
break;
} }
if (!demod) if (!demod)
ddb_mci_cmd_link_simple(link, MCI_CMD_SET_INPUT_CONFIG, ddb_mci_cmd_link_simple(link, MCI_CMD_SET_INPUT_CONFIG,