From: Mauro Carvalho Chehab Date: Sun, 1 Jan 2012 13:57:22 +0000 (-0200) Subject: utils/dvb: Allow forcing a DVBv3 call X-Git-Tag: v4l-utils-0.9.0-test1~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ad7fda4fbb89749bb5f7ce9a3ea4a8f97b88f9a;p=platform%2Fupstream%2Fv4l-utils.git utils/dvb: Allow forcing a DVBv3 call Signed-off-by: Mauro Carvalho Chehab --- 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)