aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-01-16[media] cx18: remove exclusive open of radio deviceHans Verkuil1-27/+14
For some reason the cx18 driver could open the radio device only once. Remove this limitation. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] ivtv: remove exclusive radio openHans Verkuil1-33/+24
For some reason the /dev/radio device was implemented as an exclusive open: you could open it only once and not a second time. Remove this limitation. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Andy Walls <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] v4l2-ioctl: make tuner 'type' check more strict for S_FREQUENCYHans Verkuil3-14/+12
As per the feature removal document, make the tuner type check more strict so that it is no longer possible to set the radio frequency through a video node or the TV frequency through a radio node. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] V4L2 Spec: improve the G/S_INPUT/OUTPUT documentationHans Verkuil2-4/+5
As Rupert pointed out, the phrase "It is good practice" should be replaced with "You must". Signed-off-by: Hans Verkuil <[email protected]> Cc: Rupert Eibauer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] V4L2 Spec: fix extended control documentationHans Verkuil2-26/+13
Update the spec to the behavior implemented by the control framework. This should have been documented long ago but for some reason it was never done. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] omap_vout: add missing OVERLAY_OUTPUT cap and set V4L2_FBUF_FLAG_OVERLAYHans Verkuil1-2/+5
The omap_vout driver has an output overlay, but never advertised that capability. The driver should also set the V4L2_FBUF_FLAG_OVERLAY flag. Signed-off-by: Hans Verkuil <[email protected]> CC: Archit Taneja <[email protected]> CC: Vaibhav Hiremath <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] zoran: do not set V4L2_FBUF_FLAG_OVERLAYHans Verkuil1-1/+0
The zoran driver does not support this flag, so don't set it. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] v4l2 spec: clarify usage of V4L2_FBUF_FLAG_OVERLAYHans Verkuil1-9/+14
Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-16[media] cx23885: handle errors from videobuf_dvb_get_frontend()Dan Carpenter1-3/+4
The error handling in the original code wasn't complete so static checkers complained about a potential NULL deference. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-15[media] dvb-core: preserve the delivery system at cache clearMauro Carvalho Chehab1-0/+3
The changeset 240ab508aa is incomplete, as the first thing that happens at cache clear is to do a memset with 0 to the cache. So, the delivery system needs to be explicitly preserved there. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-15[media] dvb-core: fix a regression with MythTVMauro Carvalho Chehab1-0/+9
As reported by Lawrence[1], MythTV 0.24.1 does the wrong thing with a DVBv5 call: it fills the delivery system with SYS_UNDEFINED, expecting that the DVB core would work with that. This used to work by accident, as the DVB core were missing the check for the supported delivery systems. Yet, fixing it is easy, so let's add a logic to handle this case, to provide backward compatibility. [1] http://patchwork.linuxtv.org/patch/8314/ Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-15[media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driverAntti Palosaari4-420/+0
I added it by mistake. It is useless as no real hardware. It even uses even Cypress FX2, general USB bridge chip, default IDs that makes driver load all FX2 devices having default ID... Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-11mb86a20s: Add a few more register settings at the init seqMauro Carvalho Chehab1-4/+12
Some time ago, Manoel sent us a patch adding more stuff to the init sequence. However, his patch were also doing non-related stuff, by changing the init logic without any good reason. So, it was asked for him to submit a patch with just the data that has changed, in order to allow us to better analyze it. As he didn't what it was requested, I finally found some time to dig into his init sequence and add it here. Basically, new stuff is added there. There are a few changes: 1) The removal of the extra (duplicated) logic that puts the chip into the serial mode; 2) Some Viterbi VBER measurement init data was changed from 0x00 to 0xff for layer A, to match what was done for layers B and C. None of those caused any regressions and both make sense on my eyes. The other parameters additions actually increased the tuning quality for some channels. Yet, some channels that were previously discovered with scan disappered, while others appeared instead. This were tested in Brasilia, with an external antena. At the overall, it is now a little better. So, better to add these, and then try to figure out a configuration that would get even better scanning results. Reported-by: Manoel Pinheiro <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-11mb86a20s: Group registers into the same lineMauro Carvalho Chehab1-228/+87
On mb86a20s, some registers have sub-addresses, while others not. In order to make easier to compare different settings, group them. No functional changes in this patch. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] [PATCH] don't reset the delivery system on DTV_CLEARMauro Carvalho Chehab1-1/+2
As a DVBv3 application may be relying on the delivery system, don't reset it at DTV_CLEAR. For DVBv5 applications, the delivery system should be set anyway. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] [BUG] it913x-fe fix typo error making SNR levels unstableMalcolm Priestley1-1/+1
Fix error where SNR unstable and jumps levels. Signed-off-by: Malcolm Priestley <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx23885: Query the CX25840 during enum_input for statusSteven Toth1-0/+9
We can pass a NO_SIGNAL video decoder state back to applications if it's available. Signed-off-by: Steven Toth <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx25840: Add support for g_input_statusSteven Toth1-0/+16
Allow bridge drivers to query status. Signed-off-by: Steven Toth <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] rc-videomate-m1f.c Rename to match remote controler nameSamuel Rakitnican3-14/+14
This remote was added with support for card Compro VideoMate M1F. This remote is shipped with various Compro cards, not this one only. Furthermore this remote can be bought separately under name Compro VideoMate K100. http://compro.com.tw/en/product/k100/k100.html So give it a proper name. [[email protected]: Fix the Makefile] Signed-off-by: Samuel Rakitničan <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] drivers: media: au0828: Fix dependency for VIDEO_AU0828Fabio Estevam1-0/+1
Fix the following build warning: warning: (VIDEO_AU0828) selects DVB_AU8522 which has unmet direct dependencies (MEDIA_SUPPORT && DVB_CAPTURE_DRIVERS && DVB_CORE && I2C && VIDEO_V4L2) Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] convert drivers/media/* to use module_platform_driver()Axel Lin25-406/+26
This patch converts the drivers in drivers/media/* to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Cc: Mauro Carvalho Chehab <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Kyungmin Park <[email protected]> Cc: Hans Verkuil <[email protected]> Cc: "Richard Röjfors" <[email protected]> Cc: "Matti J. Aaltonen" <[email protected]> Cc: Lucas De Marchi <[email protected]> Cc: Manjunath Hadli <[email protected]> Cc: Muralidharan Karicheri <[email protected]> Cc: Anatolij Gustschin <[email protected]> Cc: Guennadi Liakhovetski <[email protected]> Cc: Marek Szyprowski <[email protected]> Cc: Robert Jarzmik <[email protected]> Cc: Jonathan Corbet <[email protected]> Cc: Daniel Drake <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Acked-by: Guennadi Liakhovetski <[email protected]> Acked-by: Marek Szyprowski <[email protected]> Acked-by: Matti J. Aaltonen <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVBFabio Estevam1-1/+1
Fix the following build warning: warning: (VIDEO_CX231XX_DVB) selects DVB_MB86A20S which has unmet direct dependencies (MEDIA_SUPPORT && DVB_CAPTURE_DRIVERS && DVB_CORE && I2C) Signed-off-by: Fabio Estevam <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] Exynos4 JPEG codec v4l2 driverAndrzej Pietrasiewicz7-0/+2158
Add driver for the JPEG codec IP block available in Samsung Exynos SoC series. The driver is implemented as a V4L2 mem-to-mem device. It exposes two video nodes to user space, one for the encoding part, and one for the decoding part. Signed-off-by: Andrzej Pietrasiewicz <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Reviewed-by: Sakari Ailus <[email protected]> Reviewed-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] doc: v4l: selection: choose pixels as units for selection rectanglesTomasz Stanislawski1-18/+12
Pixels were preferred units for selection rectangles over driver-dependent units for almost all use cases. Therefore the units were fixed to pixels. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] v4l: s5p-tv: mixer: fix setup of VP scalingTomasz Stanislawski1-4/+4
Adjusting of Video Processor's scaling factors was flawed. It bounded scaling to range 1/16 to 1/1. The correct range should be 1/4 to 4/1. This patch fixes this bug. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] v4l: s5p-tv: mixer: add support for selection APITomasz Stanislawski4-196/+425
This patch add support for V4L2 selection API to s5p-tv driver. Moreover it removes old API for cropping. Old applications would still work because the crop ioctls are emulated using the selection API. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] v4l: emulate old crop API using extended crop/compose APITomasz Stanislawski1-6/+76
This patch allows new video drivers to work correctly with applications that use the old-style crop API. The old crop ioctl is emulated by using selection callbacks. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] doc: v4l: add documentation for selection APITomasz Stanislawski5-0/+643
This patch adds a documentation for VIDIOC_{G/S}_SELECTION ioctl. Moreover, the patch adds the description of modeling of composing, cropping and scaling features in V4L2. Finally, some examples are presented. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] doc: v4l: add binary images for selection APITomasz Stanislawski2-0/+265
This patch adds images in binary format for the V4L2 selection API. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] v4l: add support for selection apiTomasz Stanislawski4-0/+86
This patch introduces new api for a precise control of cropping and composing features for video devices. The new ioctls are VIDIOC_S_SELECTION and VIDIOC_G_SELECTION. Signed-off-by: Tomasz Stanislawski <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] hd29l2: fix review findingsAntti Palosaari1-3/+3
Fix some issues pointed out by Mauro. Mauro Carvalho Chehab <[email protected]> Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] dvb-core: define general callback value for demodulatorAntti Palosaari1-0/+1
Allow use of that general callback for demod too. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] hd29l2: add debug for used IF frequencyAntti Palosaari1-1/+1
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] hd29l2: synch for latest DVB core changesAntti Palosaari1-6/+4
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] HDIC HD29L2 DMB-TH USB2.0 reference design driverAntti Palosaari4-0/+420
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] HDIC HD29L2 DMB-TH demodulator driverAntti Palosaari5-0/+1251
Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] em28xx: Fix tuner_type for Terratec Cinergy 200 USBSascha Sommer1-1/+1
The card definition of the Terratec Cinergy 200 USB uses the wrong tuner type. Therefore some channels are currently missing. Attached patch fixes this problem. Signed-off-by: Sascha Sommer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] em28xx: increase maxwidth for em2800Sascha Sommer2-2/+14
The MaxPacketSize for em2800 based devices is too small to capture at full resolution. Therefore scale down when the maximum frame size is selected. The previous workaround that simply reduced the X resolution cannot be used because it crops a part of the input as the em2800 can only scale down with a factor of 0.5. reverts commits 1ca31892e and fb3de0398ab. [[email protected]: Fix CodingStyle] Signed-off-by: Sascha Sommer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] em28xx: Do not modify EM28XX_R06_I2C_CLK for em2800Sascha Sommer1-1/+2
writing the EM28XX_R06_I2C_CLK register leads to the problem that the i2c bus on the Terratec Cinergy 200 USB is no longer usable when the system is rebooted. The device needs to be unplugged in order to bring it back to life. Attached patch conditionally disables the write in em28xx_pre_card_setup() like it is already done in em28xx_card_setup(). Signed-off-by: Sascha Sommer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] em28xx: Fix: I2C_CLK write error message checks wrong return codeSascha Sommer1-1/+1
It looks like the return value check that is done after setting the I2C speed checks the wrong return code. Signed-off-by: Sascha Sommer <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] em28xx: simplify argument passing to em28xx_init_dev()Thomas Petazzoni1-3/+2
The 'struct em28xx *' pointer was passed by reference to the em28xx_init_dev() function, for no reason. Instead, just pass it by value, which is much more logical and simple. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] af9005, af9015: use symbolic names for USB id table indicesJonathan Nieder2-87/+252
The af9005_properties and af9015_properties tables make use of USB ids from the USB id tables with hardcoded indices, as in "&af9015_usb_table[30]". Adding new entries before the end breaks such references, so everyone has had to carefully tiptoe to only add entries at the end of the list. In the spirit of "dw2102: use symbolic names for dw2102_table indices", use C99-style initializers with symbolic names for each index to avoid this. In the new regime, properties tables referring to the USB ids have names like "&af9015_usb_table[CINERGY_T_STICK_RC]" that do not change meaning when items in the USB id table are reordered. Encouraged-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]> Acked-by: Luca Olivetti <[email protected]> Acked-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx231xx: use URB_NO_TRANSFER_DMA_MAP on URBs allocated with ↵Thomas Petazzoni3-5/+5
usb_alloc_urb() URBs allocated with usb_alloc_urb() are allocated from DMA-coherent areas, and therefore it is not necessary to call dma_map_single() on such buffers. Worst, on ARM, calling dma_map_single() on a DMA-coherent buffer will trigger a BUG_ON() in arch/arm/mm/dma-mapping.c. Therefore, we mark all URBs allocated with usb_alloc_urb() with the URB_NO_TRANSFER_DMA_MAP transfer_flags, so that the USB core does not do dma_map_single()/dma_unmap_single() on those buffers. This is similar to 882787ff8fdeb0be790547ee9b22b281095e95da for the gspca driver, and has already been discussed on the linux-media list in the past: http://www.mail-archive.com/[email protected]/msg37086.html. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx231xx: simplify argument passing to cx231xx_init_dev()Thomas Petazzoni1-3/+2
The 'struct cx231xx *' pointer was passed by reference to the cx231xx_init_dev() function, for no reason. Instead, just pass it by value, which is much more logical and simple. Signed-off-by: Thomas Petazzoni <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] mxl5007t: bugfix DVB-T 7 MHz and 8 MHz bandwidthAntti Palosaari1-0/+2
DVB-T did not work at all - only 6 MHz was working but it is not commonly used. Fix it. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] tda18271-fe: Fix support for ISDB-TMauro Carvalho Chehab1-0/+1
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx231xx: fix device disconnect checksMauro Carvalho Chehab6-17/+29
The driver were using DEV_MISCONFIGURED on some places, and DEV_DISCONNECTED on others. In a matter of fact, DEV_MISCONFIGURED were set only during the usb disconnect callback, with was confusing. Also, the alsa driver never checks if the device is present, before doing some dangerous things. Remove DEV_MISCONFIGURED, replacing it by DEV_DISCONNECTED. Also, fixes the other usecases for DEV_DISCONNECTED. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx231xx: cx231xx_devused is racyMauro Carvalho Chehab1-18/+18
cx231xx_devused is racy. Re-implement it in a proper way, to remove the risk of mangling it. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] cx231xx: Fix unregister logicMauro Carvalho Chehab5-22/+24
There are several weirdness at the unregister logic. First of all, IR has a poll thread. This thread needs to be removed, as it uses some resources associated to the main driver. So, the driver needs to explicitly unregister the I2C client for ir-kbd-i2c. If, for some reason, the driver needs to wait for a close() to happen, not all memories will be freed, because the free logic were in the wrong place. Also, v4l2_device_unregister() seems to be called too early, as devices are still using it. Finally, even with the device disconnected, there is one USB function call that will still try to talk with it. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2012-01-10[media] mb86a20s: implement get_frontend()Mauro Carvalho Chehab1-3/+193
Reports the auto-detected parameters to userspace. Signed-off-by: Mauro Carvalho Chehab <[email protected]>