From 7b5e7610bc72bc428828eb3e3ae9cfc5396ff9eb Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 15 Dec 2013 13:17:51 -0200 Subject: [PATCH] dvb-fe: fix using a DVB-T file for ISDB-T When a DVB-T channel file is used, and the frontend has ISDB-T instead, put it into ISDB-T auto search mode. That is better than let the Kernel to use the compatibility mode, as the output files will have the proper ISDB-T fields. Signed-off-by: Mauro Carvalho Chehab --- lib/libdvbv5/dvb-fe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/libdvbv5/dvb-fe.c b/lib/libdvbv5/dvb-fe.c index 2d65e14..eeddb20 100644 --- a/lib/libdvbv5/dvb-fe.c +++ b/lib/libdvbv5/dvb-fe.c @@ -377,7 +377,6 @@ int dvb_set_compat_delivery_system(struct dvb_v5_fe_parms *parms, uint32_t delsys = SYS_UNDEFINED; enum dvbv3_emulation_type type; - /* Check if the desired delivery system is supported */ for (i = 0; i < parms->num_systems; i++) { if (parms->systems[i] == desired_system) { @@ -405,10 +404,12 @@ int dvb_set_compat_delivery_system(struct dvb_v5_fe_parms *parms, if (delsys == SYS_UNDEFINED) return -1; - dvb_set_sys(parms, desired_system); + dvb_log("Using a DVBv3 compat file for %s", delivery_system_name[delsys]); + + dvb_set_sys(parms, delsys); /* Put ISDB-T into auto mode */ - if (desired_system == SYS_ISDBT) { + if (delsys == SYS_ISDBT) { dvb_fe_store_parm(parms, DTV_BANDWIDTH_HZ, 6000000); dvb_fe_store_parm(parms, DTV_ISDBT_PARTIAL_RECEPTION, 0); dvb_fe_store_parm(parms, DTV_ISDBT_SOUND_BROADCASTING, 0); -- 2.7.4