mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
- simple_display: switch back to simplified proc_put calls
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -465,7 +465,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
|||||||
mode = m;
|
mode = m;
|
||||||
|
|
||||||
setlcdparameter();
|
setlcdparameter();
|
||||||
proc_put("/proc/stb/lcd/show_symbols", "1", 1);
|
proc_put("/proc/stb/lcd/show_symbols", true);
|
||||||
switch (m) {
|
switch (m) {
|
||||||
case MODE_TVRADIO:
|
case MODE_TVRADIO:
|
||||||
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
|
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
|
||||||
@@ -495,7 +495,7 @@ void CLCD::setMode(const MODES m, const char * const title)
|
|||||||
setled(0, 1);
|
setled(0, 1);
|
||||||
showclock = true;
|
showclock = true;
|
||||||
showTime(true);
|
showTime(true);
|
||||||
proc_put("/proc/stb/lcd/show_symbols", "0", 1);
|
proc_put("/proc/stb/lcd/show_symbols", false);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
showclock = true;
|
showclock = true;
|
||||||
@@ -593,10 +593,10 @@ void CLCD::setScrollMode(int scroll)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
proc_put("/proc/stb/lcd/initial_scroll_delay", "0", 1);
|
proc_put("/proc/stb/lcd/initial_scroll_delay", false);
|
||||||
proc_put("/proc/stb/lcd/final_scroll_delay", "0", 1);
|
proc_put("/proc/stb/lcd/final_scroll_delay", false);
|
||||||
proc_put("/proc/stb/lcd/scroll_delay", "0", 1);
|
proc_put("/proc/stb/lcd/scroll_delay", false);
|
||||||
proc_put("/proc/stb/lcd/scroll_repeats", "0", 1);
|
proc_put("/proc/stb/lcd/scroll_repeats", false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -810,28 +810,32 @@ void CLCD::ShowIcon(fp_icon i, bool on)
|
|||||||
{
|
{
|
||||||
case FP_ICON_CAM1:
|
case FP_ICON_CAM1:
|
||||||
led_r = on;
|
led_r = on;
|
||||||
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT) {
|
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
|
||||||
|
{
|
||||||
SetIcons(SPARK_REC1, on);
|
SetIcons(SPARK_REC1, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_recording", on ? "1" : "0", 1);}
|
proc_put("/proc/stb/lcd/symbol_recording", on);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
setled(led_r, -1); /* switch instant on / switch off if disabling */
|
setled(led_r, -1); /* switch instant on / switch off if disabling */
|
||||||
break;
|
break;
|
||||||
case FP_ICON_PLAY:
|
case FP_ICON_PLAY:
|
||||||
led_g = on;
|
led_g = on;
|
||||||
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT) {
|
if (g_info.hw_caps->display_type == HW_DISPLAY_LINE_TEXT)
|
||||||
|
{
|
||||||
SetIcons(SPARK_PLAY, on);
|
SetIcons(SPARK_PLAY, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_playback", on ? "1" : "0", 1);}
|
proc_put("/proc/stb/lcd/symbol_playback", on);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
setled(-1, led_g);
|
setled(-1, led_g);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_USB:
|
case FP_ICON_USB:
|
||||||
usb_icon = on;
|
usb_icon = on;
|
||||||
SetIcons(SPARK_USB, on);
|
SetIcons(SPARK_USB, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_usb", on ? "1" : "0", 1);
|
proc_put("/proc/stb/lcd/symbol_usb", on);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_HDD:
|
case FP_ICON_HDD:
|
||||||
SetIcons(SPARK_HDD, on);
|
SetIcons(SPARK_HDD, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_hdd", on ? "1" : "0", 1);
|
proc_put("/proc/stb/lcd/symbol_hdd", on);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_PAUSE:
|
case FP_ICON_PAUSE:
|
||||||
SetIcons(SPARK_PAUSE, on);
|
SetIcons(SPARK_PAUSE, on);
|
||||||
@@ -848,14 +852,14 @@ void CLCD::ShowIcon(fp_icon i, bool on)
|
|||||||
break;
|
break;
|
||||||
case FP_ICON_LOCK:
|
case FP_ICON_LOCK:
|
||||||
SetIcons(SPARK_CA, on);
|
SetIcons(SPARK_CA, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_scrambled", on ? "1" : "0", 1);
|
proc_put("/proc/stb/lcd/symbol_scrambled", on);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_RADIO:
|
case FP_ICON_RADIO:
|
||||||
SetIcons(SPARK_AUDIO, on);
|
SetIcons(SPARK_AUDIO, on);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_TV:
|
case FP_ICON_TV:
|
||||||
SetIcons(SPARK_TVMODE_LOG, on);
|
SetIcons(SPARK_TVMODE_LOG, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_tv", on ? "1" : "0", 1);
|
proc_put("/proc/stb/lcd/symbol_tv", on);
|
||||||
break;
|
break;
|
||||||
case FP_ICON_HD:
|
case FP_ICON_HD:
|
||||||
SetIcons(SPARK_DOUBLESCREEN, on);
|
SetIcons(SPARK_DOUBLESCREEN, on);
|
||||||
@@ -863,7 +867,7 @@ void CLCD::ShowIcon(fp_icon i, bool on)
|
|||||||
case FP_ICON_CLOCK:
|
case FP_ICON_CLOCK:
|
||||||
timer_icon = on;
|
timer_icon = on;
|
||||||
SetIcons(SPARK_CLOCK, on);
|
SetIcons(SPARK_CLOCK, on);
|
||||||
proc_put("/proc/stb/lcd/symbol_timeshift", on ? "1" : "0", 1);
|
proc_put("/proc/stb/lcd/symbol_timeshift", on);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user