platform/upstream/v4l-utils.git
4 years agolibv4lsyscall-priv.h: Use off_t instead of __off_t 78/219978/3 accepted/tizen/unified/20200110.123545 submit/tizen/20200109.081829
Thomas Petazzoni [Tue, 3 Nov 2015 20:58:36 +0000 (21:58 +0100)]
libv4lsyscall-priv.h: Use off_t instead of __off_t

__off_t is a kernel internal symbol, which happens to be user-visible
with glibc, but not necessarily with other C libraries such as
musl. In v4l-utils code, it's mainly used for the mmap() prototype,
but the mmap() manpage really uses off_t, not __off_t.

Switching from __off_t to off_t allows the code to build properly with
musl.

Change-Id: Ib8b8e0d37b40031e1bca14bfdf2d8c56e4a035c5
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
4 years agoinclude sys/sysmacros.h for major() & minor() 12/219912/4
Mike Frysinger [Mon, 14 Mar 2016 21:10:03 +0000 (17:10 -0400)]
include sys/sysmacros.h for major() & minor()

Linux C libraries are looking to disentangle sysmacros.h from the
sys/types.h header to clean up namespace pollution.  Since these
macros are provided in glibc/etc... today, switch to pulling in
this header directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Backported from trunk: f00fb19a1bb307bf11396058f01db89e6fe288d4
There was a merge conflict with the original patch.
The following file is missed in the current version:
contrib/test/mc_nextgen_test.c
It was excluded from the patch.

Change-Id: I38b6f75c36a0372e961deda73ce8f5dabed43053
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
7 years agoRemove libjpeg dependency 55/148555/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181102.025806 accepted/tizen/5.5/unified/20191031.014051 accepted/tizen/5.5/unified/mobile/hotfix/20201027.072826 accepted/tizen/5.5/unified/wearable/hotfix/20201027.105355 accepted/tizen/unified/20170920.065450 submit/tizen/20170915.062017 submit/tizen_5.0/20181101.000008 submit/tizen_5.5/20191031.000008 submit/tizen_5.5_mobile_hotfix/20201026.185108 submit/tizen_5.5_wearable_hotfix/20201026.184308 tizen_5.5.m2_release
Jeongmo Yang [Fri, 8 Sep 2017 06:18:07 +0000 (15:18 +0900)]
Remove libjpeg dependency

[Version] 1.6.0-6
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: I6a6403b923dda9ef9ffb7f9d01454c39ddbe4d4b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
7 years agoUpdate spec file and add new license files for BSD license 23/124823/2 accepted/tizen/4.0/unified/20170816.013834 accepted/tizen/4.0/unified/20170828.221833 accepted/tizen/unified/20170412.153657 submit/tizen/20170412.121325 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100007 tizen_4.0.m1_release
Jeongmo Yang [Wed, 12 Apr 2017 11:45:03 +0000 (20:45 +0900)]
Update spec file and add new license files for BSD license

[Version] 1.6.0-5
[Profile] Common
[Issue Type] Update
[Dependency module] N/A

Change-Id: I4ba1139c69d197b614d9905075a4e025c86b374c
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoRemove GPL licensed binary file 25/74625/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170105.025533 accepted/tizen/3.0.m2/tv/20170105.025658 accepted/tizen/3.0.m2/wearable/20170105.025745 accepted/tizen/3.0/common/20161114.111937 accepted/tizen/3.0/ivi/20161011.065120 accepted/tizen/3.0/mobile/20161015.034350 accepted/tizen/3.0/tv/20161016.005930 accepted/tizen/3.0/wearable/20161015.084416 accepted/tizen/common/20160620.162512 accepted/tizen/ivi/20160617.082452 accepted/tizen/mobile/20160617.081943 accepted/tizen/tv/20160617.082039 accepted/tizen/unified/20170309.040656 accepted/tizen/wearable/20160617.082131 submit/tizen/20160616.065630 submit/tizen_3.0.m2/20170104.093755 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_unified/20170308.100417
Jeongmo Yang [Wed, 15 Jun 2016 02:52:58 +0000 (11:52 +0900)]
Remove GPL licensed binary file

Change-Id: I76063a41e7b4123048aaa812124b870cdad1ee43
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoRemove unnecessary required package 44/69744/1 accepted/tizen/common/20160517.174033 accepted/tizen/ivi/20160517.083240 accepted/tizen/mobile/20160517.083255 accepted/tizen/tv/20160517.084607 accepted/tizen/wearable/20160517.083228 submit/tizen/20160517.011747
Jeongmo Yang [Mon, 16 May 2016 11:56:50 +0000 (20:56 +0900)]
Remove unnecessary required package

Change-Id: I1a9dbfc82c1468df926ae4cf288b1fad7bbff849
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoAdd manifest file 25/68925/1 accepted/tizen/common/20160513.123228 accepted/tizen/ivi/20160513.004149 accepted/tizen/mobile/20160513.004027 accepted/tizen/tv/20160513.004126 accepted/tizen/wearable/20160513.004053 submit/tizen/20160512.051443
Jeongmo Yang [Tue, 10 May 2016 11:10:40 +0000 (20:10 +0900)]
Add manifest file

Change-Id: I3af9ed100a740754f464c12b2d1598faa5342069
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
8 years agoDisable GPL license files 50/68850/1 accepted/tizen/common/20160510.141421 accepted/tizen/ivi/20160512.050203 accepted/tizen/mobile/20160512.050154 accepted/tizen/tv/20160512.050157 accepted/tizen/wearable/20160512.050148 submit/tizen/20160510.091228
Jeongmo Yang [Tue, 10 May 2016 06:25:08 +0000 (15:25 +0900)]
Disable GPL license files

Change-Id: I289a187aa0da85cd1e44267162a4c7924ff1d9a6
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
9 years agoPull systemd-devel for udev.pc 15/31215/1 tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/common/20141202.165311 accepted/tizen/ivi/20141209.110805 accepted/tizen/mobile/20141217.032711 submit/tizen_common/20141201.121739 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_ivi/20141208.111111 submit/tizen_ivi/20141209.000000 submit/tizen_mobile/20141217.022739 submit/tizen_mobile/20141217.023024 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
Łukasz Stelmach [Tue, 2 Dec 2014 14:26:28 +0000 (15:26 +0100)]
Pull systemd-devel for udev.pc

Change-Id: I823c6a7ccdcb9e574a542f7c6485cba221296e19
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
10 years agopackaging: Bump to 1.6.0 accepted/tizen/common/20141027.223345 accepted/tizen/ivi/20141119.110950 submit/tizen_common/20141027.153815 submit/tizen_ivi/20141119.052506 submit/tizen_ivi/20141119.333333 submit/tizen_ivi/20141119.444444 submit/tizen_mobile/20141120.000000
Philippe Coval [Tue, 14 Oct 2014 14:41:11 +0000 (16:41 +0200)]
packaging: Bump to 1.6.0

As suggested by upstream and Tizen Architect
spec file cleanup

Change-Id: I11687e9e0f9a14477febea1f9927f37b1ac8f3de
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
10 years agoadd .gbs.conf
Yan Yin [Mon, 12 Aug 2013 02:54:18 +0000 (10:54 +0800)]
add .gbs.conf

Change-Id: If2a31097088c1a1e5b5e7caab76538a8848e53dd

10 years agoAdd changelog entry
Patrick McCarty [Tue, 25 Jun 2013 18:51:49 +0000 (11:51 -0700)]
Add changelog entry

Change-Id: Ibdfefb2b6fbf57674289c4956e336f3053df606c

10 years agoAdd packaging
Patrick McCarty [Tue, 14 May 2013 01:14:56 +0000 (18:14 -0700)]
Add packaging

Change-Id: I18636a57c5815ba0c899e241a91aa67db3bd7af2

10 years agoPrepare for 1.6.0 release upstream/1.6.0 v4l-utils-1.6.0
Gregor Jasny [Sun, 5 Oct 2014 14:57:38 +0000 (16:57 +0200)]
Prepare for 1.6.0 release

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoqv4l2: Add keywords to desktop file
Gregor Jasny [Sun, 5 Oct 2014 14:55:26 +0000 (16:55 +0200)]
qv4l2: Add keywords to desktop file

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoman: Use Unicode character for ellipsis and fall back to ...
Gregor Jasny [Sun, 5 Oct 2014 14:51:01 +0000 (16:51 +0200)]
man: Use Unicode character for ellipsis and fall back to ...

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoman: place escape to correct position
Gregor Jasny [Sun, 5 Oct 2014 14:32:17 +0000 (16:32 +0200)]
man: place escape to correct position

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoman: Replace hyphen with minus sign
Gregor Jasny [Sun, 5 Oct 2014 14:29:07 +0000 (16:29 +0200)]
man: Replace hyphen with minus sign

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoman: Fix typo in dvb-fe-tool man page
Gregor Jasny [Sun, 5 Oct 2014 14:09:08 +0000 (16:09 +0200)]
man: Fix typo in dvb-fe-tool man page

10 years agoPrepare for 1.5.91 release v4l-utils-1.5.91
Gregor Jasny [Sun, 5 Oct 2014 13:50:21 +0000 (15:50 +0200)]
Prepare for 1.5.91 release

10 years agouser man pages: Add version to the man pages
Mauro Carvalho Chehab [Sat, 4 Oct 2014 14:20:01 +0000 (11:20 -0300)]
user man pages: Add version to the man pages

Create the man pages dynamically, adding the package version
inside them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agodvbv5-scan: add vdr format for the --help parameter
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:52:12 +0000 (10:52 -0300)]
dvbv5-scan: add vdr format for the --help parameter

The vdr format is supported as one of the output formats. Add it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years ago.gitignore: Ignore quilt patches/ dir
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:47:50 +0000 (10:47 -0300)]
.gitignore: Ignore quilt patches/ dir

Quilt may be useful for some developers and this dir is unused
here. So, add it to gitignore.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: Fix frequency table alloc size at desc_frequency_list
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:25:56 +0000 (10:25 -0300)]
libdvbv5: Fix frequency table alloc size at desc_frequency_list

As reported by Coverity:

CID 1132791 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)suspicious_sizeof:
Passing argument 8UL /* sizeof (d->frequency) */ to function calloc
and then casting the return value to uint32_t * is suspicious.

Did you intend to use sizeof (*d->frequency) instead of sizeof (d->frequency)?

Thankfully this will just waste more space on x86_64, but better
to fix.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agoRevert "dvb-file: don't dereference a NULL pointer"
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:17:44 +0000 (10:17 -0300)]
Revert "dvb-file: don't dereference a NULL pointer"

The check is not needed, as entry can never be null there.
Also, if the alloc fails, entry->next will be NULL and the
error code below will do the right thing.

This reverts commit f784f800a08abba45fdd595bd23a694347c492e9.

This fixes a Coverity Scan report.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agouser man pages: Change report bugs to linux media ML
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:12:04 +0000 (10:12 -0300)]
user man pages: Change report bugs to linux media ML

The best is to report the bugs to the mailing list, and not
directly to me.

While here, update copyright and timestamp at ir-keytable.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agoman: add a utils/dvb/dvbv5-zap.1 page and remove from doxygen
Mauro Carvalho Chehab [Sat, 4 Oct 2014 13:02:36 +0000 (10:02 -0300)]
man: add a utils/dvb/dvbv5-zap.1 page and remove from doxygen

Using doxygen for utils page is not too easy and not needed,
as we can simply write it directly using groff markup language.

So, write it.

While here, fix a few bits at dvb-format-convert and dvbv5-scan
manpages that were noticed while writing the new manpage.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agoman: move dvb-format-convert.1 out of Doxygen
Mauro Carvalho Chehab [Sat, 4 Oct 2014 12:09:08 +0000 (09:09 -0300)]
man: move dvb-format-convert.1 out of Doxygen

Using doxygen to document an userspace man page doesn't make
it easier. Instead, it brings extra troubles, as it would create
all man pages under the very same section.

So, move the dvb-fe-tool man page out of doxygen,
adding it as a separate file.

Hopefully, that will make it easier to maintain.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agodvb-format-convert: Fix help message
Mauro Carvalho Chehab [Sat, 4 Oct 2014 11:55:21 +0000 (08:55 -0300)]
dvb-format-convert: Fix help message

There are two issues on its help message:

1) There's a cut-and-paste error for the output format help;
2) Output now supports the vdr format.

Fix them.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agoman: move dvb-fe-tool.1 out of Doxygen
Mauro Carvalho Chehab [Sat, 4 Oct 2014 00:25:51 +0000 (21:25 -0300)]
man: move dvb-fe-tool.1 out of Doxygen

Using doxygen to document an userspace man page doesn't make
it easier. Instead, it brings extra troubles, as it would create
all man pages under the very same section.

So, move the dvb-fe-tool man page out of doxygen,
adding it as q separate file.

Hopefully, that will make it easier to maintain.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agoman: move dvb-scan.1 out of Doxygen
Mauro Carvalho Chehab [Fri, 3 Oct 2014 21:58:51 +0000 (18:58 -0300)]
man: move dvb-scan.1 out of Doxygen

Using doxygen to document an userspace man page doesn't make
it easier. Instead, it brings extra troubles, as it would create
all man pages under the very same section.

So, move the dvb-scan.1 man page out of doxygen, adding it as
a separate file.

Hopefully, that will make it easier to maintain.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: replace @include by @example
Mauro Carvalho Chehab [Fri, 3 Oct 2014 18:54:12 +0000 (15:54 -0300)]
libdvbv5: replace @include by @example

@include causes the entire file to be added at manpage. So, let's
add those files as examples. That even make it looks better at the
html documentation, as they'll go to a separate tab.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agodvb-fe-tool: abort nicely on femon mode
Mauro Carvalho Chehab [Fri, 3 Oct 2014 16:53:00 +0000 (13:53 -0300)]
dvb-fe-tool: abort nicely on femon mode

Instead of just aborting, be nice when stopping at femon mode.
That allows testing that everything is being freed by the library
with valgrind, and makes it happy.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: fix a nasty to track double-free bug
Mauro Carvalho Chehab [Fri, 3 Oct 2014 16:28:50 +0000 (13:28 -0300)]
libdvbv5: fix a nasty to track double-free bug

When the entries from a channel file have a name on it, and
a new transponder is added, the code at dvb_scan_add_entry()
would be copying the channel names at the new entries,
and the dvb_file_free() would be trying to free the memory.

Also, the new entry would be polluted by the values that got
filled already from a previous entry.

So, create a fresh entry with just the tunning part of the
entry.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agoFIXUP
Mauro Carvalho Chehab [Fri, 3 Oct 2014 16:18:54 +0000 (13:18 -0300)]
FIXUP

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-format-convert: make valgrind happy
Mauro Carvalho Chehab [Fri, 3 Oct 2014 15:58:32 +0000 (12:58 -0300)]
dvb-format-convert: make valgrind happy

Frees the dvb input file at the end, to make valgrind happy.

This is not really required, as memory will be freed anyway at
program exit, but this helps to check if the file functions are
properly freeing everything.

==15648==
==15648== HEAP SUMMARY:
==15648==     in use at exit: 0 bytes in 0 blocks
==15648==   total heap usage: 21 allocs, 21 frees, 44,913 bytes allocated
==15648==
==15648== All heap blocks were freed -- no leaks are possible
==15648==
==15648== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==15648== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: check for alloc errors at desc_ca
Mauro Carvalho Chehab [Fri, 3 Oct 2014 14:35:25 +0000 (11:35 -0300)]
libdvbv5: check for alloc errors at desc_ca

If malloc() fails, it will try to defeference a NULL pointer.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: don't dereference a NULL pointer
Mauro Carvalho Chehab [Fri, 3 Oct 2014 14:21:14 +0000 (11:21 -0300)]
dvb-file: don't dereference a NULL pointer

if entry is NULL, we can't use entry->next.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: fix the memory deallocation on error
Mauro Carvalho Chehab [Fri, 3 Oct 2014 14:18:57 +0000 (11:18 -0300)]
dvb-file: fix the memory deallocation on error

When something gets wrong while storing a channel, both channel
and vchannel needs to be freed.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: Fix no-SDT channel name allocation
Mauro Carvalho Chehab [Fri, 3 Oct 2014 14:10:45 +0000 (11:10 -0300)]
dvb-file: Fix no-SDT channel name allocation

When the SDT table is not found, get_program_and_store()
creates an unique channel name for the service ID. However,
the way this is currently handled is not too nice, and might
cause some issues. So, change it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Fix ISDB-T TS info descriptor
Mauro Carvalho Chehab [Fri, 3 Oct 2014 13:42:40 +0000 (10:42 -0300)]
libdvbv5: Fix ISDB-T TS info descriptor

There are a few bugs on this TS parser. Currently, it doesn't
do a bswap16(). So, it may not work with all endiannes.

Also, the argument for dvb_parse_string() should be the current
pointer, and not the buffer.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add a parser for ISO-10646/UCS2 strings
Mauro Carvalho Chehab [Fri, 3 Oct 2014 13:18:32 +0000 (10:18 -0300)]
libdvbv5: add a parser for ISO-10646/UCS2 strings

This code was missing. Instead of printing an error message,
do a parsing of the 16-chars emphasis codes.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: print ISDB-T frequencies in MHz
Mauro Carvalho Chehab [Fri, 3 Oct 2014 12:16:00 +0000 (09:16 -0300)]
libdvbv5: print ISDB-T frequencies in MHz

This is just a cosmetic change: when displaying the frequency,
print it in MHz. That makes a little easier to read it.

This also makes more sense, since the frequency on this descriptor
is measured in 1/7 MHz steps. So, the value at the descriptor's
content is 7x the value printed.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Fix the number of frequencies at ISDB-T delivery sys descriptor
Mauro Carvalho Chehab [Fri, 3 Oct 2014 11:58:38 +0000 (08:58 -0300)]
libdvbv5: Fix the number of frequencies at ISDB-T delivery sys descriptor

The ISDB-T delsys descriptor contains 16 bits with some data,
plus a table of frequencies for other channels. Discount the first
16 bits when getting the number of frequencies that are inside the
descriptor. That removes some false frequencies that are being added
by the code.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5/descriptors: Fix content hexdump
Mauro Carvalho Chehab [Fri, 3 Oct 2014 11:56:32 +0000 (08:56 -0300)]
libdvbv5/descriptors: Fix content hexdump

Instead of showing the descriptor's content, it is incrementing
it by two. The incremented is needed to bypass the descriptor's
type and size, however, a previous part of the code is already
doing that.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: Fix channel name when SDT is not found
Mauro Carvalho Chehab [Thu, 2 Oct 2014 18:55:46 +0000 (15:55 -0300)]
dvb-file: Fix channel name when SDT is not found

The frequency var was stored before reading it from the file
structure, causing it to be bad filled.

Change it do to the right thing. Also, as we already print all
stored channels, add a print for each stored program without
their corresponding SDT entry.

Now, when SDT is not found, it will print something like:

Scanning frequency #2 579000000
Lock   (0x1f) Quality= Ok   Signal= 100.00% C/N= 36.30dB UCB= 65980 postBER= 1.06x10^-3 PER= 834x10^-6
ERROR    dvb_read_sections: no data read on section filter
ERROR    error while reading the SDT table
WARNING: no SDT table - storing channel(s) without their names
Storing Service ID 49: '579.00MHz#49'
Storing Service ID 60: '579.00MHz#60'
Storing Service ID 72: '579.00MHz#72'
Storing Service ID 315: '579.00MHz#315'
Storing Service ID 316: '579.00MHz#316'
Storing Service ID 319: '579.00MHz#319'
Storing Service ID 321: '579.00MHz#321'
Storing Service ID 350: '579.00MHz#350'
Storing Service ID 34: '579.00MHz#34'
Storing Service ID 150: '579.00MHz#150'
Storing Service ID 71: '579.00MHz#71'
Storing Service ID 50: '579.00MHz#50'
Storing Service ID 33: '579.00MHz#33'
Storing Service ID 97: '579.00MHz#97'

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: Only print SDT warning if are there any channel to be stored
Mauro Carvalho Chehab [Thu, 2 Oct 2014 18:39:12 +0000 (15:39 -0300)]
dvb-file: Only print SDT warning if are there any channel to be stored

Sometimes, the PMT table may have some descriptors that don't
belong to any program. Those are already skipped, but a warning
message is printed even if no channel programs is actually there.

Change the logic to only print a warning if both the SDR is not
present and there are program channels on it.

That prevents to show those messages on DVB-C, where some transponders
could be used just for data.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: Remove spaces at the beginning of channel name
Mauro Carvalho Chehab [Thu, 2 Oct 2014 17:28:42 +0000 (14:28 -0300)]
dvb-file: Remove spaces at the beginning of channel name

Found one stream where the first char at the channel name is
a space:
Service  +Globosat HD, provider (null): digital television

That adds an extra space at the written file, like:

[ +Globosat HD]

It doesn't make much sense of storing a channel with such blank
spaces, as it makes life harder for the users to select it via CLI.
Also, it would disalign its name at GUI for no good reason.

So remove the initial blank spaces of a channel name.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-file: frees channel/vchannel if service id not found
Mauro Carvalho Chehab [Thu, 2 Oct 2014 15:46:31 +0000 (12:46 -0300)]
dvb-file: frees channel/vchannel if service id not found

Fix a warning reported by valgrind that only happens sometimes,
e. g. when PMT is not found for a given Service ID:

==16331== 5 bytes in 1 blocks are definitely lost in loss record 1 of 1
==16331==    at 0x4C27BBD: malloc (vg_replace_malloc.c:296)
==16331==    by 0x53E1B87: vasprintf (in /usr/lib64/libc-2.18.so)
==16331==    by 0x53BED26: asprintf (in /usr/lib64/libc-2.18.so)
==16331==    by 0x4E49236: dvb_store_channel (dvb-file.c:1260)
==16331==    by 0x40162F: run_scan (dvbv5-scan.c:280)
==16331==    by 0x40162F: main (dvbv5-scan.c:492)

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agodvb-file: Fix a memory leak
Mauro Carvalho Chehab [Thu, 2 Oct 2014 14:16:45 +0000 (11:16 -0300)]
dvb-file: Fix a memory leak

==12456== 120 bytes in 1 blocks are definitely lost in loss record 1 of 1
==12456== at 0x4C27BBD: malloc (vg_replace_malloc.c:296)
==12456== by 0x53D9E54: getdelim (in /usr/lib64/libc-2.18.so)
==12456== by 0x4E47FE0: getline (stdio.h:117)
==12456== by 0x4E47FE0: dvb_read_file (dvb-file.c:732)
==12456== by 0x401505: run_scan (dvbv5-scan.c:228)
==12456== by 0x401505: main (dvbv5-scan.c:492)

While here, be sure to check first if the buffer was allocated
by getline().

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: Fix typo in doxygen index file
Gregor Jasny [Wed, 1 Oct 2014 09:33:04 +0000 (11:33 +0200)]
libdvbv5: Fix typo in doxygen index file

10 years agolibdvbv5: Remove left over include of desc_service_list.h
Gregor Jasny [Wed, 1 Oct 2014 09:06:31 +0000 (11:06 +0200)]
libdvbv5: Remove left over include of desc_service_list.h

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoStart v4l-utils 1.5.91 development cycle
Gregor Jasny [Wed, 1 Oct 2014 08:22:22 +0000 (10:22 +0200)]
Start v4l-utils 1.5.91 development cycle

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoPrepare for 1.5.90 release v4l-utils-1.5.90
Gregor Jasny [Wed, 1 Oct 2014 08:03:40 +0000 (10:03 +0200)]
Prepare for 1.5.90 release

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agodoxygen: distribute doc/libdvbv5-index.doc in tarball
Gregor Jasny [Wed, 1 Oct 2014 08:16:47 +0000 (10:16 +0200)]
doxygen: distribute doc/libdvbv5-index.doc in tarball

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibdvbv5: remove service_list descriptor
Gregor Jasny [Tue, 30 Sep 2014 15:06:29 +0000 (17:06 +0200)]
libdvbv5: remove service_list descriptor

CC: Andre Roth <neolynx@gmail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibdvbv5: remove service_location descriptor
Gregor Jasny [Tue, 30 Sep 2014 14:55:44 +0000 (16:55 +0200)]
libdvbv5: remove service_location descriptor

CC: Andre Roth <neolynx@gmail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibdvbv5: Add todo file
Gregor Jasny [Tue, 30 Sep 2014 14:45:38 +0000 (16:45 +0200)]
libdvbv5: Add todo file

Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibv4l2: Move alignment of dest_fmt resolution to v4l2_set_src_and_dest_format
Hans de Goede [Tue, 30 Sep 2014 14:05:01 +0000 (16:05 +0200)]
libv4l2: Move alignment of dest_fmt resolution to v4l2_set_src_and_dest_format

So that we always do the alignment, this is necessary because there are
several code paths where dest_fmt gets set to a fmt which has not been
passed through libv4lconvert_try_fmt, and thus is not aligned.

Also call v4lconvert_fixup_fmt when aligment has changed the height / width,
so that bytesperline and sizeimage get set correctly.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibv4l2: Set convert_mmap_frame_size as soon as we've a dest_fmt
Hans de Goede [Tue, 30 Sep 2014 14:05:00 +0000 (16:05 +0200)]
libv4l2: Set convert_mmap_frame_size as soon as we've a dest_fmt

We need convert_mmap_frame_size well before we need the convert-mmap buffer
itself, and thus well before we call v4l2_ensure_convert_mmap_buf.

This fixes querybuf returning a length of 0 for fake buffers.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agolibv4l2: Fix restoring of original dest-fmt after a VIDIOC_S_DV_TIMING
Hans de Goede [Tue, 30 Sep 2014 14:04:59 +0000 (16:04 +0200)]
libv4l2: Fix restoring of original dest-fmt after a VIDIOC_S_DV_TIMING

Read the original pixelformat from dest_fmt, before overwriting dest_fmt with
the new src_fmt.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
10 years agoqv4l2: fix typo: 576 instead of 575
Hans Verkuil [Tue, 30 Sep 2014 12:36:35 +0000 (14:36 +0200)]
qv4l2: fix typo: 576 instead of 575

The max height for a PAL frame is 576 lines, not 575.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
10 years agodvb-file: Fix a core dump issue
Mauro Carvalho Chehab [Tue, 30 Sep 2014 03:27:00 +0000 (00:27 -0300)]
dvb-file: Fix a core dump issue

get_program_and_store() were actually expecting an empty string
when SDT table is not available, and not a NULL value.

This fixes a core dump issue.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agov4l2-compliance: fix valgrind warnings
Hans Verkuil [Fri, 26 Sep 2014 08:00:27 +0000 (10:00 +0200)]
v4l2-compliance: fix valgrind warnings

Several structs weren't initialized correctly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
10 years agoqv4l2: init dest format when starting vbi/swradio streaming
Hans Verkuil [Fri, 26 Sep 2014 07:59:29 +0000 (09:59 +0200)]
qv4l2: init dest format when starting vbi/swradio streaming

After streaming video first the destination format will be e.g. YUV,
and vbi/swradio expect RGB24. So set that explicitly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
10 years agolibdvbv5: add javadoc markups for desc_service_location.h
Mauro Carvalho Chehab [Mon, 22 Sep 2014 16:28:57 +0000 (13:28 -0300)]
libdvbv5: add javadoc markups for desc_service_location.h

This seems to be a duplicated copy of the ATSC service location.
Probably, an earlier implementation.

Add some FIXMEs for us to check it later.

For now, don't add it at the Doxygen config file, as this should
likely be deprecated and removed on some latter ABI/API version.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Documents ISDB TS information descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 16:27:25 +0000 (13:27 -0300)]
libdvbv5: Documents ISDB TS information descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: documents the terrestrial delivery system descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 16:12:22 +0000 (13:12 -0300)]
libdvbv5: documents the terrestrial delivery system descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the T2 delivery system descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 15:52:30 +0000 (12:52 -0300)]
libdvbv5: add documentation for the T2 delivery system descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Add documentation for desc_service_list.h
Mauro Carvalho Chehab [Mon, 22 Sep 2014 15:26:33 +0000 (12:26 -0300)]
libdvbv5: Add documentation for desc_service_list.h

This is actually documenting something that doesn't work, as
the code that would be parsing the descriptor is commented.
Also, the struct is incomplete.

So, this part of the library still has working todo.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the service descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 15:11:13 +0000 (12:11 -0300)]
libdvbv5: add documentation for the service descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: document the Satellite delivery system descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 15:02:03 +0000 (12:02 -0300)]
libdvbv5: document the Satellite delivery system descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for ISDB partial reception descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 14:36:57 +0000 (11:36 -0300)]
libdvbv5: add documentation for ISDB partial reception descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the network name descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 14:23:44 +0000 (11:23 -0300)]
libdvbv5: add documentation for the network name descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Add description for the LCN descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 14:18:41 +0000 (11:18 -0300)]
libdvbv5: Add description for the LCN descriptor

This descriptor comes from IEC/CENELEC DS/EN 62216-1:201,
and it is used on several places, as a way to represent the
virtual channels.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the language descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 14:08:04 +0000 (11:08 -0300)]
libdvbv5: add documentation for the language descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Add documentation for ISDB-T terrestrial descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 13:55:57 +0000 (10:55 -0300)]
libdvbv5: Add documentation for ISDB-T terrestrial descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Document the hierarchy descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 13:34:43 +0000 (10:34 -0300)]
libdvbv5: Document the hierarchy descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the frequency list descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 12:32:25 +0000 (09:32 -0300)]
libdvbv5: add documentation for the frequency list descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the extended descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 12:13:31 +0000 (09:13 -0300)]
libdvbv5: add documentation for the extended descriptor

The extended descriptor is defined on ETSI 300 468, and it
allows to extend the namespace range of the original MPEG-TS
descriptor into an additional 8 bytes codeset.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the short event descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 11:31:28 +0000 (08:31 -0300)]
libdvbv5: add documentation for the short event descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for the extended event descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 11:23:03 +0000 (08:23 -0300)]
libdvbv5: add documentation for the extended event descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for cable delivery system descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 11:02:25 +0000 (08:02 -0300)]
libdvbv5: add documentation for cable delivery system descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Add documentation for CA identifier descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 10:29:11 +0000 (07:29 -0300)]
libdvbv5: Add documentation for CA identifier descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Add documentation for CA descriptor
Mauro Carvalho Chehab [Mon, 22 Sep 2014 10:16:08 +0000 (07:16 -0300)]
libdvbv5: Add documentation for CA descriptor

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: add documentation for ATSC service location
Mauro Carvalho Chehab [Mon, 22 Sep 2014 09:58:44 +0000 (06:58 -0300)]
libdvbv5: add documentation for ATSC service location

Add corresponding doxygen documentation, adding it on a new
module group (descriptors).

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: MPEG TS parser documentation and cleanups
André Roth [Thu, 18 Sep 2014 22:01:19 +0000 (19:01 -0300)]
libdvbv5: MPEG TS parser documentation and cleanups

Documents the table parser for MPEG-PES. Cleanup doxygen of
other parsers.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: MPEG TS parser documentation
André Roth [Thu, 18 Sep 2014 18:59:27 +0000 (15:59 -0300)]
libdvbv5: MPEG TS parser documentation

Add javadoc markups at mpeg_ts.h, in order to generate documentation.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: use hyperlinks in doxygen PDF
André Roth [Thu, 18 Sep 2014 19:00:13 +0000 (16:00 -0300)]
libdvbv5: use hyperlinks in doxygen PDF

Hyperlinks make the produced PDF nicer to use.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
10 years agolibdvbv5: Create doxygen docs for mpeg_es.h
Mauro Carvalho Chehab [Thu, 18 Sep 2014 09:38:19 +0000 (06:38 -0300)]
libdvbv5: Create doxygen docs for mpeg_es.h

While here, fix two typos and add documentation for a missing
var.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: MPEG ES parser documentation
André Roth [Wed, 17 Sep 2014 20:02:24 +0000 (22:02 +0200)]
libdvbv5: MPEG ES parser documentation

Documents the table parser for the MPEG-TS Elementary Stream.

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: revert an ABI breakage
Mauro Carvalho Chehab [Tue, 16 Sep 2014 00:19:38 +0000 (21:19 -0300)]
libdvbv5: revert an ABI breakage

While changeset a2c7b05cf8d7 kept the same API, it broke ABI,
as a binary-compiled utility would complain about some missing
symbols:
+#MISSING: 1.4.0+r2502-63~ubuntu14.10.1# dvb_fe_open2@Base 1.4.0
+#MISSING: 1.4.0+r2502-63~ubuntu14.10.1# dvb_fe_open@Base 1.4.0

So, return the inline functions back to the library.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agov4l-helpers.h: fix control ioctls checks
Hans Verkuil [Mon, 15 Sep 2014 12:14:31 +0000 (14:14 +0200)]
v4l-helpers.h: fix control ioctls checks

Fix the check whether certain control ioctls exist. This should work
better with older kernels that return -EINVAL if an ioctl does not
exist.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
10 years agov4l2-ctl: fix control support for old kernels.
Hans Verkuil [Mon, 15 Sep 2014 12:04:45 +0000 (14:04 +0200)]
v4l2-ctl: fix control support for old kernels.

For old kernels that return -EINVAL if QUERY_EXT_CTRL does not exist
no controls are reported anymore. Add an explicit test whether
QUERY_EXT_CTRL exists.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
10 years agoupdate dvb-fe-tool Doxygen documentation
Mauro Carvalho Chehab [Sun, 14 Sep 2014 17:29:36 +0000 (14:29 -0300)]
update dvb-fe-tool Doxygen documentation

The documentation for dvb-fe-tool is currently outdated.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-fe-tool: implement acoustic mode
Mauro Carvalho Chehab [Sun, 14 Sep 2014 15:01:45 +0000 (12:01 -0300)]
dvb-fe-tool: implement acoustic mode

if --accoustical is used, it will produce a bip whose frequency
is function of the received signal.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agodvb-fe-tool: Colorize the status report
Mauro Carvalho Chehab [Sun, 14 Sep 2014 16:44:12 +0000 (13:44 -0300)]
dvb-fe-tool: Colorize the status report

Using different colors to represent different QoS helps the user
when adjusting an antena.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: export dvb_fe_retrieve_quality()
Mauro Carvalho Chehab [Sun, 14 Sep 2014 16:43:54 +0000 (13:43 -0300)]
libdvbv5: export dvb_fe_retrieve_quality()

This function can be useful outside. So, export it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: Re-add the status name at the stats report
Mauro Carvalho Chehab [Sun, 14 Sep 2014 16:18:26 +0000 (13:18 -0300)]
libdvbv5: Re-add the status name at the stats report

Changeset d3558a8a8e made the status to disappear.

The main issue that it were trying to fix is that the len were
calculated wrong, but the reason is because len is a pointer,
so it should have been incremented as a pointer, with:

*len += size

This patch fix it properly, and make the status name to reappear.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
10 years agolibdvbv5: fix a nasty bug when printing stats
Mauro Carvalho Chehab [Sun, 14 Sep 2014 14:39:01 +0000 (11:39 -0300)]
libdvbv5: fix a nasty bug when printing stats

Depending on the stats condition, the statistics line is not
printed, because the buffer pointer is incremented twice.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>