mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
hwcaps: use FE_OFFSET environment variable
This commit is contained in:
@@ -69,7 +69,7 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
tmp = "GoldenMedia Triplex";
|
tmp = "GoldenMedia Triplex";
|
||||||
caps.has_SCART = 1;
|
caps.has_SCART = 1;
|
||||||
#ifdef MARTII
|
#ifdef MARTII
|
||||||
caps.dmx_offset = 1;
|
caps.dmx_offset = 1; // first sat tuner
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -79,6 +79,11 @@ hw_caps_t *get_hwcaps(void)
|
|||||||
tmp = "(NO STB_ID FOUND)";
|
tmp = "(NO STB_ID FOUND)";
|
||||||
strcpy(caps.boxname, tmp);
|
strcpy(caps.boxname, tmp);
|
||||||
}
|
}
|
||||||
|
#ifdef MARTII
|
||||||
|
char *fe_off = getenv("FE_OFFSET");
|
||||||
|
if (fe_off)
|
||||||
|
sscanf(fe_off, "%d", &caps.dmx_offset);
|
||||||
|
#endif
|
||||||
fd = open (FP_DEV, O_RDWR);
|
fd = open (FP_DEV, O_RDWR);
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
ret = ioctl(fd, VFDGETVERSION, &val);
|
ret = ioctl(fd, VFDGETVERSION, &val);
|
||||||
|
Reference in New Issue
Block a user