1
0
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:
mvoelkel 2016-02-29 13:04:54 +01:00
parent 4bcb9b5d63
commit 450af2025e

View File

@ -1289,8 +1289,9 @@ 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 );
if(fe >= 1 && fe <= MAX_DVB_FE) {
char *end; char *end;
unsigned long int nr = strtoul(val, &end, 10), freq = 0; unsigned long int nr = strtoul(val, &end, 10), freq = 0;
@ -1312,6 +1313,7 @@ void scif_config(struct octoserve *os, char *name, char *val)
os->dvbfe[fe].scif_slot, os->dvbfe[fe].scif_slot,
os->dvbfe[fe].scif_freq); os->dvbfe[fe].scif_freq);
} }
}
} }