summaryrefslogtreecommitdiffstats
path: root/drivers/media/common
Commit message (Collapse)AuthorAgeFilesLines
...
* [media] drivers: media: tuners: Fix dependency for MEDIA_TUNER_TEA5761Fabio Estevam2012-01-061-1/+1
| | | | | | | | | | Fix the following build warning: warning: (MEDIA_TUNER) selects MEDIA_TUNER_TEA5761 which has unmet direct dependencies (MEDIA_SUPPORT && VIDEO_MEDIA && I2C && EXPERIMENTAL) Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: fix get_if_frequency callStefan Ringel2012-01-051-1/+1
| | | | | | [mchehab@redhat.com: patch rebased to apply] Signed-off-by: Stefan Ringel <linuxtv@stefanringel.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] Don't test for ops->info.type inside driversMauro Carvalho Chehab2012-01-051-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, ops->info.type is handled inside the dvb_frontend core, only for DVBv3 calls, and according with the delivery system. So, drivers should not care or use it, otherwise, it may have issues with DVBv5 calls. The drivers that were still using it were detected via this small temporary hack: --- a/include/linux/dvb/frontend.h +++ b/include/linux/dvb/frontend.h @@ -29,13 +29,16 @@ #include <linux/types.h> typedef enum fe_type { +#if defined(__DVB_CORE__) || !defined (__KERNEL__) FE_QPSK, FE_QAM, FE_OFDM, FE_ATSC +#else +FE_FOOO +#endif } fe_type_t; - typedef enum fe_caps { FE_IS_STUPID = 0, FE_CAN_INVERSION_AUTO = 0x1, Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Add it to the building systemMauro Carvalho Chehab2012-01-052-0/+8
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Add support for get_if_frequency()Mauro Carvalho Chehab2012-01-051-4/+4
| | | | | | get_if_frequency() is needed, in order to work with DRX-K. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: add some useful info for the dvb callback callsMauro Carvalho Chehab2012-01-051-21/+47
| | | | | | | | | The per-delivery system tables are confusing. Add an extra table that explains them, and some dprintk calls, that allows to check if mt2063 driver is working as expected. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: print the detected versionMauro Carvalho Chehab2012-01-051-2/+1Star
| | | | | | | | Instead of printing it just for debug purposes, outputs the detected version at the logs. This may be useful if someone wants to report a problem. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix i2c read messageMauro Carvalho Chehab2012-01-051-8/+16
| | | | | | | While here, improve a few debug messages that helped to track the issue and may be useful in the future. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Print a message about the detected mt2063 typeMauro Carvalho Chehab2012-01-051-4/+22
| | | | | | | This also helps to identify when a device is not initialized, if the bridge doesn't return an error for a I2C failed transfer. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: don't crash if device is not initializedMauro Carvalho Chehab2012-01-051-0/+25
| | | | | | | | | | Instead of crash, return -ENODEV, if the device is not poperly initialized. Also, give a second chance for it to initialize, at set_params calls. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove two unused temporary varsMauro Carvalho Chehab2012-01-051-4/+1Star
| | | | | | | mt2063.c:1531:12: warning: variable 'ofout' set but not used [-Wunused-but-set-variable] mt2063.c:1531:6: warning: variable 'ofin' set but not used [-Wunused-but-set-variable] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Rewrite tuning logicMauro Carvalho Chehab2012-01-051-49/+13Star
| | | | | | | | | | | Several vars at set_parms functions were set, but unused. Remove them and change the logic to return -EINVAL if the analog set_param is used for digital mode. At the analog side, cleans the logic that sets the several analog standards. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Add some debug printk'sMauro Carvalho Chehab2012-01-051-8/+68
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Convert it to the DVBv5 way for set_params()Mauro Carvalho Chehab2012-01-051-29/+17Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Properly document the author of the original driverMauro Carvalho Chehab2012-01-051-2/+4
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Rearrange the delivery system functionsMauro Carvalho Chehab2012-01-051-77/+66Star
| | | | | | | | No functional changes on this patch. Better organize the delivery system information and data types, putting everything together, to improve readability. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix commentsMauro Carvalho Chehab2012-01-051-589/+370Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix analog/digital set params logicMauro Carvalho Chehab2012-01-052-201/+190Star
| | | | | | | | | | | | The driver were using a hacky way of setting analog and digital frequencies. Remove the hack and properly add the tuner logic for each supported type of standard. I was tempted to add more standards there, like SECAM and to fix radio (as stepping seems broken), but I opted to keep it as-is, as tests would be needed to add additional standards. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: make checkpatch.pl happyMauro Carvalho Chehab2012-01-051-81/+48Star
| | | | | | Fix everything but 80 columns and two msleep warnings Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Cleanup some function prototypesMauro Carvalho Chehab2012-01-051-28/+16Star
| | | | | | No functional changes here. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Reorder the code to avoid function prototypesMauro Carvalho Chehab2012-01-051-181/+150Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove setParm/getParm abstraction layerMauro Carvalho Chehab2012-01-052-960/+172Star
| | | | | | | This layer just increases the code size for no good reason, and makes harder to debug. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Rework on the publicly-exported functionsMauro Carvalho Chehab2012-01-052-32/+14Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify mt2063_setTune logicMauro Carvalho Chehab2012-01-051-34/+3Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: simplify lockstatus logicMauro Carvalho Chehab2012-01-051-94/+43Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove several unused parametersMauro Carvalho Chehab2012-01-051-362/+2Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use linux default max functionMauro Carvalho Chehab2012-01-051-31/+3Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Don't violate the DVB APIMauro Carvalho Chehab2012-01-051-42/+9Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify device init logicMauro Carvalho Chehab2012-01-051-333/+242Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify some functionsMauro Carvalho Chehab2012-01-051-138/+12Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Rewrite read/write logic at the driverMauro Carvalho Chehab2012-01-051-189/+73Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove the code for more than one adjacent mt2063 tunersMauro Carvalho Chehab2012-01-051-327/+1Star
| | | | | | | | Such code is disabled via ifdef's. Also, they're ugly and rely on some static structures. Just remove. If ever needed, the git log can be used to recover it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use state for the state structureMauro Carvalho Chehab2012-01-051-415/+415
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Merge the two state structures into oneMauro Carvalho Chehab2012-01-051-567/+454Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove unused data structuresMauro Carvalho Chehab2012-01-051-83/+14Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use Unix standard error handlingMauro Carvalho Chehab2012-01-051-1220/+1139Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove internal version checksMauro Carvalho Chehab2012-01-051-7/+1Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Move data structures to the driverMauro Carvalho Chehab2012-01-052-527/+528
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: get rid of compilation warningsMauro Carvalho Chehab2012-01-052-22/+24
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove unused stuffMauro Carvalho Chehab2012-01-051-512/+0Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Re-define functions as staticMauro Carvalho Chehab2012-01-052-114/+44Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove most of the #if'sMauro Carvalho Chehab2012-01-052-93/+4Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use standard Linux types, instead of redefining themMauro Carvalho Chehab2012-01-052-418/+406Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix the driver to make it compileMauro Carvalho Chehab2012-01-052-9/+17
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Move code from mt2063_cfg.hMauro Carvalho Chehab2012-01-052-122/+129
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix some Coding styles at mt2063.hMauro Carvalho Chehab2012-01-051-152/+119Star
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: CodingStyle fixesMauro Carvalho Chehab2012-01-053-5191/+5373
| | | | | | convert to Unix eol, run Lindent and remove bad whitespaces Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] add driver for mt2063Mauro Carvalho Chehab2012-01-053-0/+5326
| | | | | | | | | Those files are marked as licensed with GPL, so, it is ok to merge. They came from Terratec site: http://linux.terratec.de/files/TERRATEC_H7/20110323_TERRATEC_H7_Linux.tar.gz Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] dvb: don't use DVBv3 bandwidth macrosMauro Carvalho Chehab2011-12-317-53/+12Star
| | | | | | | Every frontend now uses DVBv5 way. So, let's not use the DVBv3 macros internally anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] tuners: remove dvb_frontend_parameters from set_params()Mauro Carvalho Chehab2011-12-3116-34/+18Star
| | | | | | | | | | | This is a big patch, yet trivial: now that all tuners use the DVBv5 way to pass parameters (e. g. via fe->dtv_property_cache), the extra parameter can be removed from set_params() call. After this change, very few DVBv3 specific stuff are left at the tuners. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>