mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
rename hwcap variable
This commit is contained in:
@@ -34,7 +34,7 @@ typedef struct hw_caps
|
||||
int display_xres; /* x resolution or chars per line */
|
||||
int display_yres;
|
||||
#ifdef MARTII
|
||||
int dmx_offset;
|
||||
int fe_offset;
|
||||
#endif
|
||||
char boxvendor[64];
|
||||
char boxname[64];
|
||||
|
@@ -198,7 +198,7 @@ bool cDemux::_open(void)
|
||||
/* this should not change anything... */
|
||||
int n = DMX_SOURCE_FRONT0 + devnum;
|
||||
#ifdef MARTII
|
||||
n += get_hwcaps()->dmx_offset;
|
||||
n += get_hwcaps()->fe_offset;
|
||||
#endif
|
||||
lt_info("%s: setting %s to source %d\n", __func__, devname[devnum], n);
|
||||
if (ioctl(fd, DMX_SET_SOURCE, &n) < 0)
|
||||
|
@@ -69,7 +69,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
tmp = "GoldenMedia Triplex";
|
||||
caps.has_SCART = 1;
|
||||
#ifdef MARTII
|
||||
caps.dmx_offset = 1; // first sat tuner
|
||||
caps.fe_offset = 1; // first sat tuner
|
||||
#endif
|
||||
break;
|
||||
default:
|
||||
@@ -82,7 +82,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
#ifdef MARTII
|
||||
char *fe_off = getenv("FE_OFFSET");
|
||||
if (fe_off)
|
||||
sscanf(fe_off, "%d", &caps.dmx_offset);
|
||||
sscanf(fe_off, "%d", &caps.fe_offset);
|
||||
#endif
|
||||
fd = open (FP_DEV, O_RDWR);
|
||||
if (fd != -1) {
|
||||
|
Reference in New Issue
Block a user