aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-05-18[media] MAINTAINERS: add cx24120-maintainerPatrick Boettcher1-0/+9
Add maintainer for the cx24120 frontend-driver. Signed-off-by: Patrick Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] cx24120: i2c-max-write-size is now configurablePatrick Boettcher3-16/+26
Some i2c-hosts are quite limited regarding maximum i2c-burst-write-sizes. This patch makes the previously hardcoded field configurable by users of the driver. Signed-off-by: Patrick Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] cx24120: minor checkpatch fixesPatrick Boettcher2-6/+3
This patch fixes printk-related checkpatch warnings. All printks have been converted to pr_warn or pr_info or pr_err. Signed-off-by: Patrick.Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] Add support for TechniSat Skystar S2Jemma Denson8-7/+1688
This patch adds support for the Technisat Skystar S2 - this has been tried before but the cx24120 driver was a bit out of shape and it didn't got any further: https://patchwork.linuxtv.org/patch/10575/ It is an old card, but currently being sold off for next to nothing, so it's proving quite popular of late. Noticing it's quite similar to the cx24116 and cx24117 I've rewritten the driver in a similar way. There were a few registers and commands from those drivers missing from this one I've tested out and found they do something so they've been added in to speed up tuning and to make get_frontend return something useful. Signed-off-by: Jemma Denson <[email protected]> Signed-off-by: Patrick.Boettcher <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] DocBook/media: fix syntax errorHans Verkuil1-1/+3
Missing varlistentry tags. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] DocBook/media: improve timestamp documentationHans Verkuil1-1/+4
Explain which clock was used to make the timestamp. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] DocBook/media: remove spurious spaceHans Verkuil1-1/+1
Looks ugly, a space before a period at the end of a sentence. Remove it. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rcar-vin: use monotonic timestampsHans Verkuil1-1/+1
Even though the rcar-vin driver tells userspace that it will give a monotonic timestamp, it is actually using gettimeofday. Replace this with a proper monotonic timestamp. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Laurent Pinchart <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] sta2x11: use monotonic timestampHans Verkuil1-1/+2
V4L2 drivers should use MONOTONIC timestamps instead of gettimeofday, which is affected by daylight savings time. Signed-off-by: Hans Verkuil <[email protected]> Acked-by: Federico Vaga <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] v4l2-dv-timings: fix overflow in gtf timings calculationPrashant Laddha1-10/+18
The intermediate calculation in the expression for hblank can exceed 32 bit signed range. This overflow can lead to negative values for hblank. Typecasting intermediate variable to higher precision. Cc: Martin Bugge <[email protected]> Signed-off-by: Prashant Laddha <[email protected]> [[email protected]: made the denominator u32, since that's what div_u64 expects] Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] media/vivid: Code cleanoutRicardo Ribalda1-3/+1
Remove code duplication by merging two cases in a switch. Signed-off-by: Ricardo Ribalda Delgado <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] media/vivid: Add support for Y16 formatRicardo Ribalda2-1/+16
Support for V4L2_PIX_FMT_Y16, a 16 bit greyscale format. Signed-off-by: Ricardo Ribalda Delgado <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl28xxu: load SDR module for fc2580 based devicesAntti Palosaari1-0/+2
Load rtl2832_sdr driver for devices having fc2580 tuner. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl2832_sdr: add support for fc2580 tunerAntti Palosaari2-19/+92
Add initial support for fc2580 tuner based devices. Tuner is controlled via V4L2 subdevice API. Passes v4l2-compliance tests. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: implement V4L2 subdevice for SDR controlAntti Palosaari3-29/+249
Implement V4L2 subdevice for bandwidth and frequency controls of SDR usage. That driver now implements both DVB frontend and V4L2 subdevice. Driver itself is I2C driver. Lets see how it works. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: calculate filter control word dynamicallyAntti Palosaari2-9/+8
Calculate low-pass filter control word dynamically from given radio channel bandwidth. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl28xxu: set correct FC2580 tuner for RTL2832 demodAntti Palosaari1-2/+6
rtl2832 demod driver has support for FC2580 tuner config, no need to abuse FC0012 settings anymore. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl2832: add inittab for FC2580 tunerAntti Palosaari3-0/+29
Add reg/val inittab for FC2580 tuner. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] tua9001: use div_u64() for frequency calculationAntti Palosaari2-8/+2
Use div_u64() to simplify and remove home made divides. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] tua9001: use regmap for I2C register accessAntti Palosaari3-29/+15
Use regmap for I2C register access. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] tua9001: various minor changesAntti Palosaari4-94/+83
Fix logging. Style issues. Rename things. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] tua9001: remove media attachAntti Palosaari2-104/+4
We are using I2C client binding now, so remove old media attach. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl28xxu: bind tua9001 using I2C bindingAntti Palosaari1-8/+19
Change tua9001 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] af9035: bind tua9001 using I2C bindingAntti Palosaari1-9/+17
Change tua9001 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] tua9001: add I2C bindingsAntti Palosaari3-3/+114
Add I2C bindings. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] af9035: fix device order in ID listAntti Palosaari1-3/+5
Driver supports multiple chipset versions. Devices are ordered to ID table per used chipset type. "ITE 9303 Generic" device uses IT9303 chipset and was added mistakenly between IT9135 IDs. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: use regmap for register I2C accessAntti Palosaari3-155/+66
Replace home made register access routines with regmap. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: cleanups and variable renamesAntti Palosaari2-98/+76
Rename driver state from priv to dev. Remove legacy i2c-gate control. Use I2C client for proper dev_() logging. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: improve set params logicAntti Palosaari2-99/+88
Calculate PLL dividers slightly differently, most likely it is now correct. Move some register values to innitab. Use jiffies to poll filter lock. Fix logging. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: remove obsolete media attachAntti Palosaari2-98/+0
All users are using driver via I2C client binding so lets remove unneeded media binding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] af9035: bind fc2580 using I2C bindingAntti Palosaari1-8/+13
Change fc2580 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] rtl28xxu: bind fc2580 using I2C bindingAntti Palosaari1-9/+20
Change fc2580 driver from media binding to I2C client binding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-18[media] fc2580: implement I2C client bindingsAntti Palosaari3-10/+110
Add I2C client bindings to driver. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] dib0700: avoid the risk of forgetting to add the adapter's sizeMauro Carvalho Chehab1-82/+35
For every frontend entry, we need to add the adapter's size. There are already two patches fixing it. So, it doesn't seem trivial to keep it there at the right place. Also, currently, the indentation is wrong on all places. So, it seems that keeping it right is not too trivial. Better to use a macro that would do it for us, at least while this is not converted to dvb-usb-v2. Compile-tested only. Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] saa7164: use an MSI interrupt when availableBrendan McGrath2-7/+60
Enhances driver to use an MSI interrupt when available. Adds the module option 'enable_msi' (type bool) which by default is enabled. Can be set to 'N' to disable. Fixes (or can reduce the occurrence of) a crash which is most commonly reported when both digital tuners of the saa7164 chip is in use. A reported example can be found here: http://permalink.gmane.org/gmane.linux.drivers.video-input-infrastructure/83948 Reviewed-by: Steven Toth <[email protected]> Signed-off-by: Brendan McGrath <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] dvb: Document FE_SCALE_DECIBEL units consistentlyDavid Howells2-4/+4
In comments and in the documentation, the units of properties marked with the FE_SCALE_DECIBEL scale are specified in terms of 1/1000 dB or 0.0001 dB. This is inconsistent, however, as 1/1000 is 0.001, not 0.0001. Note that the v4l-utils divide the value by 1000 for the signal strength suggesting that the 1/1000 is correct. Settle on millidecibels, ie. 1/1000dB or 0.001dB. Signed-off-by: David Howells <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] fc0013: remove unneeded testLaurent Navet1-2/+0
The same code is executed if ret is true or false, so this test can be removed. Fix Coverity CID 1268782. Signed-off-by: Laurent Navet <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: nuvoton-cir: Add support for writing wakeup samples via sysfs ↵Antti Seppälä3-0/+129
filter callback Nuvoton-cir utilizes the encoding capabilities of rc-core to convert scancodes from user space to pulse/space format understood by the underlying hardware. Converted samples are then written to the wakeup fifo along with other necessary configuration to enable wake up functionality. Signed-off-by: Antti Seppälä <[email protected]> Signed-off-by: James Hogan <[email protected]> Cc: Jarod Wilson <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: rc-loopback: Add loopback of filter scancodesJames Hogan1-0/+36
Add the s_wakeup_filter callback to the rc-loopback driver, which instead of setting the filter just feeds the scancode back through the input device so that it can be verified. Signed-off-by: James Hogan <[email protected]> Signed-off-by: Antti Seppälä <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: rc-core: Add support for encode_wakeup driversJames Hogan4-1/+27
Add support in rc-core for drivers which implement the wakeup scancode filter by encoding the scancode using the raw IR encoders. This is by way of rc_dev::encode_wakeup which should be set to true to make the allowed wakeup protocols the same as the set of raw IR encoders. As well as updating the sysfs interface to know which wakeup protocols are allowed for encode_wakeup drivers, also ensure that the IR decoders/encoders are loaded when an encode_wakeup driver is registered. Signed-off-by: James Hogan <[email protected]> Signed-off-by: Antti Seppälä <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: ir-rc6-decoder: Add encode capabilityAntti Seppälä1-0/+122
Add the capability to encode RC-6 and RC-6A scancodes as raw events. The protocol is chosen based on the specified protocol mask, and whether all the required bits are set in the scancode mask, and none of the unused bits are set in the scancode data. The Manchester modulation helper is used several times with various timings so that RC-6 header preamble, the header, header trailing bit and the data itself can be modulated correctly. Signed-off-by: Antti Seppälä <[email protected]> Cc: James Hogan <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: ir-rc5-decoder: Add encode capabilityJames Hogan1-0/+116
Add the capability to encode RC-5, RC-5X and RC-5-SZ scancodes as raw events. The protocol is chosen based on the specified protocol mask, and whether all the required bits are set in the scancode mask, and none of the unused bits are set in the scancode data. For example a scancode filter with bit 16 set in both data and mask is unambiguously RC-5X. The Manchester modulation helper is used, and for RC-5X it is used twice with two sets of timings, the first with a short trailer space for the space in the middle, and the second with no leader so that it can continue the space. The encoding in RC-5-SZ first inserts a pulse and then simply utilizes the generic Manchester encoder available in rc-core. Signed-off-by: James Hogan <[email protected]> Signed-off-by: Antti Seppälä <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: rc-ir-raw: Add Manchester encoder (phase encoder) helperAntti Seppälä2-0/+118
Adding a simple Manchester encoder to rc-core. Manchester coding is used by at least RC-5 and RC-6 protocols and their variants. Signed-off-by: Antti Seppälä <[email protected]> Signed-off-by: James Hogan <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] rc: rc-ir-raw: Add scancode encoder callbackJames Hogan3-0/+42
Add a callback to raw ir handlers for encoding and modulating a scancode to a set of raw events. This could be used for transmit, or for converting a wakeup scancode filter to a form that is more suitable for raw hardware wake up filters. Signed-off-by: James Hogan <[email protected]> Signed-off-by: Antti Seppälä <[email protected]> Cc: David Härdeman <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] msi2500: cleanupsAntti Palosaari1-304/+306
Rename state to dev. Correct some indentations. Remove FSF address. Fix some style issues reported by checkpatch.pl. Correct some style issues I liked. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] msi2500: revise synthesizer calculationAntti Palosaari1-15/+34
Update synthesizer calculation to model I prefer nowadays. It is mostly just renaming some variables, but also minor functionality change how integer and fractional part are divided (using div_u64_rem()). Also, add 'schematic' of synthesizer following my current understanding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] msi001: cleanups / renamesAntti Palosaari1-94/+101
Rename state from s to dev. Rename some other things. Fix indentations. Disable driver unbind via sysfs. indentation prevent unload Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-14[media] msi001: revise synthesizer calculationAntti Palosaari1-30/+44
Update synthesizer calculation to model I prefer nowadays. It is mostly just renaming some variables, but also minor functionality change how integer and fractional part are divided (using div_u64_rem()). Also, add 'schematic' of synthesizer following my current understanding. Signed-off-by: Antti Palosaari <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-13[media] media: Fix regression in some more dib0700 based devicesThomas Reitmayr1-0/+6
Fix an oops during device initialization by correctly setting size_of_priv instead of leaving it 0. The regression was introduced by 8abe4a0a3f6d4217b16a ("[media] dib7000: export just one symbol") and only fixed for one type of dib0700 based devices in 9e334c75642b6e5bfb95 ("[media] Fix regression in some dib0700 based devices"). Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=92301 Fixes: 8abe4a0a3f6d4217b16a ("[media] dib7000: export just one symbol") Cc: [email protected] # for version 3.17+ Signed-off-by: Thomas Reitmayr <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2015-05-13[media] dw2102: resync fifo when demod locksOlli Salonen1-0/+28
If the streaming_ctrl is called to enable TS before demod has locked the TS will be empty. Copied the solution from the dvbsky driver for the TechnoTrend S2-4600 device: when the state changes from unlock to lock, call su3000_streaming_ctrl again. Signed-off-by: Olli Salonen <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>