mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-12-26 23:26:46 +01:00
add delmode=2 for M2 cable only mode
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user