mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
rename hwcap variable
Origin commit data
------------------
Branch: master
Commit: 51941092e3
Author: martii <m4rtii@gmx.de>
Date: 2013-01-13 (Sun, 13 Jan 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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