8 years ago[media] davinci vpbe: OSD(On Screen Display) block
Manjunath Hadli [Fri, 17 Jun 2011 07:01:33 +0000]
[media] davinci vpbe: OSD(On Screen Display) block

This patch implements the functionality of the OSD block
of the VPBE. The OSD in total supports 4 planes or Video
sources - 2 mainly RGB and 2 Video. The patch implements general
handling of all the planes, with specific emphasis on the Video
plane capabilities as the Video planes are supported through the
V4L2 driver.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] davinci vpbe: VPBE display driver
Manjunath Hadli [Fri, 17 Jun 2011 07:01:32 +0000]
[media] davinci vpbe: VPBE display driver

This patch implements the core functionality of the display driver,
mainly controlling the VENC and other encoders, and acting as
the one point interface for the main V4L2 driver. This implements
the core of each of the V4L2 IOCTLs.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] davinci vpbe: V4L2 display driver for DM644X SoC
Manjunath Hadli [Fri, 17 Jun 2011 07:01:31 +0000]
[media] davinci vpbe: V4L2 display driver for DM644X SoC

This is the display driver for Texas Instruments's DM644X family
SoC. This patch contains the main implementation of the driver with the
V4L2 interface. The driver implements the streaming model with
support for both kernel allocated buffers and user pointers. It also
implements all of the necessary IOCTLs necessary and supported by the
video display device.

Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Acked-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] DVB: dvb-net, make the kconfig text helpful
Jiri Slaby [Thu, 16 Jun 2011 19:06:56 +0000]
[media] DVB: dvb-net, make the kconfig text helpful

Telling the user they can disable an option if they want is not the
much useful. Describe what it is good for instead.

The text was derived from Mauro's email.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Hans Petter Selasky <hselasky@c2i.net>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] dvb: remove unnecessary code
Greg Dietsche [Thu, 16 Jun 2011 16:33:35 +0000]
[media] dvb: remove unnecessary code

remove unnecessary code that matches this coccinelle pattern
if (...)
return ret;
return ret;

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] dvb-usb/technisat-usb2: don't use flush_scheduled_work()
Tejun Heo [Wed, 15 Jun 2011 13:32:06 +0000]
[media] dvb-usb/technisat-usb2: don't use flush_scheduled_work()

flush_scheduled_work() is deprecated and scheduled to be removed.
technisat-usb2 already sync-cancels the only work item it uses and
there's no reason for it to call flush_scheduled_work().  Don't use
it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] DVB API: Mention the dvbM device
Bjørn Mork [Tue, 14 Jun 2011 12:59:14 +0000]
[media] DVB API: Mention the dvbM device

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] V4L1 API has been moved into "legacy" on the linuxtv.org site
Bjørn Mork [Tue, 14 Jun 2011 12:42:47 +0000]
[media] V4L1 API has been moved into "legacy" on the linuxtv.org site

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] tea575x: remove useless input ioctls
Ondrej Zary [Sat, 11 Jun 2011 13:37:29 +0000]
[media] tea575x: remove useless input ioctls

Remove empty and useless g_input and s_input ioctls.
This fixes one fail of v4l2-compliance test.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] tea575x: allow multiple opens
Ondrej Zary [Sat, 11 Jun 2011 13:28:59 +0000]
[media] tea575x: allow multiple opens

Change locking to allow tea575x-radio device to be opened multiple times.

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] radio-timb: Simplified platform data
Richard Röjfors [Fri, 10 Jun 2011 14:48:48 +0000]
[media] radio-timb: Simplified platform data

This patch simplifies the platform data slightly, by removing
unused elements.

Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] media: DVB_NET must depend on DVB_CORE
Guennadi Liakhovetski [Fri, 10 Jun 2011 10:43:26 +0000]
[media] media: DVB_NET must depend on DVB_CORE

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx23885: Add IR Rx support for HVR-1270 boards
Andy Walls [Thu, 9 Jun 2011 00:24:25 +0000]
[media] cx23885: Add IR Rx support for HVR-1270 boards

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx231xx: Add support for Hauppauge WinTV USB2-FM
Peter Moon [Wed, 8 Jun 2011 18:54:19 +0000]
[media] cx231xx: Add support for Hauppauge WinTV USB2-FM

This patch adds support for the "Hauppauge WinTV USB2-FM" Analog TV Stick.
It includes support for both the PAL and NTSC variants of the device.

Signed-off-by: Peter Moon <pomoon@gmail.com>
Reviewed-by: Devin Heitmueller <dheitmueller@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] frontends/s5h1420: Change: clock_settting to clock_setting
Justin P. Mattock [Mon, 6 Jun 2011 16:11:52 +0000]
[media] frontends/s5h1420: Change: clock_settting to clock_setting

Changes clock_settting to clock_setting.

Note: This could be intentionally set this way from the beginning and/or
is a typo.

Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx88: replaced duplicated code with function call
istvan_v@mailbox.hu [Tue, 7 Jun 2011 16:21:02 +0000]
[media] cx88: replaced duplicated code with function call

The following patch replaces code to reset the XC3028 tuner with a call
to the tuner reset callback.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx88: added support for Leadtek WinFast DTV1800 H with XC4000 tuner
istvan_v@mailbox.hu [Tue, 7 Jun 2011 16:16:56 +0000]
[media] cx88: added support for Leadtek WinFast DTV1800 H with XC4000 tuner

This patch implements support for the Leadtek WinFast DTV1800 H card with
XC4000 tuner (107d:6f38).

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx88: added support for Leadtek WinFast DTV2000 H Plus
istvan_v@mailbox.hu [Tue, 7 Jun 2011 16:14:53 +0000]
[media] cx88: added support for Leadtek WinFast DTV2000 H Plus

This patch implements support for the Leadtek WinFast DTV2000 H Plus card
with XC4000 tuner (107d:6f42).

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] cx88: added XC4000 tuner callback and DVB attach functions
istvan_v@mailbox.hu [Tue, 7 Jun 2011 16:12:29 +0000]
[media] cx88: added XC4000 tuner callback and DVB attach functions

Added functions for XC4000 tuner reset and attaching DVB frontend.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] em28xx: Mark Kworld 305 as validated
Mauro Carvalho Chehab [Sat, 18 Jun 2011 02:18:21 +0000]
[media] em28xx: Mark Kworld 305 as validated

This board were used for testing the em28xx-alsa using a separate interface.
So, it is obviously validated ;)

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

8 years ago[media] em28xx: Add support for devices with a separate audio interface
Mauro Carvalho Chehab [Fri, 17 Jun 2011 18:15:12 +0000]
[media] em28xx: Add support for devices with a separate audio interface

Some devices use a separate interface for the vendor audio class.

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

8 years ago[media] em28xx-audio: Some Alsa API fixes
Mauro Carvalho Chehab [Sun, 19 Jun 2011 16:39:31 +0000]
[media] em28xx-audio: Some Alsa API fixes

Mark the alsa stream with SNDRV_PCM_INFO_BATCH,
as the timing to get audio streams can vary.

Also, add SNDRV_PCM_TRIGGER for pause/release.

while here, fix the stop indicator, to be sure that audio
will be properly released at the stop events.

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

8 years ago[media] em28xx-audio: Properly report failures to start stream
Mauro Carvalho Chehab [Sun, 19 Jun 2011 13:15:35 +0000]
[media] em28xx-audio: Properly report failures to start stream

If the audio stream fails for any reason, it should:
1) Report an error via dmesg;
2) Mark internally that the stream didn't started.

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

8 years ago[media] em28xx-audio: add debug info for the volume control
Mauro Carvalho Chehab [Sat, 18 Jun 2011 14:00:20 +0000]
[media] em28xx-audio: add debug info for the volume control

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

8 years ago[media] em28xx-audio: volumes are inverted
Mauro Carvalho Chehab [Sun, 19 Jun 2011 16:14:07 +0000]
[media] em28xx-audio: volumes are inverted

While here, fix volume mask to 5 bits

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

8 years ago[media] em28xx-audio: add support for mute controls
Mauro Carvalho Chehab [Sun, 19 Jun 2011 16:08:46 +0000]
[media] em28xx-audio: add support for mute controls

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

8 years ago[media] em28xx-alsa: add mixer support for AC97 volume controls
Mauro Carvalho Chehab [Sun, 19 Jun 2011 16:06:40 +0000]
[media] em28xx-alsa: add mixer support for AC97 volume controls

Export ac97 volume controls via mixer.

Pulseaudio will probably handle it very badly, as it has
no idea about how volumes are wired, and how are they
associated with each TV input. Those wirings are
card model dependent, and we don't have the wiring mappings
for each supported device.

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

8 years ago[media] em28xx: Allow to compile it without RC/input support
Mauro Carvalho Chehab [Sat, 18 Jun 2011 13:19:11 +0000]
[media] em28xx: Allow to compile it without RC/input support

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

8 years ago[media] em28xx: Fix a wrong enum at the ac97 control tables
Mauro Carvalho Chehab [Sat, 18 Jun 2011 10:02:49 +0000]
[media] em28xx: Fix a wrong enum at the ac97 control tables

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

8 years ago[media] em28xx: Don't initialize a var if won't be using it
Mauro Carvalho Chehab [Fri, 17 Jun 2011 23:28:51 +0000]
[media] em28xx: Don't initialize a var if won't be using it

Fixes most cases of initializing a var but not using it.

There are still 3 cases at em28xx-alsa, were those vars should
probably be used.

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

8 years ago[media] marvell-cam: Basic working MMP camera driver
Jonathan Corbet [Sat, 11 Jun 2011 17:46:49 +0000]
[media] marvell-cam: Basic working MMP camera driver

Now we have a camera working over the marvell cam controller core.  It
works like the cafe driver and has all the same limitations, contiguous DMA
only being one of them.  But it's a start.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Allocate the i2c adapter in the platform driver
Jonathan Corbet [Sat, 11 Jun 2011 17:46:48 +0000]
[media] marvell-cam: Allocate the i2c adapter in the platform driver

The upcoming mmp-camera driver will need an i2c_adapter structure allocated
externally, so change the core adapter to a pointer and require the
platform code to fill it in.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Right-shift i2c slave ID's in the cafe driver
Jonathan Corbet [Sat, 11 Jun 2011 17:46:47 +0000]
[media] marvell-cam: Right-shift i2c slave ID's in the cafe driver

This makes the cafe i2c implement consistent with the rest of Linux so that
the core can use the same slave ID everywhere.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Move Cafe-specific register definitions to cafe-driver.c
Jonathan Corbet [Sat, 11 Jun 2011 17:46:46 +0000]
[media] marvell-cam: Move Cafe-specific register definitions to cafe-driver.c

Nobody else ever needs to see these, so let's hide them.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Remove the "untested" comment
Jonathan Corbet [Sat, 11 Jun 2011 17:46:45 +0000]
[media] marvell-cam: Remove the "untested" comment

This code is, indeed, tested :)

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Pass sensor parameters from the platform
Jonathan Corbet [Sat, 11 Jun 2011 17:46:44 +0000]
[media] marvell-cam: Pass sensor parameters from the platform

Depending on the controller, the ov7670 sensor may be told to work with a
different clock speed or to use the SMBUS protocol.  Remove the wired-in
code and pass that information from the platform layer.  The Cafe driver
now just assumes it's running on an OLPC XO 1; I do not believe it has ever
run anywhere else.

Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Separate out the Marvell camera core
Jonathan Corbet [Sat, 11 Jun 2011 17:46:43 +0000]
[media] marvell-cam: Separate out the Marvell camera core

There will eventually be multiple users of the core camera controller, so
separate it from the bus/platform/i2c stuff.  I've tried to do the minimal
set of changes to get the driver functioning in this configuration; I did
clean up a bunch of old checkpatch gripes in the process.  This driver
works like the old one did on OLPC XO 1 systems.

Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] marvell-cam: Move cafe-ccic into its own directory
Jonathan Corbet [Sat, 11 Jun 2011 17:46:42 +0000]
[media] marvell-cam: Move cafe-ccic into its own directory

This driver will soon become a family of drivers, so let's give it its own
place to live.  This move requires putting ov7670.h into include/media, but
there are no code changes.

Cc: Daniel Drake <dsd@laptop.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] DocBook: Use base64 for gif/png files
Mauro Carvalho Chehab [Thu, 16 Jun 2011 02:13:19 +0000]
[media] DocBook: Use base64 for gif/png files

The patch utility doesn't work with non-binary files. This causes some
tools to break, like generating tarball targets and the scripts that
generate diff patches at http://www.kernel.org/pub/linux/kernel/v2.6/.

So, let's convert all binaries to ascii using base64, and add a
logic at Makefile to convert them back into binaries at runtime.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] drivers/media/video: fix memory leak of snd_cx18_init()
Andre Bartke [Fri, 3 Jun 2011 18:06:58 +0000]
[media] drivers/media/video: fix memory leak of snd_cx18_init()

cxsc is not freed in the error case.

Signed-off-by: Andre Bartke <andre.bartke@gmail.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] Correct and add some parameter descriptions
Hans Petter Selasky [Thu, 26 May 2011 08:06:09 +0000]
[media] Correct and add some parameter descriptions

>From 70d02ce19f64fae4ceee563501e8462a76e17b91 Mon Sep 17 00:00:00 2001

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] Remove unused definitions which can cause conflict with definitions in usb...
Hans Petter Selasky [Thu, 26 May 2011 07:56:55 +0000]
[media] Remove unused definitions which can cause conflict with definitions in usb/ch9.h

>From 0dd2949dfeae431ed4ffbd00fd14a10dc3747ad0 Mon Sep 17 00:00:00 2001

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] Correct error code from -ENOMEM to -EINVAL.
Hans Petter Selasky [Thu, 26 May 2011 07:49:52 +0000]
[media] Correct error code from -ENOMEM to -EINVAL.

Make sure the return value is set in all cases

>From 9b38a5c9878b5e4be2899ae291c4524f5f5fc218 Mon Sep 17 00:00:00 2001

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] rc-core: lirc use unsigned int
David Härdeman [Thu, 28 Apr 2011 15:13:58 +0000]
[media] rc-core: lirc use unsigned int

Durations can never be negative, so it makes sense to consistently use
unsigned int for LIRC transmission. Contrary to the initial impression,
this shouldn't actually change the userspace API.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] s2255drv: firmware version update, vendor request change
Sensoray Linux Development [Mon, 4 Apr 2011 17:08:40 +0000]
[media] s2255drv: firmware version update, vendor request change

removes obsolete comments. updates firmware versions. firmware vendor request simplified.

Signed-off-by: Dean Anderson <linux-dev@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] DocBook: Don't be noisy at make cleanmediadocs
Mauro Carvalho Chehab [Thu, 9 Jun 2011 19:34:29 +0000]
[media] DocBook: Don't be noisy at make cleanmediadocs

While here, remove the mediaindexdocs from PHONY.

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years agoRevert "[media] dvb/audio.h: Remove definition for AUDIO_GET_PTS"
Mauro Carvalho Chehab [Thu, 9 Jun 2011 19:26:32 +0000]
Revert "[media] dvb/audio.h: Remove definition for AUDIO_GET_PTS"

Based on those feedback:
http://www.spinics.net/lists/linux-media/msg33704.html
http://www.spinics.net/lists/linux-media/msg33700.html

I'm reverting the removal of this unused ioctl, as it seems that some
drivers under development may be using. So, I'll wait until the next
merge window before removing those unused ioctls, to give a chance for
developers to submit their pending work.

This reverts commit db48923da6c528d461b5e764692239eb9c1b7a00.

Cc: Andreas Oberritter <obi@linuxtv.org>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] DocBook/video.xml: Document the remaining data structures
Mauro Carvalho Chehab [Wed, 8 Jun 2011 19:56:03 +0000]
[media] DocBook/video.xml: Document the remaining data structures

Now, all data structures are commented. A few ioctls remain undocumented:

Error: no ID for constraint linkend: VIDEO_GET_SIZE.
Error: no ID for constraint linkend: VIDEO_GET_FRAME_RATE.
Error: no ID for constraint linkend: VIDEO_GET_PTS.
Error: no ID for constraint linkend: VIDEO_GET_FRAME_COUNT.
Error: no ID for constraint linkend: VIDEO_COMMAND.
Error: no ID for constraint linkend: VIDEO_TRY_COMMAND.

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

8 years ago[media] DocBook/video.xml: Fix section references with video.h.xml
Mauro Carvalho Chehab [Wed, 8 Jun 2011 18:39:05 +0000]
[media] DocBook/video.xml: Fix section references with video.h.xml

Make the reference links at video.h.xml to match the ones at video.xml.

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

8 years ago[media] DocBook/Makefile: Remove osd.h header
Mauro Carvalho Chehab [Wed, 8 Jun 2011 18:17:12 +0000]
[media] DocBook/Makefile: Remove osd.h header

The av7110 uses an OSD API. Such API is not documented at all. Also,
the osd.h API uses camelCase and some other weird stuff. Also, dvb-core
doesn't recognize it.

I don't see any good reason why we should document it. It seems better
to just let it as-is. If ever needed, it is probably better to write
a different API for dvb-core.

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

8 years ago[media] DocBook/net.xml: Synchronize Network data structure
Mauro Carvalho Chehab [Wed, 8 Jun 2011 18:08:57 +0000]
[media] DocBook/net.xml: Synchronize Network data structure

There's no documentation at all for the DVB net API. Still, better to
remove a few warnings about the missing symbols. So, add the net data
structure inside the net.xml. Now, only the ioctl documentation is missed.

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

8 years ago[media] DocBook/demux.xml: Add the remaining data structures to the API spec
Mauro Carvalho Chehab [Wed, 8 Jun 2011 17:14:31 +0000]
[media] DocBook/demux.xml: Add the remaining data structures to the API spec

Still, there are a few ioctl's not documented:

Error: no ID for constraint linkend: DMX_GET_PES_PIDS.
Error: no ID for constraint linkend: DMX_GET_CAPS.
Error: no ID for constraint linkend: DMX_SET_SOURCE.
Error: no ID for constraint linkend: DMX_ADD_PID.
Error: no ID for constraint linkend: DMX_REMOVE_PID.

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

8 years ago[media] DocBook/demux.xml: Fix section references with dmx.h.xml
Mauro Carvalho Chehab [Wed, 8 Jun 2011 14:56:57 +0000]
[media] DocBook/demux.xml: Fix section references with dmx.h.xml

Make the reference links at dmx.h.xml to match the ones at demux.xml.

While here, also syncronizes the structures defined inside the API,
in order to match the current API.

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

8 years ago[media] DocBook/ca.xml: Describe structure ca_pid
Mauro Carvalho Chehab [Wed, 8 Jun 2011 14:34:31 +0000]
[media] DocBook/ca.xml: Describe structure ca_pid

This is the remaining missing structure at ca.xml. The ioctl's are still
missing through.

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

8 years ago[media] Docbook/ca.xml: match section ID's with the reference links
Mauro Carvalho Chehab [Wed, 8 Jun 2011 14:29:27 +0000]
[media] Docbook/ca.xml: match section ID's with the reference links

Make sure that both ca.h.xml and ca.xml will match the same names for
the sections/links.

This way, it is now possible to identify API spec gaps:

Error: no ID for constraint linkend: ca-pid.
Error: no ID for constraint linkend: ca-pid.
Error: no ID for constraint linkend: CA_RESET.
Error: no ID for constraint linkend: CA_GET_CAP.
Error: no ID for constraint linkend: CA_GET_SLOT_INFO.
Error: no ID for constraint linkend: CA_GET_DESCR_INFO.
Error: no ID for constraint linkend: CA_GET_MSG.
Error: no ID for constraint linkend: CA_SEND_MSG.
Error: no ID for constraint linkend: CA_SET_DESCR.
Error: no ID for constraint linkend: CA_SET_PID.

Basically, in this case, no CA ioctl is described at the specs, and one
file structure (ca-pid) is missing.

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

8 years ago[media] dvb/audio.h: Remove definition for AUDIO_GET_PTS
Mauro Carvalho Chehab [Wed, 8 Jun 2011 14:25:26 +0000]
[media] dvb/audio.h: Remove definition for AUDIO_GET_PTS

While this ioctl is defined inside dvb/audio.h, it is not docummented
at the API specs, nor implemented on any driver inside the Linux Kernel.
So, it doesn't make sense to keep it here.

As this is not used anywere, removing it is not a regression. So,
there's no need to use the normal features-to-be-removed process.

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

8 years ago[media] DocBook: Document AUDIO_CONTINUE ioctl
Mauro Carvalho Chehab [Wed, 8 Jun 2011 14:03:10 +0000]
[media] DocBook: Document AUDIO_CONTINUE ioctl

Although this ioctl is only used at the av7110 driver, it is not
described at the API docbook. Yet, AUDIO_PAUSE ioctl description
somewhat describes it. Fill the gap by using the information there
and by looking inside av7110 implementation.

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

8 years ago[media] DocBook/audio.xml: synchronize attribute changes
Mauro Carvalho Chehab [Wed, 8 Jun 2011 13:55:57 +0000]
[media] DocBook/audio.xml: synchronize attribute changes

Some attributes suffered some changes since DVBv1. Sync them with the
current API header files.

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

8 years ago[media] DocBook/audio.xml: match section ID's with the reference links
Mauro Carvalho Chehab [Wed, 8 Jun 2011 13:42:22 +0000]
[media] DocBook/audio.xml: match section ID's with the reference links

Make sure that both audio.h.xml and audio.xml will match the same names.
This way, it is now possible to identify API spec gaps:

Error: no ID for constraint linkend: AUDIO_CONTINUE.
Error: no ID for constraint linkend: AUDIO_GET_PTS.
Error: no ID for constraint linkend: AUDIO_BILINGUAL_CHANNEL_SELECT.

While here, fix the cut-and-paste description error on AUDIO_SET_KARAOKE.

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

8 years ago[media] DocBook: Add the other DVB API header files
Mauro Carvalho Chehab [Wed, 8 Jun 2011 13:23:34 +0000]
[media] DocBook: Add the other DVB API header files

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

8 years ago[media] DocBook/dvbproperty.xml: Better name the ISDB-T layers
Mauro Carvalho Chehab [Wed, 8 Jun 2011 02:08:19 +0000]
[media] DocBook/dvbproperty.xml: Better name the ISDB-T layers

In order to improve the DVB index, replace the title to a
better name.

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

8 years ago[media] DocBook/dvbproperty.xml: Add Satellite standards
Mauro Carvalho Chehab [Wed, 8 Jun 2011 01:13:35 +0000]
[media] DocBook/dvbproperty.xml: Add Satellite standards

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

8 years ago[media] DocBook/dvbproperty.xml: Add ATSC standard
Mauro Carvalho Chehab [Wed, 8 Jun 2011 01:08:13 +0000]
[media] DocBook/dvbproperty.xml: Add ATSC standard

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

8 years ago[media] DocBook/dvbproperty.xml: Add Cable standards
Mauro Carvalho Chehab [Wed, 8 Jun 2011 01:02:32 +0000]
[media] DocBook/dvbproperty.xml: Add Cable standards

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

8 years ago[media] DocBook: Finish synchronizing the frontend API
Mauro Carvalho Chehab [Wed, 8 Jun 2011 00:40:22 +0000]
[media] DocBook: Finish synchronizing the frontend API

Remove the remaining:
Error: no ID for constraint linkend:

With this patch, the dvb frontend API matches the current
dvb core implementation.

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

8 years ago[media] DocBook/dvbproperty.xml: Document the terrestrial delivery systems
Mauro Carvalho Chehab [Tue, 7 Jun 2011 23:52:33 +0000]
[media] DocBook/dvbproperty.xml: Document the terrestrial delivery systems

Instead of repeating duplicate parameters to each delivery system,
just add a section for each specific delivery system, showing
what's applicable to each case. This helps userspace app developers
to know what DVB parameters are applicable to each delivery system.

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

8 years ago[media] DocBook/frontend.xml: Recomend the usage of the new API
Mauro Carvalho Chehab [Tue, 7 Jun 2011 23:43:25 +0000]
[media] DocBook/frontend.xml: Recomend the usage of the new API

The old way of setting delivery system parameters were to use
an union with specific per-system parameters. However, as newer
delivery systems required more data, the structure size weren't
enough to fit. So, recomend using the DVBS2API instead.

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

8 years ago[media] DocBook/dvbproperty.xml: Reorganize the parameters
Mauro Carvalho Chehab [Tue, 7 Jun 2011 23:05:13 +0000]
[media] DocBook/dvbproperty.xml: Reorganize the parameters

Put the parameters at the sequencial order as they appear inside
the frontend.h header.

TODO: fix the per-standard section, to reflect the parameters
that should actually be used for each transmission system type.

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

8 years ago[media] DocBook/dvbproperty.xml: Use links for all parameters
Mauro Carvalho Chehab [Tue, 7 Jun 2011 22:48:46 +0000]
[media] DocBook/dvbproperty.xml: Use links for all parameters

Instead of adding a program listing, just add there all parameters.

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

8 years ago[media] DocBook/dvbproperty.xml: Document the remaining S2API parameters
Mauro Carvalho Chehab [Tue, 7 Jun 2011 22:37:47 +0000]
[media] DocBook/dvbproperty.xml: Document the remaining S2API parameters

There were lots of DVB S2API parameters that were never documented.
Let's add a definition for all of them, based on what's currently
used inside the core and the drivers.

The description here is not complete nor perfect, so patches
improving it are welcome.

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

8 years ago[media] DocBook/frontend.xml: Better describe the frontend parameters
Mauro Carvalho Chehab [Tue, 7 Jun 2011 21:15:19 +0000]
[media] DocBook/frontend.xml: Better describe the frontend parameters

Update the DVB parameter structs to reflect VSB modulation and
improve a few descriptions.

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

8 years ago[media] DocBook/frontend.xml: add references for some missing info
Mauro Carvalho Chehab [Tue, 7 Jun 2011 20:58:59 +0000]
[media] DocBook/frontend.xml: add references for some missing info

The frontend.h.xml now references to the main document. However,
several references are missed.

Links the trivial ones with the corresponding API descriptions.

While here, updates the main API to reflect the API improvements.

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

8 years ago[media] DocBook/frontend.xml: Correlate dvb delivery systems
Mauro Carvalho Chehab [Tue, 7 Jun 2011 20:02:37 +0000]
[media] DocBook/frontend.xml: Correlate dvb delivery systems

As the DVB API provides two ways to specify the delivery
systems, correlate both ways into a table.

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

8 years ago[media] DocBook/frontend.xml: Link DVB S2API parameters
Mauro Carvalho Chehab [Tue, 7 Jun 2011 19:58:00 +0000]
[media] DocBook/frontend.xml: Link DVB S2API parameters

Associate the frontend.h DVB S2API parmeters to the corresponding
documentation at the spec.

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

8 years ago[media] DocBook/frontend.xml: Better document fe_type_t
Mauro Carvalho Chehab [Tue, 7 Jun 2011 19:17:00 +0000]
[media] DocBook/frontend.xml: Better document fe_type_t

The fe_type_t documentation was incomplete and not linked to the
dvb/frontend.h.xml. Properly document it.

Also, drop a note that newer formats are only supported via
FE_GET_PROPERTY/FE_GET_SET_PROPERTY ioctls.

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

8 years ago[media] DocBook/Makefile: add references for several dvb structures
Mauro Carvalho Chehab [Tue, 7 Jun 2011 17:51:56 +0000]
[media] DocBook/Makefile: add references for several dvb structures

With this change, it is now possible to discover the gap between
the API defined inside include/dvb/frontend.h and the one documented
into the specs.

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

8 years ago[media] v4l: Documentation about the JPGL pixel format
Jean-François Moine [Fri, 3 Jun 2011 06:33:41 +0000]
[media] v4l: Documentation about the JPGL pixel format

The JPG-Light, AKA Pegasus Lossless JPEG, is used in Divio webcams based
on NW 800/801/802 chips.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: make checkpatch.pl happy
Mauro Carvalho Chehab [Mon, 6 Jun 2011 19:51:11 +0000]
[media] xc4000: make checkpatch.pl happy

Solve the ./scripts/checkpatch.pl compliants for the patches
that added xc4000 support, including a few changes at dib0700.

While here, remove a few printk noise by converting some msgs
into debug ones.

Cc: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: removed card_type
istvan_v@mailbox.hu [Mon, 6 Jun 2011 16:03:44 +0000]
[media] xc4000: removed card_type

Removed the use of 'card_type' from the tuner configuration structure, and
replaced it with separate parameters to set board-specific configuration.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: check firmware version
istvan_v@mailbox.hu [Mon, 6 Jun 2011 16:00:17 +0000]
[media] xc4000: check firmware version

Enabled code to check if the version of the firmware reported by the hardware
is correct after uploading it.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] dvb-usb/Kconfig: auto-select XC4000 tuner for dib0700
istvan_v@mailbox.hu [Mon, 6 Jun 2011 15:57:43 +0000]
[media] dvb-usb/Kconfig: auto-select XC4000 tuner for dib0700

Automatically select the xc4000 module for dib0700 if the tuner selection is
not customized.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: code cleanup
istvan_v@mailbox.hu [Mon, 6 Jun 2011 15:54:54 +0000]
[media] xc4000: code cleanup

Various coding style changes:
  - removed unused / commented out code
  - changed C++ style comments to C format
  - renamed functions and variables that included upper case letters in the name
  - removed tabs from module parameter descriptions
  - replaced the use of XC_RESULT_* with standard error codes

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: detect also xc4100
Istvan Varga [Sat, 4 Jun 2011 15:25:19 +0000]
[media] xc4000: detect also xc4100

Added code to detect the XC4100 chip, which is presumably an analog-only
"value" version of the XC4000. It is not sure, however, if any devices
using this have actually been produced and sold, so the patch may be
unneeded.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: removed redundant tuner reset
Istvan Varga [Sat, 4 Jun 2011 15:21:17 +0000]
[media] xc4000: removed redundant tuner reset

This patch causes the tuner reset command to be ignored in the firmware
code, since this only happens when the BASE/INIT1 firmware is loaded by
check_firmware(), and in that case check_firmware() already calls the
reset callback before starting to load the firmware.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: xc_tune_channel() cleanup
Istvan Varga [Sat, 4 Jun 2011 15:18:41 +0000]
[media] xc4000: xc_tune_channel() cleanup

Minor coding changes related to the xc_tune_channel() function.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: implemented analog TV and radio
Istvan Varga [Sat, 4 Jun 2011 15:17:22 +0000]
[media] xc4000: implemented analog TV and radio

The following patch implements support for analog TV and FM radio.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: added audio_std module parameter
Istvan Varga [Sat, 4 Jun 2011 15:15:51 +0000]
[media] xc4000: added audio_std module parameter

The 'audio_std' module parameter makes it possible to fine tune
some audio related aspects of the driver, like setting the exact
audio standard (NICAM, A2, etc.) to be used for some video standards.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: setting registers
Istvan Varga [Sat, 4 Jun 2011 15:12:42 +0000]
[media] xc4000: setting registers

This patch implements setting the registers in xc4000_set_params()
and xc4000_set_analog_params(). A new register is defined which enables
filtering of the composite video output (this is needed to avoid bad
picture quality with some boards).

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: debug message improvements
Istvan Varga [Sat, 4 Jun 2011 15:08:29 +0000]
[media] xc4000: debug message improvements

The following patch makes a few minor changes to the printing
of debug messages, and reporting the tuner status. The 'debug'
module parameter can now be set from 0 to 2 to control the
verbosity of debug messages.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: firmware initialization
Istvan Varga [Sat, 4 Jun 2011 15:04:51 +0000]
[media] xc4000: firmware initialization

This patch fixes/cleans up the loading of the firmware file when the
driver is loaded and initialized.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: implemented power management
Istvan Varga [Sat, 4 Jun 2011 15:03:03 +0000]
[media] xc4000: implemented power management

The following patch implements the xc4000_sleep() function.
The 'no_powerdown' module parameter is now interpreted differently:
  - 0 uses a device-specific default
  - 1 disables power management like before
  - 2 enables power management

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: added card_type
Istvan Varga [Fri, 3 Jun 2011 12:38:04 +0000]
[media] xc4000: added card_type

This patch adds support for selecting a card type in struct
xc4000_config, to allow for implementing some card specific code
in the driver.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: check_firmware() cleanup
Istvan Varga [Sat, 4 Jun 2011 14:59:54 +0000]
[media] xc4000: check_firmware() cleanup

This patch makes the following fixes in check_firmware():
  - there is only one BASE and INIT1 firmware for XC4000
  - loading SCODE is needed also for FM radio

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: simplified load_scode
Istvan Varga [Sat, 4 Jun 2011 14:56:18 +0000]
[media] xc4000: simplified load_scode

Removed unused code from load_scode() (all SCODE firmwares are
assumed to have the HAS_IF bit set).

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: simplified seek_firmware()
Istvan Varga [Sat, 4 Jun 2011 14:52:34 +0000]
[media] xc4000: simplified seek_firmware()

This patch simplifies the code in seek_firmware().

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: added firmware_name parameter
Istvan Varga [Sat, 4 Jun 2011 14:48:16 +0000]
[media] xc4000: added firmware_name parameter

The firmware_name module parameter makes it possible to set the firmware
file name. It defaults to "xc4000.fw" if not specified.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: fixed frequency error
Istvan Varga [Fri, 3 Jun 2011 15:27:30 +0000]
[media] xc4000: fixed frequency error

The xc_get_frequency_error() function reported the frequency error
incorrectly. The data read from the hardware is a signed integer, in
15625 Hz units. The attached patch fixes the bug.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: added mutex
Istvan Varga [Fri, 3 Jun 2011 15:23:33 +0000]
[media] xc4000: added mutex

This patch adds a mutex to xc4000_priv, to protect the driver
from being accessed by multiple processes at the same time.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: added support for 7 MHz DVB-T
Istvan Varga [Fri, 3 Jun 2011 15:17:59 +0000]
[media] xc4000: added support for 7 MHz DVB-T

The following patch implements support for DVB-T with 7 MHz bandwidth.

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

8 years ago[media] xc4000: updated standards table
Istvan Varga [Fri, 3 Jun 2011 13:55:24 +0000]
[media] xc4000: updated standards table

This patch makes the following changes to the standards table:
  - added 'u16 int_freq' to struct XC_TV_STANDARD (needed for analog TV
    and radio, 0 for DVB-T)
  - added new standard for SECAM-D/K video with PAL-D/K audio
  - the 'int_freq' values are now specified in the table
  - changed VideoMode for NTSC and PAL-B/G standards

Signed-off-by: Istvan Varga <istvan_v@mailbox.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>