[dvblast-devel] [PATCH 2/9] Show TURBO_FEC flag if it's supported by the frontend

Georgi Chorbadzhiyski gf at unixsol.org
Thu Jan 25 01:19:04 CET 2018


-------------- next part --------------
From 057153f110dee1bcbd76a225d10e59ac5b249a25 Mon Sep 17 00:00:00 2001
From: Georgi Chorbadzhiyski <gf at unixsol.org>
Date: Sat, 13 Jan 2018 17:59:24 +0200
Subject: [PATCH 2/9] Show TURBO_FEC flag if it's supported by the frontend

---
 dvb.c        | 2 ++
 dvblastctl.c | 1 +
 2 files changed, 3 insertions(+)

diff --git a/dvb.c b/dvb.c
index 31276b0..e07cdc5 100644
--- a/dvb.c
+++ b/dvb.c
@@ -52,6 +52,7 @@
 #if DVBAPI_VERSION < 508
   #define DTV_STREAM_ID        42
   #define FE_CAN_MULTISTREAM   0x4000000
+  #define FE_CAN_TURBO_FEC     0x8000000
 #endif
 
 #define MAX_DELIVERY_SYSTEMS 20
@@ -809,6 +810,7 @@ static void FrontendInfo( struct dvb_frontend_info *info, uint32_t version,
     FRONTEND_INFO( info->caps, FE_CAN_2G_MODULATION, "2G_MODULATION" )
 #endif
     FRONTEND_INFO( info->caps, FE_CAN_MULTISTREAM, "MULTISTREAM" )
+    FRONTEND_INFO( info->caps, FE_CAN_TURBO_FEC, "TURBO_FEC" )
     FRONTEND_INFO( info->caps, FE_NEEDS_BENDING, "NEEDS_BENDING" )
     FRONTEND_INFO( info->caps, FE_CAN_RECOVER, "FE_CAN_RECOVER" )
     FRONTEND_INFO( info->caps, FE_CAN_MUTE_TS, "FE_CAN_MUTE_TS" )
diff --git a/dvblastctl.c b/dvblastctl.c
index 378cb47..4137e1f 100644
--- a/dvblastctl.c
+++ b/dvblastctl.c
@@ -689,6 +689,7 @@ int main( int i_argc, char **ppsz_argv )
         PRINT_CAPS( CAN_2G_MODULATION );
 #endif
 #if DVBAPI_VERSION >= 508
+        PRINT_CAPS( CAN_TURBO_FEC );
         PRINT_CAPS( CAN_MULTISTREAM );
 #endif
 #undef PRINT_CAPS
-- 
2.16.0



More information about the dvblast-devel mailing list