From 06a29d3bdfc7829f3a6a9202d0c72f9b33eb357d Mon Sep 17 00:00:00 2001 From: max_10 Date: Wed, 11 Nov 2015 12:27:05 +0100 Subject: [PATCH] add cuberevo_3000hd (Thx to jaro44) Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/242f8a8c88d511ac1137bd12f1ccd08d71b08481 Author: max_10 Date: 2015-11-11 (Wed, 11 Nov 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- acinclude.m4 | 7 +++++-- libduckbox/hardware_caps.c | 10 ++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index f1b24d9..6460bec 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -333,7 +333,7 @@ AC_ARG_WITH(boxtype, AC_ARG_WITH(boxmodel, [ --with-boxmodel valid for dreambox: dm500, dm500plus, dm600pvr, dm56x0, dm7000, dm7020, dm7025 valid for ipbox: ip200, ip250, ip350, ip400 - valid for duckbox: ufs910, ufs912, ufs913, ufs922, atevio7500, fortis_hdbox, octagon1008, hs7110, hs7810a, hs7119, hs7819, dp7000, cuberevo, cuberevo_mini, cuberevo_mini2, cuberevo_250hd, cuberevo_2000hd, ipbox9900, ipbox99, ipbox55, arivalink200, tf7700 + valid for duckbox: ufs910, ufs912, ufs913, ufs922, atevio7500, fortis_hdbox, octagon1008, hs7110, hs7810a, hs7119, hs7819, dp7000, cuberevo, cuberevo_mini, cuberevo_mini2, cuberevo_250hd, cuberevo_2000hd, cuberevo_3000hd, ipbox9900, ipbox99, ipbox55, arivalink200, tf7700 valid for spark: spark, spark7162], [case "${withval}" in dm500|dm500plus|dm600pvr|dm56x0|dm7000|dm7020|dm7025) @@ -350,7 +350,7 @@ AC_ARG_WITH(boxmodel, AC_MSG_ERROR([unknown model $withval for boxtype $BOXTYPE]) fi ;; - ufs910|ufs912|ufs913|ufs922|atevio7500|fortis_hdbox|octagon1008|hs7110|hs7810a|hs7119|hs7819|dp7000|cuberevo|cuberevo_mini|cuberevo_mini2|cuberevo_250hd|cuberevo_2000hd|ipbox9900|ipbox99|ipbox55|arivalink200|tf7700) + ufs910|ufs912|ufs913|ufs922|atevio7500|fortis_hdbox|octagon1008|hs7110|hs7810a|hs7119|hs7819|dp7000|cuberevo|cuberevo_mini|cuberevo_mini2|cuberevo_250hd|cuberevo_2000hd|cuberevo_3000hd|ipbox9900|ipbox99|ipbox55|arivalink200|tf7700) if test "$BOXTYPE" = "duckbox"; then BOXMODEL="$withval" else @@ -423,6 +423,7 @@ AM_CONDITIONAL(BOXMODEL_CUBEREVO_MINI,test "$BOXMODEL" = "cuberevo_mini") AM_CONDITIONAL(BOXMODEL_CUBEREVO_MINI2,test "$BOXMODEL" = "cuberevo_mini2") AM_CONDITIONAL(BOXMODEL_CUBEREVO_250HD,test "$BOXMODEL" = "cuberevo_250hd") AM_CONDITIONAL(BOXMODEL_CUBEREVO_2000HD,test "$BOXMODEL" = "cuberevo_2000hd") +AM_CONDITIONAL(BOXMODEL_CUBEREVO_3000HD,test "$BOXMODEL" = "cuberevo_3000hd") AM_CONDITIONAL(BOXMODEL_IPBOX9900,test "$BOXMODEL" = "ipbox9900") AM_CONDITIONAL(BOXMODEL_IPBOX99,test "$BOXMODEL" = "ipbox99") AM_CONDITIONAL(BOXMODEL_IPBOX55,test "$BOXMODEL" = "ipbox55") @@ -500,6 +501,8 @@ elif test "$BOXMODEL" = "cuberevo_250hd"; then AC_DEFINE(BOXMODEL_CUBEREVO_250HD, 1, [cuberevo_250hd]) elif test "$BOXMODEL" = "cuberevo_2000hd"; then AC_DEFINE(BOXMODEL_CUBEREVO_2000HD, 1, [cuberevo_2000hd]) +elif test "$BOXMODEL" = "cuberevo_3000hd"; then + AC_DEFINE(BOXMODEL_CUBEREVO_3000HD, 1, [cuberevo_3000hd]) elif test "$BOXMODEL" = "ipbox9900"; then AC_DEFINE(BOXMODEL_IPBOX9900, 1, [ipbox9900]) elif test "$BOXMODEL" = "ipbox99"; then diff --git a/libduckbox/hardware_caps.c b/libduckbox/hardware_caps.c index 9340984..ce18724 100644 --- a/libduckbox/hardware_caps.c +++ b/libduckbox/hardware_caps.c @@ -200,6 +200,16 @@ hw_caps_t *get_hwcaps(void) caps.has_fan = 1; caps.has_CI = 2; } + else if (!strncmp(buf, "cuberevo-3000hd", 14)) { + strcpy(caps.boxvendor, "DUCKBOX"); + strcpy(caps.boxname, buf); + caps.can_shutdown = 1; + caps.has_HDMI = 1; + caps.has_SCART = 1; + caps.can_cec = 0; + caps.has_fan = 1; + caps.has_CI = 2; + } else if (!strncmp(buf, "ipbox9900", 9)) { strcpy(caps.boxvendor, "DUCKBOX"); strcpy(caps.boxname, buf);