summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
AgeCommit message (Collapse)Author
2009-09-15tuner-core: add support for NXP TDA18271 without TDA829X demodMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Add support for NXP TDA18271 as a standalone tuner, allowing the use of analog demodulators other than the Philips/NXP TDA829x. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-09-17merge: http://linuxtv.org/hg/~anttip/reddo-dvb-c/Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-09-15tuner-simple: add Philips CU1216LAntti Palosaari
From: Antti Palosaari <crope@iki.fi> add Philips CU1216L NIM Priority: normal Signed-off-by: Antti Palosaari <crope@iki.fi>
2009-09-15merge: http://kernellabs.com/hg/~mkrufky/tda18271-mergeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-31ir-keymaps: Fix some trobles on a bad patchMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Due to some merge conflicts, I had to manually fix one patch. It seems that I missed to convert some fields. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-09-15merge: ~mkrufky/tda18271Michael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-09-15tda18271: fix bad data in tda18271_cid_target tableMichael Krufky
From: Henk Vergonet <Henk.Vergonet@gmail.com> Fixed one value and removed a duplicate in tda18271_cid_target[], based on table 54 "CID_Target_map" in Rev.04 of the TDA18271HD datasheet. Priority: normal Signed-off-by: Henk Vergonet <Henk.Vergonet@gmail.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-09-15tda18271: update temperature compensation calculatation formulaMichael Krufky
From: Henk Vergonet <Henk.Vergonet@gmail.com> Update the tda18271c2_rf_tracking_filters_correction function to include the modified temperature compensation calculatation formula as described in Rev.04 of the TDA18271HD datasheet. Priority: normal Signed-off-by: Henk Vergonet <Henk.Vergonet@gmail.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-09-06tda18271: fix comments and make tda18271_agc debug less verboseMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Don't display "no agc configuration provided" unless DBG_ADV is set. Fix comments in function, tda18271_agc. This config variable is not for LNA configuration -- it is for external AGC configuration. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-09-05tda18271: improve error log in function tda18271_write_regsMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Display function parameters, idx and len, in error log. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-30tda18271: ensure that configuration options are set for multiple instancesMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> For the case of multiple tuner instances, ensure that non-default configuration options are saved into the driver's state. This resolves an issue where a configuration option may not be carried into the driver if the analog side of a hybrid driver initializes before the digital side. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-30tda18271: move small_i2c assignment to the state config blockMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> minor cleanup: move small_i2c assignment to the state config block Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-29tda18271: move tda18271_sleep directly below tda18271_initMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-29tda18271: change output feature configuration to a bitmaskMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> For better readability, treat the low power standby mode configuration as an output option feature configuration, and change it to a bitmask. If left unconfigured, all features will remain enabled, just as the default configuration was before these changes were introduced. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-29common/ir: use a struct for keycode tablesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Currently, V4L uses a scancode table whose index is the scancode and the value is the keycode. While this works, it has some drawbacks: 1) It requires that the scancode to be at the range 00-7f; 2) keycodes should be masked on 7 bits in order for it to work; 3) due to the 7 bits approach, sometimes it is not possible to replace the default keyboard to another one with a different encoding rule; 4) it is different than what is done with dvb-usb approach; 5) it requires a typedef for it to work. This is not a recommended Linux CodingStyle. This patch is part of a larger series of IR changes. It basically replaces the IR_KEYTAB_TYPE tables by a structured table: struct ir_scancode { u16 scancode; u32 keycode; }; This is very close to what dvb does. So, a further integration with DVB code will be easy. While we've changed the tables, for now, the IR keycode handling is still based on the old approach. The only notable effect is the redution of about 35% of the ir-common module size: text data bss dec hex filename 6721 29208 4 35933 8c5d old/ir-common.ko 5756 18040 4 23800 5cf8 new/ir-common.ko In thesis, we could be using above u8 for scancode, reducing even more the size of the module, but defining it as u16 is more convenient, since, on dvb, each scancode has up to 16 bits, and we currently have a few troubles with rc5, as their scancodes are defined with more than 8 bits. This patch itself shouldn't be doing any functional changes. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-30em28xx: Add entry for GADMEI UTV330+ and related IR keymapMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Shine Liu <shinel@foxmail.com> [mchehab@redhat.com: Fix a few wrong IR keymaps] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-28tda18271: add new standby mode: slave tuner output / loop thru onMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Add new standby mode: TDA18271_STANDBY_LT_ON = slave tuner output loop thru on w/ xtal osc off Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-28tda18271: add debug to show which standby mode is in useMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-30merge: http://kernellabs.com/hg/~mkrufky/tda18271Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-27tda18271: allow drivers to request RF tracking filter calibration during attachMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> On certain master / slave dual tuner configurations, tuning performance improves when the RF tracking filter calibration is performed sequentially. This patch allows for the bridge driver to specify this behavior in the configuration structure at attach-time. The "cal" module option will continue to override this attach-time configuration: set cal=0 to prevent RF tracking filter calibration on startup, and set cal=1 to force it. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Reviewed-by: Steven Toth <stoth@kernellabs.com>
2009-08-26tda18271: remove excess whitespace from tda_foo printk macrosMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> remove excess spacing from the tda_foo printk macros & line things up better Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-26tda18271: simplify debug printk macrosMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Rename dprintk to tda_dprintk to be consistent with the other tda_foo macros. Move KERN_DEBUG facility level to tda_dprintk. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-08-26FM1216MK5 FM radioMauro Carvalho Chehab
From: Dmitri Belimov <d.belimov@gmail.com> Implement Philips FM1216MK5. 1. Implement get_stereo function. 2. Add correct data byte for FM radio mode Priority: normal Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29Fix compilation issues caused by typosMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> This patch should be folded with the original ones at -git. kernel-sync: Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: use KEY_CAMERA for snapshotsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> KEY_CAMERA is already used for a long time with webcam drivers to take a picture. On other media drivers, due to the lack of a snapshot button, random KEY codes were sent, being KEY_SHUFFLE the most used one, probably due to cut-and-paste from other remotes, since one of them uses the same key for snapshot and shuffle. The better is to use KEY_CAMERA on all drivers solving this issue. This follows the IR standard map as defined at: http://linuxtv.org/wiki/index.php/Remote_Controllers Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: Fix IR mappings for channel and volume +/- keysMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Use standard definitions for channel controls, as defined at: http://linuxtv.org/wiki/index.php/Remote_Controllers While here, fix a few broken up/down/left/right mappings Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: standardize timeshift keyMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Each remote were using a different keycode for timeshift. Use the same keycode for all of them, using the map as defined at: http://linuxtv.org/wiki/index.php/Remote_Controllers Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: Replace most KEY_[A-Z] to the proper definitionsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> There are several IR's that were using IR to type a letter that it is known by some random application. Instead, the better is to use the standard definitions found at: http://linuxtv.org/wiki/index.php/Remote_Controllers And, if needed, submit a patch for the application to understand the media keys. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: add a link to the IR standard layout pageMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> While we're still discussing it, let's point to the wiki page. In the future, this should be added at V4L2 API spec DocBooks. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-29ir-keymaps: replace KEY_KP[0-9] to KEY_[0-9]Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> This is needed to match the standard mapping defined at: http://linuxtv.org/wiki/index.php/Remote_Controllers#Remote_Controllers Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-27Fix a number of EXPORT_SYMBOL warningsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Make Checkpatch tool happy: -:2349: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable On all cases, it were just a blank line at the wrong place. Yet, fixing it is trivial Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-27Properly indent comments with tabsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-27CodingStyle: Use [0x0f] instead of [ 0x0f ]Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-27Use C99 comment CodingStyleMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> The ir-keymaps.c has frequent additions. As people tend to copy an old keyboard entry, a bad CodingStyle at an ancient entry may result on a freshly bad CodingStyle patch. So, better to fix the CodingStyle for the entire file. This patch is the first of a series of patches fixing it, generated by some perl magic plus manual handling. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-14Add support for Compro VideoMate S350 DVB-S PCI card.Igor M. Liplianin
From: Igor M. Liplianin <liplianin@me.by> Add Compro VideoMate S350 DVB-S driver. The card uses zl10313, zl10039, saa7130 integrated circuits. Signed-off-by: Igor M. Liplianin <liplianin@me.by>
2009-08-11merge: http://www.kernellabs.com/hg/~dheitmueller/ttxs-remote/Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-03em28xx: add support for Terratec Cinergy Hybrid T USB XS remote controlDevin Heitmueller
From: Devin Heitmueller <dheitmueller@linuxtv.org> Add support for the remote control that comes with the Cinergy Hybrid T USB XS Thanks to Jelle de Jong for providing sample hardware to test with. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Cc: Jelle de Jong <jelledejong@powercraft.nl>
2009-08-03cx88: Disable xc3028 power management for Geniatech x8000Devin Heitmueller
From: Devin Heitmueller <dheitmueller@kernellabs.com> A user discovered that the Geniatech x8000 encountered a regression when the xc3028 power management was introduced. The xc3028 never recovers after setting the powerdown register, which is probably because the xc3028 reset GPIO is not properly configured. Since I do not have access to the hardware and thus cannot determine the correct GPIO configuration, just disable xc3028 power management on this board, which fixes the regression. Thanks to user "ritec" for reporting the issue and testing the fix. Priority: high Cc: rictec <rictec@netcabo.pt> Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-06-18zl10353 and qt1010: fix stack corruption bugMauro Carvalho Chehab
From: Jan Nikitenko <jan.nikitenko@gmail.com> Fixes stack corruption bug present in dump_regs function of zl10353 and qt1010 drivers: the buffer buf was one byte smaller than required - there are 4 chars for address prefix, 16 * 3 chars for dump of 16 eeprom bytes per line and 1 byte for zero ending the string required, i.e. 53 bytes, but only 52 were provided. The one byte missing in stack based buffer buf can cause stack corruption possibly leading to kernel oops, as discovered originally with af9015 driver (af9015: fix stack corruption bug). Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-07-22tuner-simple: Add an entry for the Partsnic PTI-5NF05 NTSC tunerAndy Walls
From: Andy Walls <awalls@radix.net> Priority: normal Signed-off-by: Andy Walls <awalls@radix.net>
2009-07-05backport commit 4327b77ed7e73336069c441f91df58a251c77975Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> kernel-sync: Author: Samuel Ortiz <sameo@linux.intel.com> Date: Wed May 27 00:49:33 2009 +0200 firmware: tuners/xc2028: prepare for FIRMWARE_NAME_MAX removal We're going to remove the FIRMWARE_NAME_MAX definition in order to avoid any firmware name length restriction. This patch gets rid of the xc2028 FIRMWARE_NAME_MAX reference. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-11tuner-xc2028: Fix 7 MHz DVB-TMauro Carvalho Chehab
From: Andy Walls <awalls@radix.net> The following patch should fix 7 MHz DVB-T with the XC3028 using the DTV7 firmware from the xc3028-v27.fw firmware image. Signed-off-by: Andy Walls <awalls@radix.net> Tested-by: Terry Wu <terrywu2009@gmail.com> [mchehab@redhat.com: thanks to John Ferlito, we have a real test in Australia] Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-20em28xx: add Remote control support for EVGA inDtubeDevin Heitmueller
From: Devin Heitmueller <dheitmueller@kernellabs.com> Add an IR profile for the EVGA inDtube remote control (which is an NEC type remote) Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-05-25Change order for FM tuneMauro Carvalho Chehab
From: Dmitri Belimov <d.belimov@gmail.com> Change order data of buffer in FM simple_tune function. It is usefull for: 1. Set data of tuner with CP bit UP. 0xCE for MK5 or 0xC6 for MK3 2. When call simple_fm_tune, read this byte from config and overwrite this byte in function simple_radio_bandswitch for set CP bit to OFF. Of course it can be usefull for other tuner for overwrite default settings of FM. Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-07tuner-simple, tveeprom: Add Philips FQ1216LME MK3 analog tunerMauro Carvalho Chehab
From: Andy Walls <awalls@radix.net> Priority: normal Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-06tuner-xc2028: cleanup: better use tuner typpe definesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-03tuner-xc2028: Improve comments, based on Andy Walls and Hermann PittonMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> feedback CC: Andy Walls <awalls@radix.net> CC: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-01tuner-xc3028: fix frequency offsetMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> The last changeset has an else missing, causing wrong frequencies for DTV6. Thanks to Terry Wu <terrywu2009@gmail.com> for pointing the issue. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-01tuner-xc2028: Fix offset frequencies for DVB @ 6MHzMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Both ATSC and DVB @ 6MHz bandwidth require the same offset. While we're fixing it, let's cleanup the bandwidth setup to better reflect the fact that it is a function of the bandwidth. Thanks to Terry Wu <terrywu2009@gmail.com> for pointing this issue and to Andy Walls <awalls@radix.net> for an initial patch for this fix. Priority: normal CC: Terry Wu <terrywu2009@gmail.com> CC: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-06-01Fix firmware load for DVB-T @ 6MHzMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> bandwidth for xc3028/xc3028L The only two countries that are known to use 6MHz bandwidth are Taiwan and Uruguay. Both use QAM subcarriers at OFTM. This patch fixes the firmware load for such countries, where the required firmware is the QAM one. This also confirms the previous tests where it was noticed that the 6MHz QAM firmware doesn't work for cable. So, this patch also removes support for DVB-C, instead of just printing a warning. Thanks to Terry Wu <terrywu2009@gmail.com> for pointing this issue and to Andy Walls <awalls@radix.net> for an initial patch for this fix. Priority: normal CC: Terry Wu <terrywu2009@gmail.com> CC: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>