]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: add debug hint - TVHEADEND_DEBUG_FORCE_DVBS
authorJaroslav Kysela <perex@perex.cz>
Mon, 5 Oct 2015 17:01:13 +0000 (19:01 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 6 Oct 2015 10:45:07 +0000 (12:45 +0200)
src/input/mpegts/linuxdvb/linuxdvb_adapter.c

index 5a1108b2d39493a29cbd9815c43aa180f127576d..225966f624f158af87526e58578af1529b37dce1 100644 (file)
@@ -216,9 +216,15 @@ linuxdvb_adapter_new(const char *path, int a, const char *name,
 /*
  *
  */
+static int force_dvbs;
+
 static dvb_fe_type_t
 linuxdvb_get_type(int linux_type)
 {
+  /* useful for debugging with DVB-T */
+  if (force_dvbs)
+    return DVB_TYPE_S;
+
   switch (linux_type) {
   case FE_QPSK:
     return DVB_TYPE_S;
@@ -587,6 +593,8 @@ static fsmonitor_t devmon = {
 void
 linuxdvb_adapter_init ( void )
 {
+  force_dvbs = getenv("TVHEADEND_DEBUG_FORCE_DVBS") != NULL;
+
   /* Install monitor on /dev */
   (void)fsmonitor_add("/dev", &devmon);