[dvblast-devel] fix DVB-C annex B (US)

Christophe Massiot git at videolan.org
Mon Dec 16 23:36:41 CET 2013


dvblast | branch: master | Christophe Massiot <massiot at via.ecp.fr> | Mon Dec 16 23:36:12 2013 +0100| [01076ad33f81b9a03bb5b8f0becef2a5dd8814c1] | committer: Christophe Massiot

fix DVB-C annex B (US)

> http://git.videolan.org/gitweb.cgi/dvblast.git/?a=commit;h=01076ad33f81b9a03bb5b8f0becef2a5dd8814c1
---

 dvb.c |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/dvb.c b/dvb.c
index 0665d8e..6873da4 100644
--- a/dvb.c
+++ b/dvb.c
@@ -930,6 +930,7 @@ static struct dtv_properties dvbt_cmdseq = {
     .props = dvbt_cmdargs
 };
 
+/* ATSC + DVB-C annex B */
 static struct dtv_property atsc_cmdargs[] = {
     { .cmd = DTV_DELIVERY_SYSTEM, .u.data = SYS_ATSC },
     { .cmd = DTV_FREQUENCY,       .u.data = 0 },
@@ -981,6 +982,8 @@ FrontendGuessSystem( fe_delivery_system_t *p_systems, int i_systems )
 #else
             return SYS_DVBC_ANNEX_AC;
 #endif
+        if ( !strcasecmp( psz_delsys, "DVBC_ANNEX_B" ) )
+            return SYS_DVBC_ANNEX_B;
         if ( !strcasecmp( psz_delsys, "DVBT" ) )
             return SYS_DVBT;
         if ( !strcasecmp( psz_delsys, "ATSC" ) )
@@ -1151,6 +1154,19 @@ static void FrontendSet( bool b_init )
                  psz_modulation == NULL ? "qam_auto" : psz_modulation );
         break;
 
+    case SYS_DVBC_ANNEX_B:
+        p = &atsc_cmdseq;
+        p->props[DELSYS].u.data = system;
+        p->props[FREQUENCY].u.data = i_frequency;
+        p->props[INVERSION].u.data = GetInversion();
+        if ( psz_modulation != NULL )
+            p->props[MODULATION].u.data = GetModulation();
+
+        msg_Dbg( NULL, "tuning ATSC cable frontend to f=%d inversion=%d modulation=%s",
+                 i_frequency, i_inversion,
+                 psz_modulation == NULL ? "qam_auto" : psz_modulation );
+        break;
+
     case SYS_DVBS:
     case SYS_DVBS2:
         if ( psz_modulation != NULL )



More information about the dvblast-devel mailing list