]> git.sesse.net Git - vlc/commitdiff
* modules/access/dvb/linux_dvb.c: Added support for the IF-band.
authorChristophe Massiot <massiot@videolan.org>
Mon, 25 Jul 2005 16:53:10 +0000 (16:53 +0000)
committerChristophe Massiot <massiot@videolan.org>
Mon, 25 Jul 2005 16:53:10 +0000 (16:53 +0000)
modules/access/dvb/linux_dvb.c

index 321d175874d9a3c49caf97c43e9eaa48d33844a4..b7257965c452d12a894fbef0738583dc10547de4 100644 (file)
@@ -690,7 +690,7 @@ static int FrontendSetQPSK( access_t *p_access )
     struct dvb_frontend_parameters fep;
     int i_ret;
     vlc_value_t val;
-    int i_frequency, i_lnb_slof, i_lnb_lof1, i_lnb_lof2 = 0;
+    int i_frequency, i_lnb_slof = 0, i_lnb_lof1, i_lnb_lof2 = 0;
 
     /* Prepare the fep structure */
     var_Get( p_access, "dvb-frequency", &val );
@@ -700,25 +700,27 @@ static int FrontendSetQPSK( access_t *p_access )
     if ( val.i_int == 0 )
     {
         /* Automatic mode. */
-        if ( i_frequency >= 2500000 && i_frequency <= 2700000 )
+        if ( i_frequency >= 950000 && i_frequency <= 2150000 )
+        {
+            msg_Dbg( p_access, "frequency %d is in IF-band", i_frequency );
+            i_lnb_lof1 = 0;
+        }
+        else if ( i_frequency >= 2500000 && i_frequency <= 2700000 )
         {
             msg_Dbg( p_access, "frequency %d is in S-band", i_frequency );
             i_lnb_lof1 = 3650000;
-            i_lnb_slof = 0;
         }
         else if ( i_frequency >= 3400000 && i_frequency <= 4200000 )
         {
             msg_Dbg( p_access, "frequency %d is in C-band (lower)",
                      i_frequency );
             i_lnb_lof1 = 5150000;
-            i_lnb_slof = 0;
         }
         else if ( i_frequency >= 4500000 && i_frequency <= 4800000 )
         {
             msg_Dbg( p_access, "frequency %d is in C-band (higher)",
                      i_frequency );
             i_lnb_lof1 = 5950000;
-            i_lnb_slof = 0;
         }
         else if ( i_frequency >= 10700000 && i_frequency <= 13250000 )
         {