v4l2-ctl: V4L2_BUF_TYPE_PRIVATE is no longer used.

Remove references to this obsolete buffer type.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
libdvb: Disable library installation by default

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Remove references to v4l2-chip-ident.h

This header will be removed soon and v4l2-dbg no longer uses it.

So remove any references to it.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Sync with latest 3.10.0-rc7  kernel.

This also added two new keymaps.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
libv4l2/log.c: add entry for new VIDIOC_DBG_G_CHIP_INFO ioctl.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Remove committed v4l2-chip-ident.h headers.

This header is no longer needed and will be removed altogether in kernel 3.11.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
keytable: Always check if strtok return value is null

The Mayhem Team found a crash caused by a nullptr.
Details are here:
http://www.forallsecure.com/bug-reports/567323cd26f180910beb03ae26afb40c432a0c6a/

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
libv4lconvert: Prevent integer overflow by checking width and height

The Mayhem Team found a crash caused by an integer overflow.
Details are here:
http://www.forallsecure.com/bug-reports/8aae67d864bce76993f3f9812b4a2aeea0eb38da/

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
libdvbv5: Remove buggy parsing of extra DTV_foo parameters

The parsing of those extra parameters is buggy and completely useless since they are parsed
individually later on in the code.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
libdvbv5: Add parsing of POLARIZATION

This patch add parsing support for the POLARIZATION parameter for the DVBv5 file format.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
libdvbv5: Export dvb_fe_is_satellite()

This patch makes the function dvb_fe_is_satellite() availble from libdvbv5. This function is simple
but yet very handful to have around.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
libdvbv5: Fix satellite handling and apply polarization parameter to the frontend

Apply polarization parameters even if a satellite number is not provided. This allow
proper setup of the tone and voltage.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
libdvbv5: Use a temporary copy of the dvb parameters when tuning

This patch copies the parms provided into a temporary buffer. This buffer will then
be used for any modification that needs to be performed. It makes the function
dvb_fe_set_parms() thread-safe. Also, since the DTV_FREQUENCY is not modified, it fixes
a bug where dvbv5-scan retrieves the frequency from the parms and write it to the
channel file.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
dvbv5-zap: Parse the LNB from the channel file

Parsing the LNB needs to be done for proper tuning.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Acked-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
parse_string: fix encodings for Taiwan

As reported on:
	http://www.mail-archive.com/linux-media@vger.kernel.org/msg64804.html
by Huey-Horng Yo <hiroshiyui@gmail.com>, the proper handling for 0x14
region code is UTF-16BE. Fix it, in order to get the proper channel
names.

Reported-by: Huey-Horng Yo <hiroshiyui@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Sync with 3.11 kernel.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
qv4l2: always update controls by default

The 'Update on change' checkbox was by default only checked for the user controls
tab, not for the others. This is however very confusing and in general you always
want to update a control immediately once it is changed, unless you explicitly
uncheck the checkbox.

The original idea was that for e.g. the MPEG controls you want to set them all up
just the way you want it, and then press Update to update all the changes using
extended controls. This is particularly useful for controls that depend on one
another.

In practice however, and certanly with lots of the new controls that appeared,
you just want to have an immediate effect when changing a control.

Having 'Update on change' disabled just leads to confused users, which frankly
includes myself :-)

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
libv4l2rds: fix coverity issues.

Fixed a number of obvious coding issues found by Coverity.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
rds-ctl: fix coverity issues.

Fixed a number of obvious coding issues found by Coverity.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
v4l2-dbg: fix coverity issues.

Fixed a number of obvious coding issues found by Coverity.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>