From cbe658d192fa2c82b474a944c92a08d2a0845866 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Mar 2017 09:07:38 +0100 Subject: [PATCH 1/6] imdb: align timeouts; use neutrino defaults Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/89a6db541603191eba3fbc704123bb5a2b46cc4d Author: vanhofen Date: 2017-03-06 (Mon, 06 Mar 2017) Origin message was: ------------------ - imdb: align timeouts; use neutrino defaults ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/imdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/imdb.cpp b/src/gui/imdb.cpp index 2eefffeb3..3db2d77de 100644 --- a/src/gui/imdb.cpp +++ b/src/gui/imdb.cpp @@ -228,7 +228,7 @@ std::string CIMDB::googleIMDb(std::string searchStr) std::string url = surl + "IMDb+" + utf82url(httpString); - if(httpTool.downloadFile(url, soutfile.c_str())) + if (httpTool.downloadFile(url, soutfile.c_str())) { ret = parseFile("http://www.imdb.com/title/", ">", soutfile.c_str()); @@ -284,7 +284,7 @@ int CIMDB::getIMDb(const std::string& epgTitle) std::string url = IMDburl + imdb_ID; - if(httpTool.downloadFile(url, IMDbAPI.c_str(), -1, /*connecttimeout*/2, /*timeout*/5)) + if (httpTool.downloadFile(url, IMDbAPI.c_str())) { initMap(m); @@ -299,7 +299,7 @@ int CIMDB::getIMDb(const std::string& epgTitle) //download Poster if(m["Poster"] != "N/A") { - if(httpTool.downloadFile(m["Poster"], posterfile.c_str())) + if (httpTool.downloadFile(m["Poster"], posterfile.c_str())) return 2; else { if (access(posterfile.c_str(), F_OK) == 0) From a3a0da027723df92f3ebf075fc5a1c2cd7c00bbe Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Mon, 6 Mar 2017 14:41:25 +0100 Subject: [PATCH 2/6] src/gui/movieplayer.cpp some streams need more time pro frame Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/92abe90d58ba4f132f75b1f2409ec68553f2d01b Author: Jacek Jendrzej Date: 2017-03-06 (Mon, 06 Mar 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index fead5c9be..eabe0e255 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -1323,12 +1323,12 @@ void CMoviePlayerGui::PlayFileLoop(void) printf("CMoviePlayerGui::%s: spd %d pos %d/%d (%d, %d%%)\n", __func__, speed, position, duration, duration-position, file_prozent); #endif /* in case ffmpeg report incorrect values */ - if((playstate == CMoviePlayerGui::PLAY) && (speed == 1)){ + if(file_prozent > 96 && (playstate == CMoviePlayerGui::PLAY) && (speed == 1)){ if(position_tmp != position){ position_tmp = position ; eof2 = 0; }else{ - if (++eof2 > 6) { + if (++eof2 > 12) { at_eof = true; break; } From 4494a8ba5e8f3160debaf9cd4b9b43c49f9b029f Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 6 Mar 2017 20:48:39 +0100 Subject: [PATCH 3/6] CTextBox: fix pass of SCROLL_FRAME_WIDTH Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/4c388bb71c69dda7f669107c67a4c99b47ded204 Author: Thilo Graf Date: 2017-03-06 (Mon, 06 Mar 2017) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/textbox.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/textbox.cpp b/src/gui/widget/textbox.cpp index f8ed60af4..82195ae5a 100644 --- a/src/gui/widget/textbox.cpp +++ b/src/gui/widget/textbox.cpp @@ -299,9 +299,9 @@ void CTextBox::initFramesRel(void) if(m_nMode & SCROLL) { - m_cFrameScrollRel.iX = m_cFrame.iWidth - SCROLL_FRAME_WIDTH; - m_cFrameScrollRel.iY = m_cFrameTextRel.iY + m_nBgRadius; m_cFrameScrollRel.iWidth = SCROLL_FRAME_WIDTH; + m_cFrameScrollRel.iX = m_cFrame.iWidth - m_cFrameScrollRel.iWidth; + m_cFrameScrollRel.iY = m_cFrameTextRel.iY + m_nBgRadius; m_cFrameScrollRel.iHeight = m_cFrameTextRel.iHeight - 2*m_nBgRadius; } else @@ -708,7 +708,7 @@ void CTextBox::refreshText(void) if (m_nMode & CENTER) x_center /= 2; if (m_nMode & SCROLL) - x_center -= SCROLL_FRAME_WIDTH; + x_center -= m_cFrameScrollRel.iWidth; } x_center = std::max(x_center, 0); From c8efd4141cdcc4398e5c3d22419ee1c90409aada Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Mar 2017 21:49:32 +0100 Subject: [PATCH 4/6] port hardware_caps from Neutrino-MP Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/29fd05002fc1a9a57081b18c16498fd49118b716 Author: vanhofen Date: 2017-03-06 (Mon, 06 Mar 2017) Origin message was: ------------------ - port hardware_caps from Neutrino-MP ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- configure.ac | 2 + lib/Makefile.am | 5 ++ lib/hardware/coolstream/Makefile.am | 12 ++++ lib/hardware/coolstream/hardware_caps.cpp | 72 +++++++++++++++++++++++ lib/hardware/coolstream/hardware_caps.h | 43 ++++++++++++++ src/Makefile.am | 2 + src/neutrino.cpp | 2 + src/system/settings.h | 3 + 8 files changed, 141 insertions(+) create mode 100644 lib/hardware/coolstream/Makefile.am create mode 100644 lib/hardware/coolstream/hardware_caps.cpp create mode 100644 lib/hardware/coolstream/hardware_caps.h diff --git a/configure.ac b/configure.ac index 6da3d63c6..900f8f21a 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,7 @@ if test -e ${srcdir}/lib/libcoolstream2/cs_frontpanel.h; then fi HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream2 -I$(top_srcdir)/src/zapit/include/private' fi +HWLIB_CFLAGS="$HWLIB_CFLAGS "'-I$(top_srcdir)/lib/hardware/coolstream' fi # hack, so that framebuffer.h does not need to be included everywhere... @@ -313,6 +314,7 @@ data/y-web/scripts/Makefile data/y-web/styles/Makefile lib/Makefile lib/connection/Makefile +lib/hardware/coolstream/Makefile lib/jsoncpp/Makefile lib/libconfigfile/Makefile lib/libdvbsub/Makefile diff --git a/lib/Makefile.am b/lib/Makefile.am index bc4b8f2e5..63e00773d 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -17,3 +17,8 @@ if ENABLE_UPNP SUBDIRS += \ libupnpclient endif + +if BOXTYPE_COOL +SUBDIRS += \ + hardware/coolstream +endif diff --git a/lib/hardware/coolstream/Makefile.am b/lib/hardware/coolstream/Makefile.am new file mode 100644 index 000000000..359ce20b2 --- /dev/null +++ b/lib/hardware/coolstream/Makefile.am @@ -0,0 +1,12 @@ +noinst_LIBRARIES = libhwcaps.a + +AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing + +if BOXMODEL_CS_HD2 +AM_CPPFLAGS = -I$(top_srcdir)/lib/libcoolstream2 +else +AM_CPPFLAGS = -I$(top_srcdir)/lib/libcoolstream +endif + +libhwcaps_a_SOURCES = \ + hardware_caps.cpp diff --git a/lib/hardware/coolstream/hardware_caps.cpp b/lib/hardware/coolstream/hardware_caps.cpp new file mode 100644 index 000000000..216a6dcae --- /dev/null +++ b/lib/hardware/coolstream/hardware_caps.cpp @@ -0,0 +1,72 @@ +/* + * determine the capabilities of the hardware. + * part of libstb-hal + * + * (C) 2010-2012,2016 Stefan Seyfried + * + * License: GPL v2 or later + */ +#include "cs_api.h" +#include +#include +#include "hardware_caps.h" + +static int initialized = 0; +static hw_caps_t caps; + +hw_caps_t *get_hwcaps(void) { + if (initialized) + return ∩︀ + int rev = cs_get_revision(); + caps.has_fan = (rev < 8); + caps.has_HDMI = 1; + caps.has_SCART = (rev != 10); + caps.has_SCART_input = 0; + caps.has_YUV_cinch = 1; + caps.can_shutdown = (rev > 7); + caps.can_cec = 1; + caps.display_type = HW_DISPLAY_LINE_TEXT; + caps.display_xres = 12; + caps.display_yres = 0; + caps.can_set_display_brightness = 1; + caps.can_ar_14_9 = 1; + caps.can_ps_14_9 = 1; + caps.force_tuner_2G = 0; + strcpy(caps.boxvendor, "Coolstream"); + /* list of boxnames from neutrinoyparser.cpp */ + strcpy(caps.boxarch, "Nevis"); + switch (rev) { + case 6: + case 7: // Black Stallion Edition + strcpy(caps.boxname, "HD1"); + caps.force_tuner_2G = 1; + break; + case 8: + strcpy(caps.boxname, "Neo"); + caps.force_tuner_2G = 1; + break; + case 9: + strcpy(caps.boxname, "Tank"); + strcpy(caps.boxarch, "Apollo"); + break; + case 10: + strcpy(caps.boxname, "Zee"); + caps.force_tuner_2G = 1; + break; + case 11: + strcpy(caps.boxname, "Trinity"); + strcpy(caps.boxarch, "Shiner"); + break; + case 12: + strcpy(caps.boxname, "Zee2"); + strcpy(caps.boxarch, "Kronos"); + break; + default: + strcpy(caps.boxname, "UNKNOWN_BOX"); + strcpy(caps.boxarch, "Unknown"); + fprintf(stderr, "[%s] unhandled box revision %d\n", __func__, rev); + } + initialized = 1; + return ∩︀ +} + diff --git a/lib/hardware/coolstream/hardware_caps.h b/lib/hardware/coolstream/hardware_caps.h new file mode 100644 index 000000000..aaea1334e --- /dev/null +++ b/lib/hardware/coolstream/hardware_caps.h @@ -0,0 +1,43 @@ +/* + * determine the capabilities of the hardware. + * part of libstb-hal + * + * (C) 2010-2012,2016 Stefan Seyfried + * + * License: GPL v2 or later + */ +#ifndef __HARDWARE_CAPS_H__ +#define __HARDWARE_CAPS_H__ + +typedef enum +{ + HW_DISPLAY_NONE, + HW_DISPLAY_LED_NUM, /* simple 7 segment LED display */ + HW_DISPLAY_LINE_TEXT, /* 1 line text display */ + HW_DISPLAY_GFX +} display_type_t; + + +typedef struct hw_caps +{ + int has_fan; + int has_HDMI; + int has_SCART; + int has_SCART_input; + int has_YUV_cinch; + int can_shutdown; + int can_cec; + int can_ar_14_9; /* video drivers have 14:9 aspect ratio mode */ + int can_ps_14_9; /* video drivers have 14:9 panscan mode */ + int force_tuner_2G; /* force DVB-S2 even though driver may not advertise it */ + display_type_t display_type; + int display_xres; /* x resolution or chars per line */ + int display_yres; + int can_set_display_brightness; + char boxvendor[64]; + char boxname[64]; + char boxarch[64]; +} hw_caps_t; + +hw_caps_t *get_hwcaps(void); +#endif diff --git a/src/Makefile.am b/src/Makefile.am index 1d452bd8f..73843b7d0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -142,6 +142,8 @@ neutrino_LDADD += \ endif if BOXTYPE_COOL +neutrino_LDADD += \ + $(top_builddir)/lib/hardware/coolstream/libhwcaps.a neutrino_LDADD += -lcoolstream-mt -lca-sc if ENABLE_TMSDK else diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 0a15d9969..0b9848d3a 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -2036,6 +2036,8 @@ TIMER_START(); cs_api_init(); cs_register_messenger(CSSendMessage); + g_info.hw_caps = get_hwcaps(); + g_Locale = new CLocaleManager; int loadSettingsErg = loadSetup(NEUTRINO_SETTINGS_FILE); diff --git a/src/system/settings.h b/src/system/settings.h index 64b6423c4..c6e352b85 100644 --- a/src/system/settings.h +++ b/src/system/settings.h @@ -39,6 +39,8 @@ #include #include // UTF8 +#include + #include #include @@ -924,6 +926,7 @@ struct SglobalInfo unsigned char box_Type; delivery_system_t delivery_system; bool has_fan; + hw_caps_t *hw_caps; }; const int RECORDING_OFF = 0; From a60fcac65b49ba879058d9094b09519835978686 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Mar 2017 21:49:32 +0100 Subject: [PATCH 5/6] move public libcoolstream-headers to hardware directory Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/2029a684e51f33fbd7076c7127d55288a1155e2e Author: vanhofen Date: 2017-03-06 (Mon, 06 Mar 2017) Origin message was: ------------------ - move public libcoolstream-headers to hardware directory ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- configure.ac | 10 +++++----- lib/hardware/coolstream/Makefile.am | 4 ++-- .../coolstream/hd1}/libcoolstream/audio_cs.h | 0 .../coolstream/hd1}/libcoolstream/ca_cs.h | 0 .../coolstream/hd1}/libcoolstream/cnxtfb.h | 0 .../coolstream/hd1}/libcoolstream/control.h | 0 .../coolstream/hd1}/libcoolstream/cs_api.h | 0 .../coolstream/hd1}/libcoolstream/cs_frontpanel.h | 0 .../coolstream/hd1}/libcoolstream/cs_types.h | 0 .../coolstream/hd1}/libcoolstream/cs_vfd.h | 0 .../coolstream/hd1}/libcoolstream/dmx_cs.h | 0 lib/{ => hardware/coolstream/hd1}/libcoolstream/mmi.h | 0 .../coolstream/hd1}/libcoolstream/nevis_ir.h | 0 .../coolstream/hd1}/libcoolstream/playback.h | 0 .../coolstream/hd1}/libcoolstream/playback_cs.h | 0 .../coolstream/hd1}/libcoolstream/pwrmngr.h | 0 .../coolstream/hd1}/libcoolstream/record_cs.h | 0 .../coolstream/hd1}/libcoolstream/tsrouter.h | 0 .../coolstream/hd1}/libcoolstream/video_cs.h | 0 .../coolstream/hd2/libcoolstream}/audio_cs.h | 0 .../coolstream/hd2/libcoolstream}/ca_cs.h | 0 .../coolstream/hd2/libcoolstream}/cnxtfb.h | 0 .../coolstream/hd2/libcoolstream}/control.h | 0 .../coolstream/hd2/libcoolstream}/cs_api.h | 0 .../coolstream/hd2/libcoolstream}/cs_frontpanel.h | 0 .../coolstream/hd2/libcoolstream}/cs_ir_generic.h | 0 .../coolstream/hd2/libcoolstream}/cs_types.h | 0 .../coolstream/hd2/libcoolstream}/cs_vfd.h | 0 .../coolstream/hd2/libcoolstream}/dmx_cs.h | 0 .../coolstream/hd2/libcoolstream}/mmi.h | 0 .../coolstream/hd2/libcoolstream}/nevis_ir.h | 0 .../coolstream/hd2/libcoolstream}/playback.h | 0 .../coolstream/hd2/libcoolstream}/playback_cs.h | 0 .../coolstream/hd2/libcoolstream}/pwrmngr.h | 0 .../coolstream/hd2/libcoolstream}/record_cs.h | 0 .../coolstream/hd2/libcoolstream}/tsrouter.h | 0 .../coolstream/hd2/libcoolstream}/video_cs.h | 0 lib/libcoolstream/.svnignore | 5 ----- 38 files changed, 7 insertions(+), 12 deletions(-) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/audio_cs.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/ca_cs.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/cnxtfb.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/control.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/cs_api.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/cs_frontpanel.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/cs_types.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/cs_vfd.h (100%) mode change 100755 => 100644 rename lib/{ => hardware/coolstream/hd1}/libcoolstream/dmx_cs.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/mmi.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/nevis_ir.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/playback.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/playback_cs.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/pwrmngr.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/record_cs.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/tsrouter.h (100%) rename lib/{ => hardware/coolstream/hd1}/libcoolstream/video_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/audio_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/ca_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cnxtfb.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/control.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cs_api.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cs_frontpanel.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cs_ir_generic.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cs_types.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/cs_vfd.h (100%) mode change 100755 => 100644 rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/dmx_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/mmi.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/nevis_ir.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/playback.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/playback_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/pwrmngr.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/record_cs.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/tsrouter.h (100%) rename lib/{libcoolstream2 => hardware/coolstream/hd2/libcoolstream}/video_cs.h (100%) delete mode 100644 lib/libcoolstream/.svnignore diff --git a/configure.ac b/configure.ac index 900f8f21a..8b7fe6969 100644 --- a/configure.ac +++ b/configure.ac @@ -236,19 +236,19 @@ fi if test "$BOXTYPE" = "coolstream"; then -if test -e ${srcdir}/lib/libcoolstream/nevis_ir.h; then +if test -e ${srcdir}/lib/hardware/coolstream/hd1/libcoolstream/nevis_ir.h; then AC_DEFINE(HAVE_COOLSTREAM_NEVIS_IR_H,1,[Define to 1 if you have the header file.]) fi -HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream -I$(top_srcdir)/src/zapit/include/private' +HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd1/libcoolstream -I$(top_srcdir)/src/zapit/include/private' if test "$BOXMODEL" = "hd2"; then -if test -e ${srcdir}/lib/libcoolstream2/cs_ir_generic.h; then +if test -e ${srcdir}/lib/hardware/coolstream/hd2/libcoolstream/cs_ir_generic.h; then AC_DEFINE(HAVE_COOLSTREAM_CS_IR_GENERIC_H,1,[Define to 1 if you have the header file.]) fi -if test -e ${srcdir}/lib/libcoolstream2/cs_frontpanel.h; then +if test -e ${srcdir}/lib/hardware/coolstream/hd2/libcoolstream/cs_frontpanel.h; then AC_DEFINE(HAVE_COOLSTREAM_CS_FRONTPANEL_H,1,[Define to 1 if you have the header file.]) fi -HWLIB_CFLAGS='-I$(top_srcdir)/lib/libcoolstream2 -I$(top_srcdir)/src/zapit/include/private' +HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd2/libcoolstream -I$(top_srcdir)/src/zapit/include/private' fi HWLIB_CFLAGS="$HWLIB_CFLAGS "'-I$(top_srcdir)/lib/hardware/coolstream' fi diff --git a/lib/hardware/coolstream/Makefile.am b/lib/hardware/coolstream/Makefile.am index 359ce20b2..d460837c3 100644 --- a/lib/hardware/coolstream/Makefile.am +++ b/lib/hardware/coolstream/Makefile.am @@ -3,9 +3,9 @@ noinst_LIBRARIES = libhwcaps.a AM_CXXFLAGS = -fno-rtti -fno-exceptions -fno-strict-aliasing if BOXMODEL_CS_HD2 -AM_CPPFLAGS = -I$(top_srcdir)/lib/libcoolstream2 +AM_CPPFLAGS = -I$(top_srcdir)/lib/hardware/coolstream/hd2/libcoolstream else -AM_CPPFLAGS = -I$(top_srcdir)/lib/libcoolstream +AM_CPPFLAGS = -I$(top_srcdir)/lib/hardware/coolstream/hd1/libcoolstream endif libhwcaps_a_SOURCES = \ diff --git a/lib/libcoolstream/audio_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/audio_cs.h similarity index 100% rename from lib/libcoolstream/audio_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/audio_cs.h diff --git a/lib/libcoolstream/ca_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/ca_cs.h similarity index 100% rename from lib/libcoolstream/ca_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/ca_cs.h diff --git a/lib/libcoolstream/cnxtfb.h b/lib/hardware/coolstream/hd1/libcoolstream/cnxtfb.h similarity index 100% rename from lib/libcoolstream/cnxtfb.h rename to lib/hardware/coolstream/hd1/libcoolstream/cnxtfb.h diff --git a/lib/libcoolstream/control.h b/lib/hardware/coolstream/hd1/libcoolstream/control.h similarity index 100% rename from lib/libcoolstream/control.h rename to lib/hardware/coolstream/hd1/libcoolstream/control.h diff --git a/lib/libcoolstream/cs_api.h b/lib/hardware/coolstream/hd1/libcoolstream/cs_api.h similarity index 100% rename from lib/libcoolstream/cs_api.h rename to lib/hardware/coolstream/hd1/libcoolstream/cs_api.h diff --git a/lib/libcoolstream/cs_frontpanel.h b/lib/hardware/coolstream/hd1/libcoolstream/cs_frontpanel.h similarity index 100% rename from lib/libcoolstream/cs_frontpanel.h rename to lib/hardware/coolstream/hd1/libcoolstream/cs_frontpanel.h diff --git a/lib/libcoolstream/cs_types.h b/lib/hardware/coolstream/hd1/libcoolstream/cs_types.h similarity index 100% rename from lib/libcoolstream/cs_types.h rename to lib/hardware/coolstream/hd1/libcoolstream/cs_types.h diff --git a/lib/libcoolstream/cs_vfd.h b/lib/hardware/coolstream/hd1/libcoolstream/cs_vfd.h old mode 100755 new mode 100644 similarity index 100% rename from lib/libcoolstream/cs_vfd.h rename to lib/hardware/coolstream/hd1/libcoolstream/cs_vfd.h diff --git a/lib/libcoolstream/dmx_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/dmx_cs.h similarity index 100% rename from lib/libcoolstream/dmx_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/dmx_cs.h diff --git a/lib/libcoolstream/mmi.h b/lib/hardware/coolstream/hd1/libcoolstream/mmi.h similarity index 100% rename from lib/libcoolstream/mmi.h rename to lib/hardware/coolstream/hd1/libcoolstream/mmi.h diff --git a/lib/libcoolstream/nevis_ir.h b/lib/hardware/coolstream/hd1/libcoolstream/nevis_ir.h similarity index 100% rename from lib/libcoolstream/nevis_ir.h rename to lib/hardware/coolstream/hd1/libcoolstream/nevis_ir.h diff --git a/lib/libcoolstream/playback.h b/lib/hardware/coolstream/hd1/libcoolstream/playback.h similarity index 100% rename from lib/libcoolstream/playback.h rename to lib/hardware/coolstream/hd1/libcoolstream/playback.h diff --git a/lib/libcoolstream/playback_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h similarity index 100% rename from lib/libcoolstream/playback_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/playback_cs.h diff --git a/lib/libcoolstream/pwrmngr.h b/lib/hardware/coolstream/hd1/libcoolstream/pwrmngr.h similarity index 100% rename from lib/libcoolstream/pwrmngr.h rename to lib/hardware/coolstream/hd1/libcoolstream/pwrmngr.h diff --git a/lib/libcoolstream/record_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/record_cs.h similarity index 100% rename from lib/libcoolstream/record_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/record_cs.h diff --git a/lib/libcoolstream/tsrouter.h b/lib/hardware/coolstream/hd1/libcoolstream/tsrouter.h similarity index 100% rename from lib/libcoolstream/tsrouter.h rename to lib/hardware/coolstream/hd1/libcoolstream/tsrouter.h diff --git a/lib/libcoolstream/video_cs.h b/lib/hardware/coolstream/hd1/libcoolstream/video_cs.h similarity index 100% rename from lib/libcoolstream/video_cs.h rename to lib/hardware/coolstream/hd1/libcoolstream/video_cs.h diff --git a/lib/libcoolstream2/audio_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/audio_cs.h similarity index 100% rename from lib/libcoolstream2/audio_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/audio_cs.h diff --git a/lib/libcoolstream2/ca_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/ca_cs.h similarity index 100% rename from lib/libcoolstream2/ca_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/ca_cs.h diff --git a/lib/libcoolstream2/cnxtfb.h b/lib/hardware/coolstream/hd2/libcoolstream/cnxtfb.h similarity index 100% rename from lib/libcoolstream2/cnxtfb.h rename to lib/hardware/coolstream/hd2/libcoolstream/cnxtfb.h diff --git a/lib/libcoolstream2/control.h b/lib/hardware/coolstream/hd2/libcoolstream/control.h similarity index 100% rename from lib/libcoolstream2/control.h rename to lib/hardware/coolstream/hd2/libcoolstream/control.h diff --git a/lib/libcoolstream2/cs_api.h b/lib/hardware/coolstream/hd2/libcoolstream/cs_api.h similarity index 100% rename from lib/libcoolstream2/cs_api.h rename to lib/hardware/coolstream/hd2/libcoolstream/cs_api.h diff --git a/lib/libcoolstream2/cs_frontpanel.h b/lib/hardware/coolstream/hd2/libcoolstream/cs_frontpanel.h similarity index 100% rename from lib/libcoolstream2/cs_frontpanel.h rename to lib/hardware/coolstream/hd2/libcoolstream/cs_frontpanel.h diff --git a/lib/libcoolstream2/cs_ir_generic.h b/lib/hardware/coolstream/hd2/libcoolstream/cs_ir_generic.h similarity index 100% rename from lib/libcoolstream2/cs_ir_generic.h rename to lib/hardware/coolstream/hd2/libcoolstream/cs_ir_generic.h diff --git a/lib/libcoolstream2/cs_types.h b/lib/hardware/coolstream/hd2/libcoolstream/cs_types.h similarity index 100% rename from lib/libcoolstream2/cs_types.h rename to lib/hardware/coolstream/hd2/libcoolstream/cs_types.h diff --git a/lib/libcoolstream2/cs_vfd.h b/lib/hardware/coolstream/hd2/libcoolstream/cs_vfd.h old mode 100755 new mode 100644 similarity index 100% rename from lib/libcoolstream2/cs_vfd.h rename to lib/hardware/coolstream/hd2/libcoolstream/cs_vfd.h diff --git a/lib/libcoolstream2/dmx_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/dmx_cs.h similarity index 100% rename from lib/libcoolstream2/dmx_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/dmx_cs.h diff --git a/lib/libcoolstream2/mmi.h b/lib/hardware/coolstream/hd2/libcoolstream/mmi.h similarity index 100% rename from lib/libcoolstream2/mmi.h rename to lib/hardware/coolstream/hd2/libcoolstream/mmi.h diff --git a/lib/libcoolstream2/nevis_ir.h b/lib/hardware/coolstream/hd2/libcoolstream/nevis_ir.h similarity index 100% rename from lib/libcoolstream2/nevis_ir.h rename to lib/hardware/coolstream/hd2/libcoolstream/nevis_ir.h diff --git a/lib/libcoolstream2/playback.h b/lib/hardware/coolstream/hd2/libcoolstream/playback.h similarity index 100% rename from lib/libcoolstream2/playback.h rename to lib/hardware/coolstream/hd2/libcoolstream/playback.h diff --git a/lib/libcoolstream2/playback_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h similarity index 100% rename from lib/libcoolstream2/playback_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/playback_cs.h diff --git a/lib/libcoolstream2/pwrmngr.h b/lib/hardware/coolstream/hd2/libcoolstream/pwrmngr.h similarity index 100% rename from lib/libcoolstream2/pwrmngr.h rename to lib/hardware/coolstream/hd2/libcoolstream/pwrmngr.h diff --git a/lib/libcoolstream2/record_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/record_cs.h similarity index 100% rename from lib/libcoolstream2/record_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/record_cs.h diff --git a/lib/libcoolstream2/tsrouter.h b/lib/hardware/coolstream/hd2/libcoolstream/tsrouter.h similarity index 100% rename from lib/libcoolstream2/tsrouter.h rename to lib/hardware/coolstream/hd2/libcoolstream/tsrouter.h diff --git a/lib/libcoolstream2/video_cs.h b/lib/hardware/coolstream/hd2/libcoolstream/video_cs.h similarity index 100% rename from lib/libcoolstream2/video_cs.h rename to lib/hardware/coolstream/hd2/libcoolstream/video_cs.h diff --git a/lib/libcoolstream/.svnignore b/lib/libcoolstream/.svnignore deleted file mode 100644 index 3694ff0e6..000000000 --- a/lib/libcoolstream/.svnignore +++ /dev/null @@ -1,5 +0,0 @@ -Makefile.in -.libs -.deps -*.la -*.lo From ca1ebd7eb238594582277c847d6c7bb95120e178 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 6 Mar 2017 21:49:32 +0100 Subject: [PATCH 6/6] configure.ac: remove duplicated code Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d3c3d3760cd1a457ff5cf4193628f3fb617862d2 Author: vanhofen Date: 2017-03-06 (Mon, 06 Mar 2017) Origin message was: ------------------ - configure.ac: remove duplicated code ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8b7fe6969..2dc77868d 100644 --- a/configure.ac +++ b/configure.ac @@ -239,7 +239,7 @@ if test "$BOXTYPE" = "coolstream"; then if test -e ${srcdir}/lib/hardware/coolstream/hd1/libcoolstream/nevis_ir.h; then AC_DEFINE(HAVE_COOLSTREAM_NEVIS_IR_H,1,[Define to 1 if you have the header file.]) fi -HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd1/libcoolstream -I$(top_srcdir)/src/zapit/include/private' +HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd1/libcoolstream' if test "$BOXMODEL" = "hd2"; then if test -e ${srcdir}/lib/hardware/coolstream/hd2/libcoolstream/cs_ir_generic.h; then @@ -248,8 +248,9 @@ fi if test -e ${srcdir}/lib/hardware/coolstream/hd2/libcoolstream/cs_frontpanel.h; then AC_DEFINE(HAVE_COOLSTREAM_CS_FRONTPANEL_H,1,[Define to 1 if you have the header file.]) fi -HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd2/libcoolstream -I$(top_srcdir)/src/zapit/include/private' +HWLIB_CFLAGS='-I$(top_srcdir)/lib/hardware/coolstream/hd2/libcoolstream' fi +HWLIB_CFLAGS="$HWLIB_CFLAGS "'-I$(top_srcdir)/src/zapit/include/private' HWLIB_CFLAGS="$HWLIB_CFLAGS "'-I$(top_srcdir)/lib/hardware/coolstream' fi