aboutsummaryrefslogtreecommitdiff
path: root/drivers/media
AgeCommit message (Collapse)AuthorFilesLines
2012-10-01[media] s5p-fimc: Fix setup of initial links to FIMC entitiesSylwester Nawrocki1-1/+4
This patch fixes regression introduced in commit 4af813108b880e96a4b8b01e162f950a4aaa2475. Missing pointers to the sensor subdevs are restored along with subdev callback notifications to a corresponding FIMC instance driver. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Andrzej Hajda <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] m5mols: Fix cast warnings from m5mols_[set/get]_ctrl_modeSylwester Nawrocki2-4/+4
Fixes following warnings on 64-bit architectures: m5mols.h: In function 'm5mols_set_ctrl_mode': m5mols.h:326:15: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] m5mols.h: In function 'm5mols_get_ctrl_mode': m5mols.h:331:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/media/i2c/m5mols/m5mols_controls.c:466:2: warning: cast from pointer to integer of different size Cc: Heungjun Kim <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] m5mols: Add missing free_irq() on error pathSylwester Nawrocki1-1/+3
Make sure the interrupt is freed when driver probing fails. Reported-by: Marek Szyprowski <[email protected]> Cc: HeungJun Kim <[email protected]> Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] s5p-fimc: Don't allocate fimc-m2m video device dynamicallySylwester Nawrocki3-28/+17
There is no need to to dynamically allocate struct video_device for the M2M devices, so embed it instead in driver's private data structure as it is done in case of fimc-capture and fimc-lite, where it solves some bugs on cleanup paths. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] s5p-fimc: Don't allocate fimc-capture video device dynamicallySylwester Nawrocki5-28/+16
This fixes potential invalid pointer de-reference, when media_entity_cleanup() is called before video device is unregistered. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] s5p-fimc: Don't allocate fimc-lite video device structure dynamicallySylwester Nawrocki4-29/+19
This fixes potential invalid pointer de-reference, when media_entity_cleanup() is called after video_unregister_device, and video device structure memory is already freed. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01[media] s5p-fimc: Enable FIMC-LITE driver only for SOC_EXYNOS4x12Sylwester Nawrocki1-1/+1
Allow to compile-in the FIMC-LITE driver only on Exynos4212, Exynos4412 and Exynos5250 SoC where the device is available. Signed-off-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-10-01tda1004x: Lock I2C bus during firmware loadMauro Carvalho Chehab1-2/+6
tda1004x doesn't allow firmware loads while it is busy with something else. Avoid it to happen by locking the I2C bus during firmware transfer. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] media: mx2_camera: use managed functions to clean up codeShawn Guo1-104/+45
Use managed functions to clean up the error handling code and function mx2_camera_remove(). Along with the change, a few variables get removed from struct mx2_camera_dev. Signed-off-by: Shawn Guo <[email protected]> Acked-by: Sascha Hauer <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Tested-by: Javier Martin <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] media: mx2_camera: remove dead code in mx2_camera_add_deviceShawn Guo1-3/+1
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 <[email protected]> Acked-by: Sascha Hauer <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Acked-by: Javier Martin <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] anysee: do not remove CI when it is not attachedAntti Palosaari2-4/+5
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] e4000: fix crash when attach failsAntti Palosaari1-3/+4
Callbacks were set even attach failed. This leads calling .release() in error case and resulted crash. Reported-by: Oliver Schinagl <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] fc2580: fix crash when attach failsAntti Palosaari1-3/+4
Callbacks were set even attach failed. This leads calling .release() in error case and resulted crash. Reported-by: Oliver Schinagl <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] dvb_usb_v2: fix error handling for .tuner_attach()Antti Palosaari1-1/+3
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 <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] fc2580: small improvements for chip id checkAntti Palosaari1-1/+5
* better readability * make checkpatch.pl happy * few bytes smaller binary footprint Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] cypress_firmware: refactor firmware downloadingAntti Palosaari1-37/+43
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] cypress_firmware: use Kernel dev_foo() loggingAntti Palosaari1-9/+12
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: [0413:6680] DigitalNow Quad DVB-T ReceiverAntti Palosaari1-0/+2
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 <[email protected]> Tested-by: Darryl Bond <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] Support for Asus MyCinema U3100Mini PlusOliver Schinagl8-1/+74
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 <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: use proper config for e4000 tunerAntti Palosaari1-2/+7
Do not abuse anymore fc0012 tuner config. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl2832: add configuration for e4000 tunerAntti Palosaari3-0/+42
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: remove fc0013 tuner fe callbackAntti Palosaari1-11/+4
It is just stub implementation, remove it. Also add debug for beginning of fe callback. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: move rtl2831u tuner probing to .read_config()Antti Palosaari1-76/+99
Move rtl2831u tuner probing correct place. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: do not return error for unimplemented fe callbackAntti Palosaari1-6/+2
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: masked reg writeAntti Palosaari1-47/+36
Implement masked register write and use it. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: move rtl2832u tuner probing to .read_config()Antti Palosaari2-177/+175
Move rtl2832u tuner probing correct place. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] af9035: declare MODULE_FIRMWAREAntti Palosaari2-2/+7
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] dvb_usb_v2: call streaming_ctrl() before kill urbsAntti Palosaari1-1/+2
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] dvb_usb_v2: rename module dvb_usbv2 => dvb_usb_v2Antti Palosaari1-2/+2
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] cxd2820r: use Kernel GPIO for GPIO accessAntti Palosaari8-55/+114
Currently there is LNA behind cxd2820r demodulator GPIO. Use Kernel GPIO interface to access those GPIOs. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] cxd2820r: switch to Kernel dev_* loggingAntti Palosaari5-76/+101
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] add LNA support for DVB APIAntti Palosaari2-0/+6
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] dvb_frontend: do not allow statistic IOCTLs when sleepingAntti Palosaari1-9/+25
Demodulator cannot perform statistic IOCTLs when it is not tuned. Return -EAGAIN in such case. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] media-devnode: Replace printk with pr_*Sachin Kamat1-6/+8
Fixes checkpatch warnings related to printk. Signed-off-by: Sachin Kamat <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] omap3isp: Fix error return code in probe functionPeter Senna Tschudin1-1/+3
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 <[email protected]> [[email protected] Replaced EBUSY with ENODEV] Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] omap3isp: Fix up ENOIOCTLCMD error handlingWanlong Gao1-4/+4
At commit 07d106d0, Linus pointed out that ENOIOCTLCMD should be translated as ENOTTY to user mode. Signed-off-by: Wanlong Gao <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] rtl28xxu: add ID [0bda:2832] Realtek RTL2832U reference designAntti Palosaari1-2/+4
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] radio-si470x: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-6/+17
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] saa7706h: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-2/+13
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] msp3400: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-6/+34
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] radio-tea5764: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-3/+10
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] tvaudio: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-2/+11
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] ks0127: convert struct i2c_msg initialization to C99 formatShubhrajyoti D1-2/+11
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] videobuf2-core: Replace BUG_ON and return an error at vb2_queue_init()Ezequiel Garcia1-8/+11
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] vivi: Add return code check at vb2_queue_init()Ezequiel Garcia1-1/+3
This function returns an integer and it's mandatory to check the return code. Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] cx23885: Select drivers for Terratec Cinergy T PCIe DualJean Delvare1-0/+2
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] v4l2: spi modalias is an arrayAlan Cox1-1/+1
We want to check the contents not the array itself versus NULL Signed-off-by: Alan Cox <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] af9033: sleep on attachAntti Palosaari1-0/+9
This reduces power consumption 10mA. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] af9035: implement TUA9001 GPIOs correctlyAntti Palosaari1-17/+48
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-09-27[media] tua9001: enter full power save on attachAntti Palosaari1-0/+10
Disable RXEN and enable RESETN pins on attach to ensure chip is totally powered down after attach. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>