mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 02:11:11 +02:00
- AZBOX: deleted
This commit is contained in:
@@ -82,10 +82,6 @@ libneutrino_driver_a_SOURCES += \
|
||||
fb_accel_sti.cpp \
|
||||
simple_display.cpp
|
||||
endif
|
||||
if BOXTYPE_AZBOX
|
||||
libneutrino_driver_a_SOURCES += \
|
||||
simple_display.cpp
|
||||
endif
|
||||
if BOXTYPE_GENERIC
|
||||
libneutrino_driver_a_SOURCES += \
|
||||
fb_accel_glfb.cpp \
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#if HAVE_TRIPLEDRAGON
|
||||
#include <driver/lcdd.h>
|
||||
#endif
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_AZBOX_HARDWARE || HAVE_GENERIC_HARDWARE || HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
#if HAVE_SPARK_HARDWARE || HAVE_GENERIC_HARDWARE || HAVE_ARM_HARDWARE || HAVE_MIPS_HARDWARE
|
||||
#include <driver/simple_display.h>
|
||||
#endif
|
||||
#ifdef ENABLE_GRAPHLCD
|
||||
|
@@ -1766,16 +1766,6 @@ int CRCInput::translate(int code)
|
||||
return RC_forward;
|
||||
case 0xb0: // vuplus timer key
|
||||
return RC_timer;
|
||||
#endif
|
||||
#ifdef HAVE_AZBOX_HARDWARE
|
||||
case KEY_HOME:
|
||||
return RC_favorites;
|
||||
case KEY_TV:
|
||||
return RC_stop;
|
||||
case KEY_RADIO:
|
||||
return RC_record;
|
||||
case KEY_PLAY:
|
||||
return RC_pause;
|
||||
#endif
|
||||
default:
|
||||
break;
|
||||
|
@@ -46,11 +46,6 @@ static bool usb_icon = false;
|
||||
static bool timer_icon = false;
|
||||
#endif
|
||||
|
||||
#if HAVE_AZBOX_HARDWARE
|
||||
#define DISPLAY_DEV "/proc/vfd"
|
||||
#define LED_DEV "/proc/led"
|
||||
#endif
|
||||
|
||||
#if HAVE_GENERIC_HARDWARE
|
||||
#define DISPLAY_DEV "/dev/null"
|
||||
static bool usb_icon = false;
|
||||
@@ -84,16 +79,6 @@ static inline int dev_open()
|
||||
return fd;
|
||||
}
|
||||
|
||||
#if HAVE_AZBOX_HARDWARE
|
||||
static inline int led_open()
|
||||
{
|
||||
int fd = open(LED_DEV, O_RDWR);
|
||||
if (fd < 0)
|
||||
fprintf(stderr, "[neutrino] simple_display: open " LED_DEV ": %m\n");
|
||||
return fd;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void replace_umlauts(std::string &s)
|
||||
{
|
||||
/* this is crude, it just replaces ÄÖÜ with AOU since the display can't show them anyway */
|
||||
@@ -292,29 +277,6 @@ void CLCD::setled(int red, int green)
|
||||
}
|
||||
close(fd);
|
||||
}
|
||||
#elif HAVE_AZBOX_HARDWARE
|
||||
void CLCD::setled(int red, int green)
|
||||
{
|
||||
static unsigned char col = '0'; /* need to remember the state. 1 == blue, 2 == red */
|
||||
int leds[3] = { -1, green, red };
|
||||
int i;
|
||||
char s[3];
|
||||
int fd = led_open();
|
||||
if (fd < 0)
|
||||
return;
|
||||
for (i = 1; i <= 2; i++)
|
||||
{
|
||||
if (leds[i] == -1) /* don't touch */
|
||||
continue;
|
||||
col &= ~(i); /* clear the bit... */
|
||||
if (leds[i])
|
||||
col |= i; /* ...and set it again */
|
||||
}
|
||||
sprintf(s, "%c\n", col);
|
||||
write(fd, s, 3);
|
||||
close(fd);
|
||||
//printf("CLCD::%s(%d, %d): %c\n", __func__, red, green, col);
|
||||
}
|
||||
#else
|
||||
void CLCD::setled(int /*red*/, int /*green*/)
|
||||
{
|
||||
|
Reference in New Issue
Block a user