From 7ad7fda4fbb89749bb5f7ce9a3ea4a8f97b88f9a Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sun, 1 Jan 2012 11:57:22 -0200 Subject: [PATCH] utils/dvb: Allow forcing a DVBv3 call Signed-off-by: Mauro Carvalho Chehab --- utils/dvb/dvb-fe-tool.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/dvb/dvb-fe-tool.c b/utils/dvb/dvb-fe-tool.c index 5a82c33..a6f5d20 100644 --- a/utils/dvb/dvb-fe-tool.c +++ b/utils/dvb/dvb-fe-tool.c @@ -21,6 +21,7 @@ static const struct argp_option options[] = { {"frontend", 'f', "FRONTEND", 0, "dvb frontend", 0}, {"set", 's', "PARAMS", 0, "set frontend", 0}, {"get", 'g', 0, 0, "get frontend", 0}, + {"dvbv3", '3', 0, 0, "Use DVBv3 only", 0}, { 0, 0, 0, 0, 0, 0 } }; @@ -29,6 +30,7 @@ static int frontend = 0; static unsigned get = 0; char *set_params = NULL; static int verbose = 1; /* FIXME */ +static int dvbv3 = 0; static error_t parse_opt(int k, char *arg, struct argp_state *state) { @@ -45,6 +47,9 @@ static error_t parse_opt(int k, char *arg, struct argp_state *state) case 'g': get++; break; + case '3': + dvbv3++; + break; case 'v': verbose ++; break; @@ -66,7 +71,7 @@ int main(int argc, char *argv[]) argp_parse(&argp, argc, argv, 0, 0, 0); - parms = dvb_fe_open(adapter, frontend, verbose, 0); + parms = dvb_fe_open(adapter, frontend, verbose, dvbv3); #if 0 if (set_params) -- 2.7.4