make it compatible with 7020 again (should be removed in the final version)
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 11 Nov 2005 22:05:26 +0000 (22:05 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Fri, 11 Nov 2005 22:05:26 +0000 (22:05 +0000)
lib/dvb/frontend.cpp
lib/python/Components/NimManager.py

index b8debd8..022b909 100644 (file)
@@ -637,9 +637,9 @@ RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
                if (res)
                        return res;
 #if HAVE_DVB_API_VERSION < 3
-               eDebug("tuning to %d mhz", parm.Frequency/1000);
+               eDebug("tuning to %d mhz", parm.Frequency/100);
 #else
-               eDebug("tuning to %d mhz", parm.frequency/1000);
+               eDebug("tuning to %d mhz", parm.frequency/100);
 #endif
                break;
        }
index f04d076..53c6b62 100644 (file)
@@ -132,7 +132,14 @@ class NimManager:
                nimfile = tryOpen("/proc/bus/nim_sockets")
 
                if nimfile == "":
-                       return self.nimType["empty/unknown"]
+                       # FIXME: remove this in the final version
+                       # check if we have a device for 7020 comp?atibility reasons
+                       try:
+                               open("/dev/dvb/card0/frontend" + str(slotID))
+                               return self.nimType["DVB-S"]
+                       except IOError:
+                               return self.nimType["empty/unknown"]
+
 
                while 1:                
                        line = nimfile.readline()