]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/log
can-eth-gw-linux.git
11 years ago[media] media: mx2_camera: remove dead code in mx2_camera_add_device
Shawn Guo [Thu, 20 Sep 2012 05:45:38 +0000 (02:45 -0300)]
[media] media: mx2_camera: remove dead code in mx2_camera_add_device

This is a piece of code becoming dead since commit 2c9ba37 ([media]
V4L: mx2_camera: remove unsupported i.MX27 DMA mode, make EMMA
mandatory).  It should have been removed together with the commit.
Remove it now.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] anysee: do not remove CI when it is not attached
Antti Palosaari [Sat, 22 Sep 2012 16:46:24 +0000 (13:46 -0300)]
[media] anysee: do not remove CI when it is not attached

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] e4000: fix crash when attach fails
Antti Palosaari [Sat, 22 Sep 2012 15:32:27 +0000 (12:32 -0300)]
[media] e4000: fix crash when attach fails

Callbacks were set even attach failed. This leads calling
.release() in error case and resulted crash.

Reported-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] fc2580: fix crash when attach fails
Antti Palosaari [Sat, 22 Sep 2012 02:36:27 +0000 (23:36 -0300)]
[media] fc2580: fix crash when attach fails

Callbacks were set even attach failed. This leads calling
.release() in error case and resulted crash.

Reported-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] dvb_usb_v2: fix error handling for .tuner_attach()
Antti Palosaari [Sat, 22 Sep 2012 02:23:49 +0000 (23:23 -0300)]
[media] dvb_usb_v2: fix error handling for .tuner_attach()

fe was not set NULL after it was destroyed in tuner attach fail
error case. Due to that it was destroyed again and Kernel oopsed.

Reported-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] fc2580: small improvements for chip id check
Antti Palosaari [Fri, 21 Sep 2012 23:28:43 +0000 (20:28 -0300)]
[media] fc2580: small improvements for chip id check

* better readability
* make checkpatch.pl happy
* few bytes smaller binary footprint

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cypress_firmware: refactor firmware downloading
Antti Palosaari [Fri, 21 Sep 2012 22:44:51 +0000 (19:44 -0300)]
[media] cypress_firmware: refactor firmware downloading

Refactor firmware download function. It also should fix one bug
coming from usb_control_msg() message buffers. Taking buffers from
the stack for usb_control_msg() is not allowed as it does not work
on all architectures. Allocate buffers using kmalloc().

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cypress_firmware: use Kernel dev_foo() logging
Antti Palosaari [Fri, 21 Sep 2012 00:58:20 +0000 (21:58 -0300)]
[media] cypress_firmware: use Kernel dev_foo() logging

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: [0413:6680] DigitalNow Quad DVB-T Receiver
Antti Palosaari [Thu, 20 Sep 2012 21:34:50 +0000 (18:34 -0300)]
[media] rtl28xxu: [0413:6680] DigitalNow Quad DVB-T Receiver

It is 4 x RTL2832U + 4 x FC0012 in one PCIe board.
Of course there is a PCIe USB host controller too.
Big thanks for Darryl Bond reporting and testing that!

Reported-by: Darryl Bond <darryl.bond@gmail.com>
Tested-by: Darryl Bond <darryl.bond@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Support for Asus MyCinema U3100Mini Plus
Oliver Schinagl [Thu, 20 Sep 2012 17:57:17 +0000 (14:57 -0300)]
[media] Support for Asus MyCinema U3100Mini Plus

This is initial support for the Asus MyCinema U3100Mini Plus. The driver
in its current form gets detected and loads properly.
Scanning using dvbscan works without problems, Locking onto a channel
using tzap also works fine. Only playback using tzap -r + mplayer was
tested and was fully functional.
It uses the af9035 USB Bridge chip, with an af9033 demodulator. The tuner
used is the FCI FC2580.

Signed-off-by: Oliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: use proper config for e4000 tuner
Antti Palosaari [Mon, 17 Sep 2012 20:54:27 +0000 (17:54 -0300)]
[media] rtl28xxu: use proper config for e4000 tuner

Do not abuse anymore fc0012 tuner config.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl2832: add configuration for e4000 tuner
Antti Palosaari [Mon, 17 Sep 2012 20:53:04 +0000 (17:53 -0300)]
[media] rtl2832: add configuration for e4000 tuner

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: remove fc0013 tuner fe callback
Antti Palosaari [Mon, 17 Sep 2012 19:55:39 +0000 (16:55 -0300)]
[media] rtl28xxu: remove fc0013 tuner fe callback

It is just stub implementation, remove it.
Also add debug for beginning of fe callback.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: move rtl2831u tuner probing to .read_config()
Antti Palosaari [Mon, 17 Sep 2012 19:50:36 +0000 (16:50 -0300)]
[media] rtl28xxu: move rtl2831u tuner probing to .read_config()

Move rtl2831u tuner probing correct place.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: do not return error for unimplemented fe callback
Antti Palosaari [Mon, 17 Sep 2012 18:49:54 +0000 (15:49 -0300)]
[media] rtl28xxu: do not return error for unimplemented fe callback

Use of frontend callback is highly hardware design dependent
and whole callback could be optional in many cases. Returning
error by default when callback is not implemented is stupid.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: masked reg write
Antti Palosaari [Mon, 17 Sep 2012 18:43:57 +0000 (15:43 -0300)]
[media] rtl28xxu: masked reg write

Implement masked register write and use it.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: move rtl2832u tuner probing to .read_config()
Antti Palosaari [Mon, 17 Sep 2012 17:01:35 +0000 (14:01 -0300)]
[media] rtl28xxu: move rtl2832u tuner probing to .read_config()

Move rtl2832u tuner probing correct place.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] af9035: declare MODULE_FIRMWARE
Antti Palosaari [Wed, 12 Sep 2012 15:19:06 +0000 (12:19 -0300)]
[media] af9035: declare MODULE_FIRMWARE

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] dvb_usb_v2: call streaming_ctrl() before kill urbs
Antti Palosaari [Tue, 11 Sep 2012 01:04:43 +0000 (22:04 -0300)]
[media] dvb_usb_v2: call streaming_ctrl() before kill urbs

Logically it is better ask hardware to stop streaming before
killing urbs carrying stream. Earlier it was just opposite.
Now code runs:
* submit urbs
* start streaming
** streaming ongoing **
* stop streaming
* kill urbs

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] dvb_usb_v2: rename module dvb_usbv2 => dvb_usb_v2
Antti Palosaari [Tue, 11 Sep 2012 00:31:22 +0000 (03:31 +0300)]
[media] dvb_usb_v2: rename module dvb_usbv2 => dvb_usb_v2

I think it is better name. At that phase renaming is quite painless
as module is not yet merged to mainline Kernel.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cxd2820r: use Kernel GPIO for GPIO access
Antti Palosaari [Fri, 20 Jul 2012 00:10:36 +0000 (21:10 -0300)]
[media] cxd2820r: use Kernel GPIO for GPIO access

Currently there is LNA behind cxd2820r demodulator GPIO. Use
Kernel GPIO interface to access those GPIOs.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cxd2820r: switch to Kernel dev_* logging
Antti Palosaari [Thu, 19 Jul 2012 16:10:12 +0000 (13:10 -0300)]
[media] cxd2820r: switch to Kernel dev_* logging

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DVB API: LNA documentation
Antti Palosaari [Fri, 17 Aug 2012 01:19:29 +0000 (22:19 -0300)]
[media] DVB API: LNA documentation

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] add LNA support for DVB API
Antti Palosaari [Thu, 12 Jul 2012 00:54:50 +0000 (21:54 -0300)]
[media] add LNA support for DVB API

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] dvb_frontend: do not allow statistic IOCTLs when sleeping
Antti Palosaari [Thu, 9 Aug 2012 22:00:51 +0000 (19:00 -0300)]
[media] dvb_frontend: do not allow statistic IOCTLs when sleeping

Demodulator cannot perform statistic IOCTLs when it is not tuned.
Return -EAGAIN in such case.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media-devnode: Replace printk with pr_*
Sachin Kamat [Mon, 24 Sep 2012 11:26:24 +0000 (08:26 -0300)]
[media] media-devnode: Replace printk with pr_*

Fixes checkpatch warnings related to printk.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] omap3isp: Fix error return code in probe function
Peter Senna Tschudin [Tue, 4 Sep 2012 16:14:25 +0000 (13:14 -0300)]
[media] omap3isp: Fix error return code in probe function

Convert a nonnegative error return code to a negative one, as returned
elsewhere in the function.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
[laurent.pinchart@ideasonboard.com Replaced EBUSY with ENODEV]
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] omap3isp: Fix up ENOIOCTLCMD error handling
Wanlong Gao [Mon, 27 Aug 2012 07:23:15 +0000 (04:23 -0300)]
[media] omap3isp: Fix up ENOIOCTLCMD error handling

At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be
translated as ENOTTY to user mode.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] rtl28xxu: add ID [0bda:2832] Realtek RTL2832U reference design
Antti Palosaari [Tue, 18 Sep 2012 13:27:05 +0000 (10:27 -0300)]
[media] rtl28xxu: add ID [0bda:2832] Realtek RTL2832U reference design

Also change location of other RTL2832 reference design ID 0bda:2838.
I just like to see reference design IDs at the first IDs in the list.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] radio-si470x: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:36 +0000 (08:22 -0300)]
[media] radio-si470x: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] saa7706h: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:35 +0000 (08:22 -0300)]
[media] saa7706h: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] msp3400: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:34 +0000 (08:22 -0300)]
[media] msp3400: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] radio-tea5764: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:33 +0000 (08:22 -0300)]
[media] radio-tea5764: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] tvaudio: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:32 +0000 (08:22 -0300)]
[media] tvaudio: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] ks0127: convert struct i2c_msg initialization to C99 format
Shubhrajyoti D [Tue, 18 Sep 2012 11:22:31 +0000 (08:22 -0300)]
[media] ks0127: convert struct i2c_msg initialization to C99 format

Convert the struct i2c_msg initialization to C99 format. This makes
maintaining and editing the code simpler. Also helps once other fields
like transferred are added in future.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init()
Ezequiel Garcia [Mon, 17 Sep 2012 17:59:30 +0000 (14:59 -0300)]
[media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init()

This replaces BUG_ON() calls with WARN_ON(), and returns
EINVAL if some parameter is NULL, as suggested by Jonathan and Mauro.
The BUG_ON() call is too drastic to be used in this case.
See the full discussion here:
http://www.spinics.net/lists/linux-media/msg52462.html

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] vivi: Add return code check at vb2_queue_init()
Ezequiel Garcia [Mon, 17 Sep 2012 12:49:38 +0000 (09:49 -0300)]
[media] vivi: Add return code check at vb2_queue_init()

This function returns an integer and it's mandatory
to check the return code.

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cx23885: Select drivers for Terratec Cinergy T PCIe Dual
Jean Delvare [Mon, 17 Sep 2012 11:53:53 +0000 (08:53 -0300)]
[media] cx23885: Select drivers for Terratec Cinergy T PCIe Dual

The Terratec Cinergy T PCIe Dual is based on the CX23885, and uses
MT2063, DRX-3913k and DRX-3916k chips, so select the relevant drivers.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: spi modalias is an array
Alan Cox [Mon, 17 Sep 2012 09:51:27 +0000 (06:51 -0300)]
[media] v4l2: spi modalias is an array

We want to check the contents not the array itself versus NULL

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] af9033: sleep on attach
Antti Palosaari [Mon, 17 Sep 2012 01:26:57 +0000 (22:26 -0300)]
[media] af9033: sleep on attach

This reduces power consumption 10mA.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] af9035: implement TUA9001 GPIOs correctly
Antti Palosaari [Mon, 17 Sep 2012 01:26:56 +0000 (22:26 -0300)]
[media] af9035: implement TUA9001 GPIOs correctly

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] tua9001: enter full power save on attach
Antti Palosaari [Mon, 17 Sep 2012 01:26:55 +0000 (22:26 -0300)]
[media] tua9001: enter full power save on attach

Disable RXEN and enable RESETN pins on attach to ensure chip is
totally powered down after attach.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: sh-vou: fix compilation breakage
Guennadi Liakhovetski [Sun, 24 Jun 2012 09:33:26 +0000 (06:33 -0300)]
[media] media: sh-vou: fix compilation breakage

A recent commit
commit f135a8a224294fa0f60ec1b8bc120813b7cfc804
Author: Hans Verkuil <hans.verkuil@cisco.com>
    [media] sh_vou: remove V4L2_FL_LOCK_ALL_FOPS
broke compilation of sh_vou.c:
drivers/media/platform/sh_vou.c: In function 'sh_vou_mmap':
drivers/media/platform/sh_vou.c:1227: error: 'vdev' undeclared (first use in this function)
drivers/media/platform/sh_vou.c:1227: error: (Each undeclared identifier is reported only once
drivers/media/platform/sh_vou.c:1227: error: for each function it appears in.)
drivers/media/platform/sh_vou.c: In function 'sh_vou_poll':
drivers/media/platform/sh_vou.c:1242: error: 'vdev' undeclared (first use in this function)
make[2]: *** [drivers/media/platform/sh_vou.o] Error 1
Add missing variable definitions.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] tvaudio: add back lost tda9875 copyright
Hans Verkuil [Tue, 25 Sep 2012 07:44:46 +0000 (04:44 -0300)]
[media] tvaudio: add back lost tda9875 copyright

When the separate tda9875 driver was merged into tvaudio the copyright
line of the tda9875 driver was dropped inadvertently. Add it back.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] radio drivers: in non-blocking mode return EAGAIN in hwseek
Hans Verkuil [Fri, 21 Sep 2012 12:33:35 +0000 (09:33 -0300)]
[media] radio drivers: in non-blocking mode return EAGAIN in hwseek

VIDIOC_S_HW_FREQ_SEEK should return EAGAIN when called in non-blocking
mode. This might change in the future if we add support for this in the
future, but right now this is not supported.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: in non-blocking mode return EAGAIN in hwseek
Hans Verkuil [Fri, 21 Sep 2012 11:33:38 +0000 (08:33 -0300)]
[media] DocBook: in non-blocking mode return EAGAIN in hwseek

VIDIOC_S_HW_FREQ_SEEK should return EAGAIN when called in non-blocking
mode. This might change in the future if we add support for this in the
future, but right now this is not supported.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: EAGAIN == EWOULDBLOCK
Hans Verkuil [Fri, 21 Sep 2012 11:32:49 +0000 (08:32 -0300)]
[media] DocBook: EAGAIN == EWOULDBLOCK

Merge the two entries since they are one and the same error.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Docbook: add missing vidioc-subdev-g-edid.xml
Hans Verkuil [Wed, 26 Sep 2012 08:24:18 +0000 (05:24 -0300)]
[media] Docbook: add missing vidioc-subdev-g-edid.xml

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] smiapp: Provide module identification information through sysfs
Sakari Ailus [Sat, 15 Sep 2012 21:26:54 +0000 (18:26 -0300)]
[media] smiapp: Provide module identification information through sysfs

Provide module ident information through sysfs.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.if>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] smiapp: Use highest bits-per-pixel for sensor internal format
Sakari Ailus [Sat, 15 Sep 2012 20:19:49 +0000 (17:19 -0300)]
[media] smiapp: Use highest bits-per-pixel for sensor internal format

The format shown on the links internal to the sensor was the first one
enumerated from the sensor, not the highest bit depth data that can be
produced by the sensor. Correct this.

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] smiapp: Remove unused function
Sachin Kamat [Fri, 17 Aug 2012 05:08:42 +0000 (02:08 -0300)]
[media] smiapp: Remove unused function

smiapp_replace_limit_at() function is not called by the driver.
This was detected by sparse as:
drivers/media/i2c/smiapp/smiapp-quirk.c:64:5: warning:
symbol 'smiapp_replace_limit_at' was not declared. Should it be static?

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] smiapp: Use devm_* functions in smiapp-core.c file
Sachin Kamat [Fri, 17 Aug 2012 04:49:02 +0000 (01:49 -0300)]
[media] smiapp: Use devm_* functions in smiapp-core.c file

devm_* functions are device managed functions and make code a bit
smaller and cleaner.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Add v4l2 subdev driver for S5K4ECGX sensor
Sangwook Lee [Thu, 13 Sep 2012 10:02:14 +0000 (07:02 -0300)]
[media] Add v4l2 subdev driver for S5K4ECGX sensor

This patch adds driver for Samsung S5K4ECGX image sensor with an
embedded SoC ISP. The driver only implements preview operation mode
and still capture (snapshot) and face detection features are missing
now. Following controls are supported: contrast, saturation,
brightness, sharpness.

Signed-off-by: Sangwook Lee <sangwook.lee@linaro.org>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] m2m-deinterlace: Add V4L2_CAP_VIDEO_M2M capability flag
Sylwester Nawrocki [Sat, 15 Sep 2012 18:57:41 +0000 (15:57 -0300)]
[media] m2m-deinterlace: Add V4L2_CAP_VIDEO_M2M capability flag

New mem-to-mem video drivers should use V4L2_CAP_VIDEO_M2M capability, rather
than ORed V4L2_CAP_VIDEO_CAPTURE and V4L2_CAP_VIDEO_OUTPUT flags, as outlined
in commit a1367f1b260d29e9b9fb20d8e2f39f1e74fa6c3b.

Acked-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] davinci: vpif: capture/display: fix race condition
Lad, Prabhakar [Fri, 14 Sep 2012 13:22:24 +0000 (10:22 -0300)]
[media] davinci: vpif: capture/display: fix race condition

channel_first_int[][] variable is used as a flag for the ISR,
This flag was being set after enabling the interrupts, There
where situations when the isr occurred even before the flag was set
dues to which it was causing the application hang.
This patch sets  channel_first_int[][] flag just before enabling the
interrupt.

Reported-by: David Oleszkiewicz <doleszki@adsyscontrols.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] davinci: vpif: remove unwanted header file inclusion
Hans Verkuil [Fri, 14 Sep 2012 14:02:23 +0000 (11:02 -0300)]
[media] davinci: vpif: remove unwanted header file inclusion

Remove old videobuf-core.h includes.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] vpif: replace preset with the timings API
Hans Verkuil [Tue, 18 Sep 2012 10:18:47 +0000 (07:18 -0300)]
[media] vpif: replace preset with the timings API

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Lad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: set up buffers to be sized as negotiated with s_fmt
Philipp Zabel [Wed, 29 Aug 2012 11:22:00 +0000 (08:22 -0300)]
[media] media: coda: set up buffers to be sized as negotiated with s_fmt

This fixes a failure in vb2_qbuf in user pointer mode where
__qbuf_userptr checks if the buffer queued by userspace is large
enough. The failure would happen if coda_queue_setup was called
with empty fmt (and thus set the expected buffer size to the maximum
resolution), and userspace queues buffers of smaller size -
corresponding to the negotiated dimensions - were queued.
Explicitly setting sizeimage to the value negotiated via s_fmt
fixes the issue.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: add byte size slice limit control
Philipp Zabel [Wed, 8 Aug 2012 14:59:38 +0000 (11:59 -0300)]
[media] media: coda: add byte size slice limit control

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: add horizontal / vertical flipping support
Philipp Zabel [Mon, 9 Jul 2012 07:25:52 +0000 (04:25 -0300)]
[media] media: coda: add horizontal / vertical flipping support

The hardware can also rotate in 90° steps, but there is no
corresponding V4L2_CID defined yet.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: fix sizeimage setting in try_fmt
Philipp Zabel [Thu, 26 Jul 2012 12:18:27 +0000 (09:18 -0300)]
[media] media: coda: fix sizeimage setting in try_fmt

VIDIOC_TRY_FMT would incorrectly return bytesperline * height,
instead of width * height * 3 / 2.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: wait for picture run completion in start/stop_streaming
Philipp Zabel [Wed, 25 Jul 2012 13:40:39 +0000 (10:40 -0300)]
[media] media: coda: wait for picture run completion in start/stop_streaming

While the CODA is running a PIC_RUN command, its registers are
not to be touched.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: enable user pointer support
Philipp Zabel [Thu, 5 Jul 2012 13:39:58 +0000 (10:39 -0300)]
[media] media: coda: enable user pointer support

USERPTR buffer support is provided by the videobuf2 framework.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: stop all queues in case of lockup
Philipp Zabel [Wed, 25 Jul 2012 12:22:07 +0000 (09:22 -0300)]
[media] media: coda: stop all queues in case of lockup

Add a 1 second timeout for each PIC_RUN command to the CODA. In
case it locks up, stop all queues and dequeue remaining buffers.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: keep track of active instances
Philipp Zabel [Wed, 25 Jul 2012 12:16:58 +0000 (09:16 -0300)]
[media] media: coda: keep track of active instances

Determining the next free instance just by incrementing and decrementing
an instance counter does not work: if there are two instances opened,
0 and 1, and instance 0 is released, the next call to coda_open will
create a new instance with index 1, but instance 1 is already in use.
Instead, scan a bitfield of active instances to determine the first
free instance index.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: ignore coda busy status in coda_job_ready
Philipp Zabel [Wed, 25 Jul 2012 13:46:09 +0000 (10:46 -0300)]
[media] media: coda: ignore coda busy status in coda_job_ready

job_ready is supposed to signal whether a context is ready to be
added to the job queue, not whether the CODA is ready to run it
immediately.
Calling v4l2_m2m_job_finish at the end of coda_irq_handler already
guarantees that the coda is ready when v4l2-mem2mem eventually tries
to run the next queued job.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: allocate internal framebuffers separately from v4l2 buffers
Philipp Zabel [Fri, 20 Jul 2012 11:54:29 +0000 (08:54 -0300)]
[media] media: coda: allocate internal framebuffers separately from v4l2 buffers

Some codecs running on CODA need internal framebuffers for reference and
reconstructed frames. Allocate them separately, and do not use the input
vb2_buffers: those will be handed off to userspace regularly, and there
is no way to signal to the CODA which of the registered framebuffers are
off limits. As a consequence, userspace is now free to choose the number
of v4l2 buffers.
This patch also includes the code to set up the parameter buffer for
CODA7 and above with 64-bit AXI bus width.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Javier Martin <javier.martin@vista-silicon.com>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: fix IRAM/AXI handling for i.MX53
Philipp Zabel [Mon, 2 Jul 2012 12:03:55 +0000 (09:03 -0300)]
[media] media: coda: fix IRAM/AXI handling for i.MX53

This uses the ARCH_MXC specific iram_alloc API to allocate a work
buffer in the SoC's on-chip SRAM and sets up the AXI_SRAM_USE
register. In the future, the allocation will be converted to use
the genalloc API.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: add i.MX53 / CODA7541 platform support
Philipp Zabel [Mon, 2 Jul 2012 09:07:10 +0000 (06:07 -0300)]
[media] media: coda: add i.MX53 / CODA7541 platform support

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] media: coda: firmware loading for 64-bit AXI bus width
Philipp Zabel [Mon, 2 Jul 2012 10:03:43 +0000 (07:03 -0300)]
[media] media: coda: firmware loading for 64-bit AXI bus width

Add support for loading a raw firmware with 16-bit chars ordered in
little-endian 64-bit words, corresponding to the memory access pattern
of CODA7 and above: When writing the boot code into the code download
register, the chars have to be reordered back.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] coda: Add V4L2_CAP_VIDEO_M2M capability flag
Sylwester Nawrocki [Wed, 22 Aug 2012 21:00:19 +0000 (18:00 -0300)]
[media] coda: Add V4L2_CAP_VIDEO_M2M capability flag

New mem-to-mem video drivers should use V4L2_CAP_VIDEO_M2M capability, rather
than ORed V4L2_CAP_VIDEO_CAPTURE and V4L2_CAP_VIDEO_OUTPUT flags, as outlined
in commit a1367f1b260d29e9b9fb20d8e2f39f1e74fa6c3b.

Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Acked-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] vb2: fix wrong owner check
Hans Verkuil [Fri, 7 Sep 2012 15:50:02 +0000 (12:50 -0300)]
[media] vb2: fix wrong owner check

Check against q->fileio to see if the queue owner should be set or not.
The former check against the return value of read or write is wrong, since
read/write can return an error, even if the queue is in streaming mode.
For example, EAGAIN when in non-blocking mode.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Add vfl_dir field documentation
Hans Verkuil [Mon, 17 Sep 2012 08:06:33 +0000 (05:06 -0300)]
[media] Add vfl_dir field documentation

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2-dev: reorder checks into blocks of ioctls with similar properties
Hans Verkuil [Fri, 14 Sep 2012 10:06:08 +0000 (07:06 -0300)]
[media] v4l2-dev: reorder checks into blocks of ioctls with similar properties

This makes it easier to read and also ties in more closely with the
profile concept.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2-dev: improve ioctl validity checks
Hans Verkuil [Fri, 14 Sep 2012 10:03:35 +0000 (07:03 -0300)]
[media] v4l2-dev: improve ioctl validity checks

The ioctl validity checks have been improved and now take vfl_type
and vfl_dir into account.
During the 2012 Media Workshop it was decided that these improved
v4l2 core checks should be added as they simplified drivers and
made drivers behave consistently.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Set vfl_dir for all display or m2m drivers
Hans Verkuil [Wed, 5 Sep 2012 09:05:50 +0000 (06:05 -0300)]
[media] Set vfl_dir for all display or m2m drivers

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2-dev: add new VFL_DIR_ defines
Hans Verkuil [Wed, 5 Sep 2012 08:33:21 +0000 (05:33 -0300)]
[media] v4l2-dev: add new VFL_DIR_ defines

These will be used by v4l2-dev.c to improve ioctl checking.
I.e. ioctls for capture should return -ENOTTY when called for
an output device.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_crop const
Hans Verkuil [Wed, 5 Sep 2012 08:10:48 +0000 (05:10 -0300)]
[media] v4l2: make vidioc_s_crop const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_crop.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_modulator const
Hans Verkuil [Tue, 4 Sep 2012 15:08:47 +0000 (12:08 -0300)]
[media] v4l2: make vidioc_s_modulator const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_modulator.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_audout const
Hans Verkuil [Tue, 4 Sep 2012 15:03:49 +0000 (12:03 -0300)]
[media] v4l2: make vidioc_s_audout const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audout.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_audio const
Hans Verkuil [Tue, 4 Sep 2012 14:59:31 +0000 (11:59 -0300)]
[media] v4l2: make vidioc_s_audio const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_audio.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_(un)subscribe_event const
Hans Verkuil [Tue, 4 Sep 2012 14:46:09 +0000 (11:46 -0300)]
[media] v4l2: make vidioc_(un)subscribe_event const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_(un)subscribe_event.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_freq_hw_seek const
Hans Verkuil [Fri, 14 Sep 2012 10:41:18 +0000 (07:41 -0300)]
[media] v4l2: make vidioc_s_freq_hw_seek const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_freq_hw_seek.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_jpegcomp const
Hans Verkuil [Mon, 17 Sep 2012 08:05:25 +0000 (05:05 -0300)]
[media] v4l2: make vidioc_s_jpegcomp const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_jpegcomp.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: make vidioc_s_fbuf const
Hans Verkuil [Tue, 4 Sep 2012 13:26:45 +0000 (10:26 -0300)]
[media] v4l2: make vidioc_s_fbuf const

Write-only ioctls should have a const argument in the ioctl op.
Do this conversion for vidioc_s_fbuf.
Adding const for write-only ioctls was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: Mark CROPCAP as optional instead of as compulsory
Hans Verkuil [Fri, 14 Sep 2012 10:40:43 +0000 (07:40 -0300)]
[media] DocBook: Mark CROPCAP as optional instead of as compulsory

While the documentation says that VIDIOC_CROPCAP is compulsory for
all video capture and output devices, in practice VIDIOC_CROPCAP is
only implemented for devices that can do cropping and/or scaling.
Update the documentation to no longer require VIDIOC_CROPCAP if the
driver does not support cropping or scaling or non-square pixels.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: clarify that sequence is also set for output devices
Hans Verkuil [Tue, 4 Sep 2012 10:07:54 +0000 (07:07 -0300)]
[media] DocBook: clarify that sequence is also set for output devices

It was not entirely obvious that the sequence count should also
be set for output devices. Also made it more explicit that this
sequence counter counts frames, not fields.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: fix awkward language and fix the documented return value
Hans Verkuil [Fri, 14 Sep 2012 10:39:55 +0000 (07:39 -0300)]
[media] DocBook: fix awkward language and fix the documented return value

The Video Standard section contains some awkward language. It also wasn't
updated when the error code for unimplemented ioctls changed from EINVAL
to ENOTTY.

[mchehab@redhat.com: remove a misplaced footnote tag]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Feature removal: Remove CUSTOM_TIMINGS defines in 3.9
Hans Verkuil [Fri, 14 Sep 2012 09:53:44 +0000 (06:53 -0300)]
[media] Feature removal: Remove CUSTOM_TIMINGS defines in 3.9

These have been replaced by new defines without the "CUSTOM_" part.
Get rid of the old ones.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] Rename V4L2_(IN|OUT)_CAP_CUSTOM_TIMINGS
Hans Verkuil [Mon, 3 Sep 2012 13:38:41 +0000 (10:38 -0300)]
[media] Rename V4L2_(IN|OUT)_CAP_CUSTOM_TIMINGS

The 'custom' timings are no longer just for custom timings, but also for standard
CEA/VESA timings. So rename to V4L2_IN/OUT_CAP_DV_TIMINGS.
The old define is still kept for backwards compatibility.
This decision was taken during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2-core: tvnorms may be 0 for a given input, handle that case
Hans Verkuil [Fri, 14 Sep 2012 09:45:43 +0000 (06:45 -0300)]
[media] v4l2-core: tvnorms may be 0 for a given input, handle that case

Currently the core code looks at tvnorms to see whether ENUMSTD
or G_PARM should be enabled. This is not a good check for drivers
that support the STD API on one input and the DV Timings API on another.
In that case tvnorms may be 0.
Instead check whether s_std is present (for ENUMSTD) or whether g_std or
current_norm is present for g_parm.
Also, in the enumstd core function return ENODATA if tvnorms is 0,
because in that case the current input does not support the STD API
and ENUMSTD should return ENODATA for that.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: document when to return ENODATA
Hans Verkuil [Fri, 14 Sep 2012 09:44:20 +0000 (06:44 -0300)]
[media] DocBook: document when to return ENODATA

ENODATA should be returned if the API used for getting, changing, querying
or enumerating the current video timings is not supported by the current input
or output.
This was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2: remove experimental tag from a number of old drivers
Hans Verkuil [Mon, 3 Sep 2012 13:16:34 +0000 (10:16 -0300)]
[media] v4l2: remove experimental tag from a number of old drivers

A number of old drivers still had the experimental tag. Time to remove it.
It concerns the following drivers:
VIDEO_TLV320AIC23B
USB_STKWEBCAM
VIDEO_CX18
VIDEO_CX18_ALSA
VIDEO_ZORAN_AVS6EYES
DVB_USB_AF9005
MEDIA_TUNER_TEA5761
VIDEO_NOON010PC30
This decision was taken during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: deprecate V4L2_BUF_TYPE_PRIVATE
Hans Verkuil [Mon, 3 Sep 2012 13:09:23 +0000 (10:09 -0300)]
[media] DocBook: deprecate V4L2_BUF_TYPE_PRIVATE

As per decision taken during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] cx18/ivtv: Remove usage of V4L2_BUF_TYPE_PRIVATE
Hans Verkuil [Mon, 17 Sep 2012 08:02:38 +0000 (05:02 -0300)]
[media] cx18/ivtv: Remove usage of V4L2_BUF_TYPE_PRIVATE

V4L2_BUF_TYPE_PRIVATE was used in these driver for internal purposes.
It turned out though that it wasn't used at all, so it could be removed.
I know it was used in the past, but clearly later changes made this
obsolete.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] v4l2-core: deprecate V4L2_BUF_TYPE_PRIVATE
Hans Verkuil [Mon, 17 Sep 2012 08:02:26 +0000 (05:02 -0300)]
[media] v4l2-core: deprecate V4L2_BUF_TYPE_PRIVATE

This buffer type isn't used at all, and since it is effectively undefined
what it should do it is deprecated. The define still exists, but any
internal support for such buffers is removed.
The decisions to deprecate this was taken during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] vivi/mem2mem_testdev: update to latest bus_info specification
Hans Verkuil [Fri, 14 Sep 2012 09:23:12 +0000 (06:23 -0300)]
[media] vivi/mem2mem_testdev: update to latest bus_info specification

Prefix bus_info with "platform:".

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: bus_info can no longer be empty
Hans Verkuil [Fri, 14 Sep 2012 09:14:16 +0000 (06:14 -0300)]
[media] DocBook: bus_info can no longer be empty

During the 2012 Media Workshop it was decided that bus_info as returned
by VIDIOC_QUERYCAP can no longer be empty. It should be a unique identifier,
and empty strings are obviously not unique.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: make the G/S/TRY_FMT specification more strict
Hans Verkuil [Mon, 3 Sep 2012 12:37:18 +0000 (09:37 -0300)]
[media] DocBook: make the G/S/TRY_FMT specification more strict

- S/TRY_FMT should always succeed, unless an invalid type field is passed in.
- TRY_FMT should give the same result as S_FMT, all other things being equal.
- ENUMFMT may return different formats for different inputs or outputs.
This was decided during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
11 years ago[media] DocBook: improve STREAMON/OFF documentation
Hans Verkuil [Mon, 3 Sep 2012 12:21:59 +0000 (09:21 -0300)]
[media] DocBook: improve STREAMON/OFF documentation

Specify that STREAMON/OFF should return 0 if the stream is already
started/stopped.
The spec never specified what the correct behavior is. This ambiguity
was resolved during the 2012 Media Workshop.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>