diff options
author | austriancoder <austriancoder> | 2004-09-18 01:04:12 +0000 |
---|---|---|
committer | austriancoder <austriancoder> | 2004-09-18 01:04:12 +0000 |
commit | cb6674ce8ca363125fcbc91b8aafb6a214b0120e (patch) | |
tree | 1afa7a7fcf7a53e3fc83bc1548a3465e897553cf /dxr3interface.c | |
parent | ddf3b8279cd232cefb22468eead47f0ab04774fa (diff) | |
download | vdr-plugin-dxr3-cb6674ce8ca363125fcbc91b8aafb6a214b0120e.tar.gz vdr-plugin-dxr3-cb6674ce8ca363125fcbc91b8aafb6a214b0120e.tar.bz2 |
you can configure microcode path in Makefile
Diffstat (limited to 'dxr3interface.c')
-rw-r--r-- | dxr3interface.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dxr3interface.c b/dxr3interface.c index 6228d05..43aa1ef 100644 --- a/dxr3interface.c +++ b/dxr3interface.c @@ -859,15 +859,15 @@ void cDxr3Interface::UploadMicroCode() } em8300_microcode_t em8300_microcode; - const char* MICRO_CODE_FILE = "/usr/share/misc/em8300.uc"; struct stat s; // try to open it - int UCODE = open(MICRO_CODE_FILE, O_RDONLY); + // MICROCODE comes from makefile + int UCODE = open(MICROCODE, O_RDONLY); if (UCODE <0) { - cLog::Instance() << "Unable to open microcode file " << MICRO_CODE_FILE << " for reading\n"; + cLog::Instance() << "Unable to open microcode file " << MICROCODE << " for reading\n"; exit(1); } @@ -1189,6 +1189,13 @@ void cDxr3Interface::WriteRegister(int registernum, int val) ioctl(m_fdControl, EM8300_IOCTL_WRITEREG, ®); } +// ================================== +//! grabs the current tv screen +void cDxr3Interface::GrabScreen(int w, int h, char** buf) +{ + +} + // maybe we should copy this routine into em8300 driver // ================================== //! It appears that the follow routine copies length bytes to memory pointed to |