platform/upstream/v4l-utils.git
12 years agoutils/dvb: move the table type to the parse_descriptor function
Mauro Carvalho Chehab [Sat, 7 Jan 2012 09:47:10 +0000 (07:47 -0200)]
utils/dvb: move the table type to the parse_descriptor function

This brings more flexibility for the code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for LCN descriptor
Mauro Carvalho Chehab [Sat, 7 Jan 2012 09:28:44 +0000 (07:28 -0200)]
utils/dvb: Add support for LCN descriptor

While this descriptor appears on several places, it took some
time to discover the format for it. Finally found it at:

http://mumudvb.braice.net/mumudrupal/sites/default/files/Specifiche_LCN.pdf

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a few other descriptors
Mauro Carvalho Chehab [Sat, 7 Jan 2012 09:07:39 +0000 (07:07 -0200)]
utils/dvb: Add a few other descriptors

with the help of libdvbpsi, added a few other descriptors found at
some ISDB-T  channels.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for ISDB NIT most usual descriptors
Mauro Carvalho Chehab [Sat, 7 Jan 2012 08:27:41 +0000 (06:27 -0200)]
utils/dvb: Add support for ISDB NIT most usual descriptors

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Unknown descriptor should not be an error
Mauro Carvalho Chehab [Fri, 6 Jan 2012 22:18:11 +0000 (20:18 -0200)]
utils/dvb: Unknown descriptor should not be an error

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for detecting the virtual channel on ISDB-T
Mauro Carvalho Chehab [Fri, 6 Jan 2012 22:16:49 +0000 (20:16 -0200)]
utils/dvb: Add support for detecting the virtual channel on ISDB-T

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a description for the parsed descriptors
Mauro Carvalho Chehab [Fri, 6 Jan 2012 21:56:18 +0000 (19:56 -0200)]
utils/dvb: Add a description for the parsed descriptors

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix descriptors parsing
Mauro Carvalho Chehab [Fri, 6 Jan 2012 21:49:01 +0000 (19:49 -0200)]
utils/dvb: Fix descriptors parsing

The descriptors parsing were failing. Fix its logic.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add ISDB-T specific descriptors, according with the specs
Mauro Carvalho Chehab [Fri, 6 Jan 2012 20:57:14 +0000 (18:57 -0200)]
utils/dvb: Add ISDB-T specific descriptors, according with the specs

Add the descriptors according with ABNT NBR 15603-1:2007
(corrected 2008 version)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: dvb tools: Set frontend on dvbv5-scan and dvbv5-zap
Mauro Carvalho Chehab [Thu, 5 Jan 2012 17:22:54 +0000 (15:22 -0200)]
utils/dvb: dvb tools: Set frontend on dvbv5-scan and dvbv5-zap

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add support for setting the frontend type
Mauro Carvalho Chehab [Thu, 5 Jan 2012 13:07:09 +0000 (11:07 -0200)]
utils/dvb: add support for setting the frontend type

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a file converter
Mauro Carvalho Chehab [Wed, 4 Jan 2012 16:09:56 +0000 (14:09 -0200)]
utils/dvb: Add a file converter

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for the new format
Mauro Carvalho Chehab [Wed, 4 Jan 2012 14:27:01 +0000 (12:27 -0200)]
utils/dvb: Add support for the new format

Now, by default, it will use the new format. Old formats are still
supported, via passing some extra options to it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: The comparation were inverted. fix it
Mauro Carvalho Chehab [Wed, 4 Jan 2012 14:26:43 +0000 (12:26 -0200)]
utils/dvb: The comparation were inverted. fix it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: improve error messages for store/retrieve
Mauro Carvalho Chehab [Wed, 4 Jan 2012 13:12:05 +0000 (11:12 -0200)]
utils/dvb: improve error messages for store/retrieve

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: fix parser for new format
Mauro Carvalho Chehab [Wed, 4 Jan 2012 13:11:44 +0000 (11:11 -0200)]
utils/dvb: fix parser for new format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Store delivery system at the properties
Mauro Carvalho Chehab [Wed, 4 Jan 2012 12:49:44 +0000 (10:49 -0200)]
utils/dvb: Store delivery system at the properties

This is needed when generating the channels file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix PID parsing on PAT table
Mauro Carvalho Chehab [Wed, 4 Jan 2012 11:50:44 +0000 (09:50 -0200)]
utils/dvb: Fix PID parsing on PAT table

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: remove a debug printf
Mauro Carvalho Chehab [Wed, 4 Jan 2012 11:43:41 +0000 (09:43 -0200)]
utils/dvb: remove a debug printf

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: fix a few warnings
Mauro Carvalho Chehab [Wed, 4 Jan 2012 11:42:48 +0000 (09:42 -0200)]
utils/dvb: fix a few warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add support for read the new format
Mauro Carvalho Chehab [Wed, 4 Jan 2012 11:37:38 +0000 (09:37 -0200)]
utils/dvb: add support for read the new format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: use standard "channels.conf" file
Mauro Carvalho Chehab [Wed, 4 Jan 2012 00:03:59 +0000 (22:03 -0200)]
utils/dvb: use standard "channels.conf" file

Instead of using ~/.tzap/channels.conf file, uses a standard
channels file, without the PID's. Also, pass it as a parameter,
just like dvb-apps "scan" tool.

After this patch, the tool is working fine for ISDB-T. It
will likely work fine also for DVB-T.

Additional changes are required for DVB-C, in order to proccess
the NIT/SDT tables there, and for DVB-S, due to satellite
specifics.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: fix scan print
Mauro Carvalho Chehab [Tue, 3 Jan 2012 23:50:37 +0000 (21:50 -0200)]
utils/dvb: fix scan print

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Wait for carrier before scanning for tables
Mauro Carvalho Chehab [Tue, 3 Jan 2012 23:46:52 +0000 (21:46 -0200)]
utils/dvb: Wait for carrier before scanning for tables

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add some messages during scan
Mauro Carvalho Chehab [Tue, 3 Jan 2012 20:53:29 +0000 (18:53 -0200)]
utils/dvb: Add some messages during scan

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: comment debug prints
Mauro Carvalho Chehab [Tue, 3 Jan 2012 20:41:18 +0000 (18:41 -0200)]
utils/dvb: comment debug prints

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Make it scan all channels
Mauro Carvalho Chehab [Tue, 3 Jan 2012 20:28:48 +0000 (18:28 -0200)]
utils/dvb: Make it scan all channels

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add a method for freeing dvb_description struct
Mauro Carvalho Chehab [Tue, 3 Jan 2012 19:54:51 +0000 (17:54 -0200)]
utils/dvb: add a method for freeing dvb_description struct

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: write channels into the file
Mauro Carvalho Chehab [Tue, 3 Jan 2012 19:39:06 +0000 (17:39 -0200)]
utils/dvb: write channels into the file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for multiple audio and video pid's per service ID
Mauro Carvalho Chehab [Tue, 3 Jan 2012 18:04:50 +0000 (16:04 -0200)]
utils/dvb: Add support for multiple audio and video pid's per service ID

While the existing formats allow only one audio/video PID,
the new format is flexible enough to allow more than one.

So, allow it!

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a parser for the NIT table
Mauro Carvalho Chehab [Tue, 3 Jan 2012 17:33:42 +0000 (15:33 -0200)]
utils/dvb: Add a parser for the NIT table

Also, comment the NIT other and SDT other, as they're not visible
here. An additional logic may be needed, in order to know if
those things are needed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: parse also the PMT descriptors
Mauro Carvalho Chehab [Tue, 3 Jan 2012 16:04:48 +0000 (14:04 -0200)]
utils/dvb: parse also the PMT descriptors

There's no usage for them on a scan tool. Yet, send them to the
parser. This way, if ever needed, they could also be properly
parsed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add support for transport descriptors
Mauro Carvalho Chehab [Tue, 3 Jan 2012 15:30:07 +0000 (13:30 -0200)]
utils/dvb: add support for transport descriptors

As this is tested with an ISDB-T channel, the only descriptor
found there is 0x41 (service_list_descriptor). This has no meaning
for a dvb-scan tool, so don't implement it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a parser for descriptors
Mauro Carvalho Chehab [Tue, 3 Jan 2012 14:55:04 +0000 (12:55 -0200)]
utils/dvb: Add a parser for descriptors

The descriptors use EN 300 468 annex A for encoding strings.
Import the parser I wrote for it from dvb-utils scan.c, and add
the descriptors described at ETSI EN 300 468 V1.11.1 (2010-04).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Code cleanup
Mauro Carvalho Chehab [Tue, 3 Jan 2012 12:00:39 +0000 (10:00 -0200)]
utils/dvb: Code cleanup

Improve debug messages, remove some code duplication.

Also prepare for NIT and SDT parsers.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a poll logic to avoid waiting forever for a pid
Mauro Carvalho Chehab [Tue, 3 Jan 2012 11:37:18 +0000 (09:37 -0200)]
utils/dvb: Add a poll logic to avoid waiting forever for a pid

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add logic to parse PMT tables
Mauro Carvalho Chehab [Tue, 3 Jan 2012 10:25:32 +0000 (08:25 -0200)]
utils/dvb: add logic to parse PMT tables

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Start a dvbv5 scan application
Mauro Carvalho Chehab [Tue, 3 Jan 2012 00:09:10 +0000 (22:09 -0200)]
utils/dvb: Start a dvbv5 scan application

This application is based on dvbv5-zap application, plus a reading
at the DVB specs. It might be easier to start from some other DVB
scan tool, but reading from specs will help to be sure that it will
follow the latest standards. It also makes easier to develop a
DVB-API independent version of the library, and then write some code
to convert from its internal representation into the DVBv5
specifics.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Whitespace cleanup
Mauro Carvalho Chehab [Tue, 3 Jan 2012 00:08:50 +0000 (22:08 -0200)]
utils/dvb: Whitespace cleanup

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix a typo
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:42:12 +0000 (09:42 -0200)]
utils/dvb: Fix a typo

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Improve output data
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:24:46 +0000 (09:24 -0200)]
utils/dvb: Improve output data

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Don't print get_frontend props twice
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:23:58 +0000 (09:23 -0200)]
utils/dvb: Don't print get_frontend props twice

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Print the results of get_frontend after getting a lock
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:18:42 +0000 (09:18 -0200)]
utils/dvb: Print the results of get_frontend after getting a lock

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add support for get_frontend call
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:12:11 +0000 (09:12 -0200)]
utils/dvb: add support for get_frontend call

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: improve ISDB-T usage
Mauro Carvalho Chehab [Mon, 2 Jan 2012 11:08:35 +0000 (09:08 -0200)]
utils/dvb: improve ISDB-T usage

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Allow forcing a DVBv3 call
Mauro Carvalho Chehab [Sun, 1 Jan 2012 13:57:22 +0000 (11:57 -0200)]
utils/dvb: Allow forcing a DVBv3 call

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rename util.? to dvb-demux.?
Mauro Carvalho Chehab [Thu, 29 Dec 2011 21:15:42 +0000 (19:15 -0200)]
utils/dvb: Rename util.? to dvb-demux.?

util is a very bad name. Use something more meaningful.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: rename dvbzap.c to dvbv5-zap.c
Mauro Carvalho Chehab [Thu, 29 Dec 2011 21:10:41 +0000 (19:10 -0200)]
utils/dvb: rename dvbzap.c to dvbv5-zap.c

Use a better name, as maybe there are some other tools with the
same or a similar name.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: properly support ATSC
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:42:14 +0000 (17:42 -0200)]
utils/dvb: properly support ATSC

Change the delivery system for cable.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: don't change the delivery system
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:37:55 +0000 (17:37 -0200)]
utils/dvb: don't change the delivery system

The delivery system should not be changed, otherwise, it will
force it to be one of the 4 DVBv3 supported ones.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a new format to support all DVBv5 delivery systems
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:34:38 +0000 (17:34 -0200)]
utils/dvb: Add a new format to support all DVBv5 delivery systems

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Allow passing a FILE * parameter to dvb_fe_prt_parms
Mauro Carvalho Chehab [Thu, 29 Dec 2011 19:05:34 +0000 (17:05 -0200)]
utils/dvb: Allow passing a FILE * parameter to dvb_fe_prt_parms

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Remove some unused headers
Mauro Carvalho Chehab [Thu, 29 Dec 2011 18:11:43 +0000 (15:11 -0300)]
utils/dvb: Remove some unused headers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix coding style and add copyright notes
Mauro Carvalho Chehab [Thu, 29 Dec 2011 18:03:21 +0000 (15:03 -0300)]
utils/dvb: Fix coding style and add copyright notes

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix a few bugs on parsing zap format
Mauro Carvalho Chehab [Thu, 29 Dec 2011 17:53:27 +0000 (14:53 -0300)]
utils/dvb: Fix a few bugs on parsing zap format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Convert dvbzap to use the new parser
Mauro Carvalho Chehab [Thu, 29 Dec 2011 17:25:14 +0000 (14:25 -0300)]
utils/dvb: Convert dvbzap to use the new parser

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for parsing zap format
Mauro Carvalho Chehab [Thu, 29 Dec 2011 16:00:16 +0000 (13:00 -0300)]
utils/dvb: Add support for parsing zap format

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add a generic parser for channel/pid formats
Mauro Carvalho Chehab [Thu, 29 Dec 2011 14:27:35 +0000 (11:27 -0300)]
utils/dvb: Add a generic parser for channel/pid formats

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix ATSC/DVBC Annex B properties
Mauro Carvalho Chehab [Thu, 29 Dec 2011 08:54:02 +0000 (05:54 -0300)]
utils/dvb: Fix ATSC/DVBC Annex B properties

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: make it work with DVBv5 calls for ISDB-T
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:33:31 +0000 (20:33 -0300)]
utils/dvb: make it work with DVBv5 calls for ISDB-T

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix tuning issues
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:33:20 +0000 (20:33 -0300)]
utils/dvb: Fix tuning issues

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Store file descriptor at parms->fd
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:20:59 +0000 (20:20 -0300)]
utils/dvb: Store file descriptor at parms->fd

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Whitespacing cleanup
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:08:32 +0000 (20:08 -0300)]
utils/dvb: Whitespacing cleanup

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix bandwidth handling
Mauro Carvalho Chehab [Wed, 28 Dec 2011 23:07:42 +0000 (20:07 -0300)]
utils/dvb: Fix bandwidth handling

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: The logic there were inverted. Fix it
Mauro Carvalho Chehab [Wed, 28 Dec 2011 22:56:44 +0000 (19:56 -0300)]
utils/dvb: The logic there were inverted. Fix it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Print parameters with their names and not as integer
Mauro Carvalho Chehab [Wed, 28 Dec 2011 20:27:01 +0000 (17:27 -0300)]
utils/dvb: Print parameters with their names and not as integer

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: convert to use DVBv5 FE library
Mauro Carvalho Chehab [Wed, 28 Dec 2011 13:44:10 +0000 (10:44 -0300)]
utils/dvb: convert to use DVBv5 FE library

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: util doesn't need to know about frontend
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:51:55 +0000 (09:51 -0300)]
utils/dvb: util doesn't need to know about frontend

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: remove a few warnings
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:51:17 +0000 (09:51 -0300)]
utils/dvb: remove a few warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: remove a few warnings
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:50:00 +0000 (09:50 -0300)]
utils/dvb: remove a few warnings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rename tzap to dvbzap
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:49:22 +0000 (09:49 -0300)]
utils/dvb: Rename tzap to dvbzap

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add tzap from dvb-apps
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:29:18 +0000 (09:29 -0300)]
utils/dvb: Add tzap from dvb-apps

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Start adding options to get/set params
Mauro Carvalho Chehab [Wed, 28 Dec 2011 12:28:59 +0000 (09:28 -0300)]
utils/dvb: Start adding options to get/set params

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add support for DTV_ENUM_DELSYS
Mauro Carvalho Chehab [Tue, 27 Dec 2011 11:24:00 +0000 (08:24 -0300)]
utils/dvb: Add support for DTV_ENUM_DELSYS

Instead of doing some weird probe logic, just call the new cmd,
and all supported delivery systems should be reported.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Update headers to DVB API v5.5
Mauro Carvalho Chehab [Tue, 27 Dec 2011 10:14:26 +0000 (07:14 -0300)]
utils/dvb: Update headers to DVB API v5.5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: The current FE userspace is just a test tool. Rename it
Mauro Carvalho Chehab [Wed, 9 Nov 2011 18:18:32 +0000 (16:18 -0200)]
utils/dvb: The current FE userspace is just a test tool. Rename it

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Fix for ATSC legacy drivers
Mauro Carvalho Chehab [Mon, 24 Oct 2011 03:57:05 +0000 (05:57 +0200)]
utils/dvb: Fix for ATSC legacy drivers

ATSC legacy drivers emulation is currently somewhat broken. Changing
the delivery systems on those devices don't work. So, a hack is needed
here, in order to make it to properly detect the delivery systems,
based at the FE properties.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add options to select adapter/frontend/verbose
Mauro Carvalho Chehab [Mon, 24 Oct 2011 03:11:31 +0000 (05:11 +0200)]
utils/dvb: add options to select adapter/frontend/verbose

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Don't handle DVB-S2/T2 if version is bellow v5
Mauro Carvalho Chehab [Wed, 9 Nov 2011 13:17:37 +0000 (11:17 -0200)]
utils/dvb: Don't handle DVB-S2/T2 if version is bellow v5

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add some comments about the API and what is missing there
Mauro Carvalho Chehab [Sun, 9 Oct 2011 11:26:42 +0000 (08:26 -0300)]
utils/dvb: Add some comments about the API and what is missing there

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement stats functions
Mauro Carvalho Chehab [Sun, 9 Oct 2011 11:11:04 +0000 (08:11 -0300)]
utils/dvb: Implement stats functions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement SEC/LNB/DISEqC functions
Mauro Carvalho Chehab [Sun, 9 Oct 2011 10:11:41 +0000 (07:11 -0300)]
utils/dvb: Implement SEC/LNB/DISEqC functions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Implement get_status/get_event
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:43:38 +0000 (06:43 -0300)]
utils/dvb: Implement get_status/get_event

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Rearrange functions on a more logical structure
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:22:57 +0000 (06:22 -0300)]
utils/dvb: Rearrange functions on a more logical structure

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Split API from the main file
Mauro Carvalho Chehab [Sun, 9 Oct 2011 09:13:44 +0000 (06:13 -0300)]
utils/dvb: Split API from the main file

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: add a prototype for a dvb scan based on APIv5
Mauro Carvalho Chehab [Sat, 8 Oct 2011 19:40:50 +0000 (16:40 -0300)]
utils/dvb: add a prototype for a dvb scan based on APIv5

For now, it does nothing but get device capabilities, and
identify the supported delivery systems.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add the remaining parameters for Satellite delivery systems
Mauro Carvalho Chehab [Sat, 8 Oct 2011 17:45:58 +0000 (14:45 -0300)]
utils/dvb: Add the remaining parameters for Satellite delivery systems

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Add definitions for all dvb standards
Mauro Carvalho Chehab [Sat, 8 Oct 2011 17:16:42 +0000 (14:16 -0300)]
utils/dvb: Add definitions for all dvb standards

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoutils/dvb: Generate a header describing the DVBv5 frontend API
Mauro Carvalho Chehab [Sat, 8 Oct 2011 16:13:33 +0000 (13:13 -0300)]
utils/dvb: Generate a header describing the DVBv5 frontend API

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agolibv4l: Add 90 degrees rotated JPEG quirk for 145f:013c
Hans de Goede [Fri, 30 Dec 2011 22:13:51 +0000 (23:13 +0100)]
libv4l: Add 90 degrees rotated JPEG quirk for 145f:013c

Reported by: Grzegorz Woźniak

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agolibv4l: Improve jl2005bcd conversion code error reporting and handling
Hans de Goede [Thu, 29 Dec 2011 20:42:27 +0000 (21:42 +0100)]
libv4l: Improve jl2005bcd conversion code error reporting and handling

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
12 years agoImproved JL2005BCD patch for libv4lcnvert
Theodore Kilgore [Fri, 16 Dec 2011 19:53:03 +0000 (13:53 -0600)]
Improved JL2005BCD patch for libv4lcnvert

Hans,

The patch below supercedes the previous one I sent.

Two particular items of interest:

1. The Bayer tiling question seems to be resolved.

2. White balance is enabled and seems to help a lot. I am not certain if
one ought to enable a gamma setting as well, but things look pretty decent
without it, seems to me.

Other remarks:

It is pretty clear that these cameras have an internal gain setting which
relies upon internal feedback for self-correction. It works pretty well
most of the time, but sometimes it overcorrects and thereby goes a little
bit crazy.

I have tried it out with a bunch of cameras now. I did not check
individually which one is which, but I have a fairly large set of them
which includes the B and C and D variants, and some of the fancy ones have
the LCD previewer on the back but definitely do not send preview
thumbnails in webcam mode. So all of them seem to work. I would dare to
presume that your camera will work, too, whenever you get around to
checking it.

Patch below created by git diff from my recently downloaded git tree, as
was the last one. Patch is

Signed-off-by Theodore Kilgore <kilgota@auburn.edu>

12 years agoparse_tm6000.pl: Fix permissions
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:42:54 +0000 (10:42 -0200)]
parse_tm6000.pl: Fix permissions

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tm6000.pl: Improve script and fix a few bugs
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:40:29 +0000 (10:40 -0200)]
parse_tm6000.pl: Improve script and fix a few bugs

Add support for GPIO and req4 handling, and fix a few bugs at
the decoding logic (read or write identification on some tests).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tm6000.pl: Add a simple parser for tm6000 registers
Mauro Carvalho Chehab [Wed, 30 Nov 2011 12:18:18 +0000 (10:18 -0200)]
parse_tm6000.pl: Add a simple parser for tm6000 registers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agokeytable: Syncronize with latest development kernel
Mauro Carvalho Chehab [Wed, 23 Nov 2011 21:49:25 +0000 (19:49 -0200)]
keytable: Syncronize with latest development kernel

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agokeytable: Add support for Sanyo IR protocol
Mauro Carvalho Chehab [Wed, 23 Nov 2011 21:29:37 +0000 (19:29 -0200)]
keytable: Add support for Sanyo IR protocol

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tcpdump_log.pl: die nicely on pcap
Mauro Carvalho Chehab [Tue, 26 Jul 2011 13:09:44 +0000 (10:09 -0300)]
parse_tcpdump_log.pl: die nicely on pcap

Handles common kill signals, to close pcap capture nicely.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_tcpdump_log.pl: Add an option to show that bulk/isoc xfers happened
Mauro Carvalho Chehab [Tue, 26 Jul 2011 12:06:41 +0000 (09:06 -0300)]
parse_tcpdump_log.pl: Add an option to show that bulk/isoc xfers happened

This is not really a parser for bulk/isoc, but it helps to see where,
in the stream, the xfers started to occur.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 years agoparse_az6007.pl: Some enhancements for the tool
Mauro Carvalho Chehab [Tue, 26 Jul 2011 12:02:10 +0000 (09:02 -0300)]
parse_az6007.pl: Some enhancements for the tool

- Add an option to ease writing a script to producing DRX-K firmware from
  the parsed logs: it disables register name translation and make everything
  look like a block write;
- Fixes a few reqs name for az6007 to match the changes I'm doing at the
  driver;
- Rename the az6007 read/write function at the dumps (also to match the
  driver changes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>