summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [media] drxk: Add support for parallel mode and prints mpeg modeMauro Carvalho Chehab2012-01-052-6/+11
| | | | | | | | | | | | | While the driver has support for both serial and parallel mode, There's was way to select serial mode via configuration. Add a config option for that, while keeping the default in serial mode. Also, at debug mode, it will now print a message when mpeg is enabled/disabled, and showing if parallel or serial mode were selected, helping developers to double-check if the DRX-K is at the right mode. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] drxk: Improve a few debug messagesMauro Carvalho Chehab2012-01-051-3/+9
| | | | 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/+1
| | | | | | | | 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/+1
| | | | | | | 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/+13
| | | | | | | | | | | 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/+17
| | | | 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/+66
| | | | | | | | 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/+370
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Fix analog/digital set params logicMauro Carvalho Chehab2012-01-052-201/+190
| | | | | | | | | | | | 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/+48
| | | | | | 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/+16
| | | | | | 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/+150
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove setParm/getParm abstraction layerMauro Carvalho Chehab2012-01-052-960/+172
| | | | | | | 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/+14
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify mt2063_setTune logicMauro Carvalho Chehab2012-01-051-34/+3
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: simplify lockstatus logicMauro Carvalho Chehab2012-01-051-94/+43
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove several unused parametersMauro Carvalho Chehab2012-01-051-362/+2
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use linux default max functionMauro Carvalho Chehab2012-01-051-31/+3
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Don't violate the DVB APIMauro Carvalho Chehab2012-01-051-42/+9
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify device init logicMauro Carvalho Chehab2012-01-051-333/+242
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Simplify some functionsMauro Carvalho Chehab2012-01-051-138/+12
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Rewrite read/write logic at the driverMauro Carvalho Chehab2012-01-051-189/+73
| | | | 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/+1
| | | | | | | | 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/+454
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove unused data structuresMauro Carvalho Chehab2012-01-051-83/+14
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use Unix standard error handlingMauro Carvalho Chehab2012-01-051-1220/+1139
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove internal version checksMauro Carvalho Chehab2012-01-051-7/+1
| | | | 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/+0
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Re-define functions as staticMauro Carvalho Chehab2012-01-052-114/+44
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Remove most of the #if'sMauro Carvalho Chehab2012-01-052-93/+4
| | | | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] mt2063: Use standard Linux types, instead of redefining themMauro Carvalho Chehab2012-01-052-418/+406
| | | | 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/+119
| | | | 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] cx23885: Configure the MPEG encoder early to avoid jerky videoSteven Toth2012-01-041-6/+14
| | | | | | | | | | | | | Found an odd bug while implementing support for the HVR1850 that lead to jerky video during the first capture, if the encoder was not initialized early. I've modied the driver to configure the encoder early, and this avoids the issue - a reasonable workaround. Regression tested against the HVR1800 and soon to be added HVR1850 [mchehab@redhat.com: Fix this compilation issue: drivers/media/video/cx23885/cx23885-417.c:1351:2: error: too few arguments to function ‘cx23885_initialize_codec’] Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] cx23885: Ensure the MPEG encoder height is configured from the normSteven Toth2012-01-041-0/+6
| | | | | | | | Bugfix: The height was not always correctly configured if switching between different video standards. Change the encode height based on the standard. Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
* [media] cx23885: Cleanup MPEG encoder GPIO handlingSteven Toth2012-01-041-2/+10
| | | | | | | | | During initialization the prior GPIO's were not being preserved and restore correctly. Small cleanups to configure the GPIO's for the HVR1700, HVR1800 and HVR1850. Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>