mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
hwcaps: use FE_OFFSET environment variable
Origin commit data
------------------
Branch: master
Commit: c734caa83a
Author: martii <m4rtii@gmx.de>
Date: 2012-12-26 (Wed, 26 Dec 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -69,7 +69,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
tmp = "GoldenMedia Triplex";
|
||||
caps.has_SCART = 1;
|
||||
#ifdef MARTII
|
||||
caps.dmx_offset = 1;
|
||||
caps.dmx_offset = 1; // first sat tuner
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
@@ -79,6 +79,11 @@ hw_caps_t *get_hwcaps(void)
|
||||
tmp = "(NO STB_ID FOUND)";
|
||||
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);
|
||||
if (fd != -1) {
|
||||
ret = ioctl(fd, VFDGETVERSION, &val);
|
||||
|
Reference in New Issue
Block a user