From: Jaroslav Kysela Date: Wed, 9 Dec 2015 20:47:41 +0000 (+0100) Subject: hdhomerun: add new ATSC types to the tuner config X-Git-Tag: v4.2.1~1326 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a2eab8f26d324a7a8e597a73fac57a4b098b9b0;p=thirdparty%2Ftvheadend.git hdhomerun: add new ATSC types to the tuner config --- diff --git a/src/input/mpegts/tvhdhomerun/tvhdhomerun.c b/src/input/mpegts/tvhdhomerun/tvhdhomerun.c index 5d9994a0d..3425a8172 100644 --- a/src/input/mpegts/tvhdhomerun/tvhdhomerun.c +++ b/src/input/mpegts/tvhdhomerun/tvhdhomerun.c @@ -77,7 +77,8 @@ tvhdhomerun_device_class_override_enum( void * p, const char *lang ) htsmsg_t *m = htsmsg_create_list(); htsmsg_add_str(m, NULL, "DVB-T"); htsmsg_add_str(m, NULL, "DVB-C"); - htsmsg_add_str(m, NULL, "ATSC"); + htsmsg_add_str(m, NULL, "ATSC-T"); + htsmsg_add_str(m, NULL, "ATSC-C"); return m; } @@ -283,8 +284,11 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo) if ( conf != NULL ) { const char *override_type = htsmsg_get_str(conf, "fe_override"); if ( override_type != NULL) { + if ( !strcmp(override_type, "ATSC" ) ) + override_type = "ATSC-T"; type = dvb_str2type(override_type); - if ( ! ( type == DVB_TYPE_C || type == DVB_TYPE_T || type == DVB_TYPE_ATSC_T ) ) { + if ( ! ( type == DVB_TYPE_C || type == DVB_TYPE_T || + type == DVB_TYPE_ATSC_T || type == DVB_TYPE_ATSC_C ) ) { type = DVB_TYPE_C; } }