mirror of
https://github.com/DigitalDevices/octonet.git
synced 2023-10-10 13:36:52 +02:00
octoserve scif configuration for tuners 9+
This commit is contained in:
parent
4bcb9b5d63
commit
450af2025e
@ -1289,28 +1289,30 @@ void scif_config(struct octoserve *os, char *name, char *val)
|
|||||||
dbgprintf(DEBUG_DVB, "setting type = %d\n", os->scif_type);
|
dbgprintf(DEBUG_DVB, "setting type = %d\n", os->scif_type);
|
||||||
}
|
}
|
||||||
if (!strncasecmp(name, "tuner", 5) &&
|
if (!strncasecmp(name, "tuner", 5) &&
|
||||||
name[5] >= 0x31 && name[5] <= 0x38) {
|
name[5] >= 0x31 && name[5] <= 0x39) {
|
||||||
int fe = name[5] - 0x31;
|
int fe = strtol(name + 5, NULL, 10 );
|
||||||
char *end;
|
if(fe >= 1 && fe <= MAX_DVB_FE) {
|
||||||
unsigned long int nr = strtoul(val, &end, 10), freq = 0;
|
char *end;
|
||||||
|
unsigned long int nr = strtoul(val, &end, 10), freq = 0;
|
||||||
|
|
||||||
if (*end == ',') {
|
if (*end == ',') {
|
||||||
val = end + 1;
|
val = end + 1;
|
||||||
freq = strtoul(val, &end, 10);
|
freq = strtoul(val, &end, 10);
|
||||||
if (val == end)
|
if (val == end)
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
if (nr == 0)
|
||||||
|
os->dvbfe[fe].scif_type = 0;
|
||||||
|
else {
|
||||||
|
os->dvbfe[fe].scif_slot = nr - 1;
|
||||||
|
os->dvbfe[fe].scif_freq = freq;
|
||||||
|
os->dvbfe[fe].scif_type = os->scif_type;
|
||||||
|
}
|
||||||
|
dbgprintf(DEBUG_DVB, "fe%d: type=%d, slot=%d, freq=%d\n", fe,
|
||||||
|
os->dvbfe[fe].scif_type,
|
||||||
|
os->dvbfe[fe].scif_slot,
|
||||||
|
os->dvbfe[fe].scif_freq);
|
||||||
}
|
}
|
||||||
if (nr == 0)
|
|
||||||
os->dvbfe[fe].scif_type = 0;
|
|
||||||
else {
|
|
||||||
os->dvbfe[fe].scif_slot = nr - 1;
|
|
||||||
os->dvbfe[fe].scif_freq = freq;
|
|
||||||
os->dvbfe[fe].scif_type = os->scif_type;
|
|
||||||
}
|
|
||||||
dbgprintf(DEBUG_DVB, "fe%d: type=%d, slot=%d, freq=%d\n", fe,
|
|
||||||
os->dvbfe[fe].scif_type,
|
|
||||||
os->dvbfe[fe].scif_slot,
|
|
||||||
os->dvbfe[fe].scif_freq);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user