add dmx offset to hw-caps

Origin commit data
------------------
Branch: master
Commit: 82a0c1aa10
Author: martii <m4rtii@gmx.de>
Date: 2012-12-08 (Sat, 08 Dec 2012)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
martii
2012-12-08 11:58:50 +01:00
parent 3050f34032
commit 9434a3311b
3 changed files with 10 additions and 0 deletions

View File

@@ -56,6 +56,7 @@
#ifdef MARTII
#include <unistd.h>
#include <fcntl.h>
#include <hardware_caps.h>
#endif
#include <cstring>
@@ -196,6 +197,9 @@ bool cDemux::_open(void)
{
/* this should not change anything... */
int n = DMX_SOURCE_FRONT0 + devnum;
#ifdef MARTII
n += get_hwcaps()->dmx_offset;
#endif
lt_info("%s: setting %s to source %d\n", __func__, devname[devnum], n);
if (ioctl(fd, DMX_SET_SOURCE, &n) < 0)
lt_info("%s DMX_SET_SOURCE failed!\n", __func__);