]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
hdhomerun: add new ATSC types to the tuner config
authorJaroslav Kysela <perex@perex.cz>
Wed, 9 Dec 2015 20:47:41 +0000 (21:47 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 9 Dec 2015 20:47:41 +0000 (21:47 +0100)
src/input/mpegts/tvhdhomerun/tvhdhomerun.c

index 5d9994a0de4d7b06e4c3f42f33ddc2127bfe7ef8..3425a8172022bf6f9f36273f80d18460727aed55 100644 (file)
@@ -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;
       }
     }