rename hwcap variable

This commit is contained in:
martii
2013-01-13 18:30:00 +01:00
parent c734caa83a
commit 51941092e3
3 changed files with 4 additions and 4 deletions

View File

@@ -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];

View File

@@ -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)

View File

@@ -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) {