diff --git a/configure.ac b/configure.ac index d1d0378da..e8edf01bf 100644 --- a/configure.ac +++ b/configure.ac @@ -118,7 +118,8 @@ AC_ARG_ENABLE(cleanup, [ --enable-cleanup enable cleanup on exit], [AC_DEFINE(EXIT_CLEANUP,1,[enable cleanup on exit])]) -AC_CHECK_HEADERS(coolstream/nevis_ir.h) +AC_CHECK_HEADERS(coolstream/cs_ir_generic.h) +AC_CHECK_HEADERS(coolstream/cs_frontpanel.h) # # Check for libtdservicedb - the new one - for testing only diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index a967ff0bc..04ae554d7 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -65,8 +65,7 @@ #define ENABLE_REPEAT_CHECK -//const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir", "/dev/input/event0"}; -const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/input/nevis_ir"}; +const char * const RC_EVENT_DEVICE[NUMBER_OF_EVENT_DEVICES] = {"/dev/cs_ir"}; typedef struct input_event t_input_event; #ifdef KEYBOARD_INSTEAD_OF_REMOTE_CONTROL @@ -1571,8 +1570,8 @@ void CRCInput::play_click() } -#ifdef HAVE_COOLSTREAM_NEVIS_IR_H -// hint: ir_protocol_t and other useful things are defined in nevis_ir.h +#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H +// hint: ir_protocol_t and other useful things are defined in cs_ir_generic.h void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address) { int ioctl_ret = -1; @@ -1596,7 +1595,7 @@ void CRCInput::set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address) } } -// hint: ir_protocol_t and other useful things are defined in nevis_ir.h +// hint: ir_protocol_t and other useful things are defined in cs_ir_generic.h void CRCInput::set_rc_hw(void) { ir_protocol_t ir_protocol = IR_PROTOCOL_UNKNOWN; diff --git a/src/driver/rcinput.h b/src/driver/rcinput.h index ce2150e28..5a88f0d48 100644 --- a/src/driver/rcinput.h +++ b/src/driver/rcinput.h @@ -38,8 +38,8 @@ #include #include #include -#ifdef HAVE_COOLSTREAM_NEVIS_IR_H -#include +#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H +#include #endif #ifndef KEY_OK @@ -152,7 +152,7 @@ class CRCInput int translate(int code, int num); void calculateMaxFd(void); int checkTimers(); -#ifdef HAVE_COOLSTREAM_NEVIS_IR_H +#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H void set_rc_hw(ir_protocol_t ir_protocol, unsigned int ir_address); #endif public: diff --git a/src/gui/keybind_setup.cpp b/src/gui/keybind_setup.cpp index 21f8dce61..7d5def5d4 100644 --- a/src/gui/keybind_setup.cpp +++ b/src/gui/keybind_setup.cpp @@ -33,7 +33,7 @@ #include #endif -#ifdef HAVE_COOLSTREAM_NEVIS_IR_H +#ifdef HAVE_COOLSTREAM_CS_IR_GENERIC_H /* define constants instead of #ifdef'ing the corresponding code. * the compiler will optimize it away anyway, but the syntax is * still checked */ @@ -41,7 +41,7 @@ #else #define RC_HW_SELECT false #ifdef HAVE_COOL_HARDWARE -#warning header coolstream/nevis_ir.h not found +#warning header coolstream/cs_ir_generic.h not found #warning you probably have an old driver installation #warning you´ll be missing the remotecontrol selection feature! #endif diff --git a/src/timerd/timermanager.cpp b/src/timerd/timermanager.cpp index d02c93644..e3590d732 100644 --- a/src/timerd/timermanager.cpp +++ b/src/timerd/timermanager.cpp @@ -33,8 +33,8 @@ #include #include #include -#if HAVE_COOL_HARDWARE -#include +#ifdef HAVE_COOLSTREAM_CS_FRONTPANEL_H +#include #endif #include @@ -79,11 +79,11 @@ void CTimerManager::Init(void) if (fd < 0) { perror("/dev/display"); } else { - wakeup_data_t wk; + fp_wakeup_data_t wk; memset(&wk, 0, sizeof(wk)); - int ret = ioctl(fd, IOC_VFD_GET_WAKEUP, &wk); + int ret = ioctl(fd, IOC_FP_GET_WAKEUP, &wk); if(ret >= 0) - wakeup = ((wk.source == WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/); + wakeup = ((wk.source == FP_WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/); close(fd); } printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");