summaryrefslogtreecommitdiff
path: root/linux/include/media/tuner.h
AgeCommit message (Collapse)Author
2006-02-01added support for xc3028 analogue tuner (Hauppauge HVR900, Terratec Hybrid XS)Markus Rechberger
From: Markus Rechberger <mrechberger@gmail.com> added support for xc3028 to v4l which adds support for: * Terratec Hybrid XS (analogue) * Hauppauge HVR 900 (analogue) Signed-off-by: Markus Rechberger <mrechberger@gmail.com>
2006-01-15Separate tv & radio freqs, fix cb/freq transmit order for tuners that need this.Hans Verkuil
- Moved MSP_SET_MATRIX to v4l2-common.h - Fix typos and integer overflows in tea5767.c - Split old freq field into a tv_freq and a radio_freq. Prevents that a radio tuner is initialized with a tv frequency or vice versa. - When switching to radio mode initialize the tuner with the last used radio frequency (this was already done for the TV mode). As a result of these changes the tuner module now remembers the last set radio and TV frequencies, which is what you would expect to happen. - Move out of range frequencies to the closest valid frequency as per v4l2 API spec. - Fix incorrect initial radio frequency (multiplier is 16000, not 16) - Add boundary check for out of range frequencies. - Use new flag to check if the order of the CB and freq. depends on the last set frequency. That is needed for some tuners or you can get static as a result. The flag is added for those tuners where I know that the datasheet indicates that this is necessary. - For this new check use the last set div value, not the last frequency as radio frequencies are always much higher due to the 16000 multiplier. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-12Add support for Samsung tuner TCPN 2121P30AHans Verkuil
Add support for Samsung tuner TCPN 2121P30A, used in Hauppauge PVR-500 cards. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-12Redesign tuners struct for maximum flexibilityMichael Krufky
From: Michael Krufky <mkrufky@m1k.net> - tunertype struct redefined to allow one or more tuner_params structs per tuner definition, one for each video standard. - Each tuner_params struct has an element containing an arbitrary amount of tuner_ranges. (this is needed for dvb tuners - to be handled later) - A tuner_range may be referenced by multiple tuner_params structs. There are many duplicates in here. Reusing tuner_range structs, rather than defining new ones for each tuner, will cut down on memory usage, and is preferred when possible. - tunertype struct contains an element, has_tda988x. We must set this for all tunertypes that contain a tda988x chip, and then we can remove this setting from the various card structs. - Improves tuners array memory usage efficiency. - Right now, all tuners are using the first tuner_params[] array element for analog mode. In the future, we will be merging similar tuner definitions together, such that each tuner definition will have a tuner_params struct for each available video standard. At that point, the tuner_params[] array element will be chosen based on the video standard in use. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-11Fixes some bad global variablesHans Verkuil
- debug global var is already used inside kernel, so renamed debug to tuner_debug for the tuner module Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-08i2c fixes and cleanupsMauro Carvalho Chehab
- Miscelaneous i2c cleanups and fixes to work with kernel >2.6.15 - linux/sound/pci/bt87x.c updated to kernel version. kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2006-01-02convert diagnostics over to the new v4l2-common.h macros.Hans Verkuil
- convert diagnostics over to the new v4l2-common.h macros. - deprecated tuner_debug option, the new option is debug. - renamed cx25840_debug to debug. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-01-01ioctls cleanups.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@brturbo.com.br> - Now, all internal ioctls are at v4l2-common.h - removed unused ioctl at saa6752hs.h - all debug ioctl code moved to v4l2-common.c - removed duplicated stuff from other cards Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-28Added some comments about multiple tuner support.Mauro Carvalho Chehab
- Added some comments to make clearer how to use ioctl api to handle multiple tuners at the same board. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-20update comments to indicate which tuners are supported by TUNER_THOMSON_DTT761XMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-20correct Thomson DTT 761x frequency rangesMichael Krufky
From: Michael Krufky <mkrufky@m1k.net> - corrected Thomson DTT 7611 tuner programming, based on spec sheet - renamed to Thomson DTT 761x - applies to DTT 7611 7611A 7612 7613 7613A 7614 7615 7615A (DTT 7610 is similar, but slightly different programming) - corrected frequency ranges for analog and digital modes Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-11added ntsc parameter to tuner and more standardized debugsMauro Carvalho Chehab
- debug message changed to be coherent with other modules - added ntsc parameter - parameters moved to the beginning at the file - tuner_status moved to a better position. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07kernel-sync patches.Mauro Carvalho Chehab
- kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-05tda9887 improvements: better defaults, better configurability.Hans Verkuil
- Set the tuner takeover point to 0x10 for NTSC/radio and 0x14 for PAL/SECAM. - Allow override through TDA9887_SET_CONFIG - PAL-N belongs with PAL-BG as does PAL-H. PAL-Nc belongs to PAL-M - Add SECAM-BGH - Set video freq to cVideoIF_38_90 for DK standards. - Add cTunerGainLow to radio, change deemphasis to 75 for mono. - Add ntsc module param for 'M' and 'J' (Japanese) standards. - Fix module handling for 2.4. - Now able to select all standards through pal/secam/ntsc module options Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-27Fix wrong tuner.h define for tuner 46 (it's a Panasonic, not a Microtune).Hans Verkuil
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-11-25tuner description now follows the same CodingStyle as the othersMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-08 * ../linux/Documentation/video4linux/CARDLIST.bttv:Nickolay V. Shmyrev
* ../linux/Documentation/video4linux/CARDLIST.tuner: * ../linux/drivers/media/video/bttv-cards.c: * ../linux/drivers/media/video/bttv.h: * ../linux/drivers/media/video/ir-kbd-i2c.c: * ../linux/drivers/media/video/tuner-simple.c: * ../linux/include/media/tuner.h: Support for Sabrent bt848 version. Signed-off-by: Bill Pechter <pechter@gmail.com> Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-11-02 - Added dvb support for tda8275a (Philips Tiger reference design)Hartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-10-18 * ../linux/drivers/media/video/tda8290.c: (tda8290_init):Nickolay V. Shmyrev
* ../linux/include/media/tuner.h: - Unify whitespaces. - Fix build warning. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-10-17 - add support for tda8275aHartmut Hackmann
- support all possible I2C addresses - automatic version and address detection - let i2c bridge stabilize befor use Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-10-16- Whitespace Cleanups.Mauro Carvalho Chehab
- Whitespace script improved. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-15 * ../linux/drivers/media/video/cx88/cx88-cards.c:Nickolay V. Shmyrev
* ../linux/drivers/media/video/tda9887.c: (tda9887_set_config): * ../linux/include/media/tuner.h: - New config option for tda9887 to specifically set intercarrier depending on current standard and card. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-10-05 * cx88.h, cx88-cards.c: (cx88_card_setup):Michael Krufky
- Added analog support for ATI HDTV Wonder * tuner.h, tuner-simple.c: (default_set_tv_freq): - Added support for the Philips TUV1236D tuner on the ATI HDTV Wonder Signed-off-by: Kirk Lapray <kirk.lapray@gmail.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-29 * tda8290.c: (set_audio), (set_tv_freq):Nickolay V. Shmyrev
* tuner.h: - Set IF of tda8275 according to tv norm. Signed-off-by: Nickolay V. Shmyrev <nshmyrev@yandex.ru>
2005-09-28 * tuner-simple.c:Nickolay V. Shmyrev
* tuner.h: * tveeprom.c: - update the tveeprom tuner list with the tuner list from the Hauppauge driver - connect the TCL MPE05-2 tveeprom entry to the TUNER_PHILIPS_FM1216ME_MK3 tuner. - based on this info renamed the "LG PAL (TAPE series)" tuner to "TCL 2002MB". Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2005-09-12added support for the Philips TD1316 tunerHartmut Hackmann
Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t.online.de>
2005-09-11 * bttv-cards.c:Michael Krufky
- duplicate initializer (near initialization for `bttv_tvcards[9].tuner_addr') duplicate initializer (near initialization for `bttv_tvcards[11].tuner_addr') * cx88-input.c, tuner.h, tvaudio.c, tveeprom.c: - Work around gcc-2.95.x macro expansion bug Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-30 * tuner-simple.c, tuner.h:Mauro Carvalho Chehab
- normalize whitespace and comments in tuner lists Signed-off-by: Philip Rowlands <phr@doc.ic.ac.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-20 * bttv-i2c.c:Michael Krufky
- added i2c address for lgdt330x. * tuner.h: - i2c-core.c uses hexadecimal for the i2c address, so we should stay consistent. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-19 - changed tuner_info from dev_printk to i2c_client info.Mauro Carvalho Chehab
- used do { } while(0) according with CodingStyle Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-08-17 * cx88-dvb.c: (lgdt330x_pll_set):Nickolay V. Shmyrev
* cx88-video.c: (video_release): * mt20xx.c: (microtune_init): * saa7134-video.c: (video_release): * tda8290.c: (standby), (tda8290_init): * tda9887.c: (tda9887_set_tvnorm), (tda9887_configure), (tda9887_command): * tea5767.c: (set_radio_freq), (tea5767_standby), (tea5767_tuner_init): * tuner-core.c: (set_addr), (check_mode), (set_mode), (tuner_command): * tuner-simple.c: (default_tuner_init): * tuner.h: - New tuner standby API.
2005-08-04 * saa7134-card.c, saa7134.h, tuner.h, tuner-simple.c:Nickolay V. Shmyrev
- Add new Digimatrix card and LG TAPC Mini tuner for it Signed-off-by: Hermann Pitton <hermann.pitton@onlinehome.de>
2005-07-28 - tuner_addr added.Mauro Carvalho Chehab
- Added support for Acorp Y878F card. - some spaces used for identation replaced by tabs. - Added support for tuner Ymec TVF66T5-B/DFF Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-28rename LG H062F tuner constMichael Krufky
2005-07-24 * cx88-cards.c, cx88.h, tuner-simple.c, tuner.h:Michael Krufky
- Added analog support for DViCO FusionHDTV5 Gold. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-06 * tuner-core.c,tuner.h:Mauro Carvalho Chehab
- Cleanup patch at tuner-core.c reverted. Radio is working again. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-07-05 Rename tuner structures fields. Move MD detection hack toNickolay V. Shmyrev
saa7134-cards.c
2005-07-03 * Make.config, tuner-core.c, tuner.h:Nickolay V. Shmyrev
- Finish previous cleanups
2005-07-02 * bttv-cards.c, bttv-i2c.c, cx88-i2c.c, cx88-video.c:Nickolay V. Shmyrev
* saa7134-cards.c, saa7134-core.c, saa7134-i2c.c: * tuner-core.c, tuner.h: Rename v4l2_tuner field in tun_addr structure. Cleanup tuner private calls.
2005-07-02 * Make.config:Nickolay V. Shmyrev
- Fix check for newer kernel to compile dvb modules. * tea5767.c, tuner-core.c, tuner.h, tuner-simple.c, scripts/cardlist: - Cleanup code a bit * msp3400-old.c, vbi, tda9887.h: - Remove unused files
2005-07-01 * tuner-core.c:Nickolay V. Shmyrev
- Add option to resolve secam norm in tuner. Signed-Off-By: Nickolay V. Shmyrev <nshmyrev@yandex.ru> * saa7134-cards.c, saa7134-core.c, saa7134.h: - Remove irq2_mask field from saa7134_dev structure. Collect all the bits needed in saa7134_hwinit2() instead. Signed-Off-By: Michael Tokarev <mjt@tls.msk.ru>
2005-06-30 - Fixed bugs at TEA5767 autodetection codeMauro Carvalho Chehab
- New debug code for identifying calls to set_type before I2C ok. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-06-28 * cx88-i2c.c, cx88-video.c, saa7134-i2c.c, tuner-core.c, tuner.h:Mauro Carvalho Chehab
- Improved support for multi tuners on multi boards. *tuner-core.c: - Pal M and PAL N added to tuner_fixup_std * tuner-simple.c: - Eliminated old tea code from tuner-simple. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-06-22 * bttv-driver.h:Nickolay V. Shmyrev
- use DMA_32BIT_MASK. Thanks to domen@coderock.org. * tuner.h: - Remove unneeded set_tuner from tuner structure. * saa7134-cards.c, saa7134-tvaudio.c: patch to switch external mux on mute on some cards. * tuner-simple: - unify tuner list
2005-06-21 * tuner-simple.c, tuner.h, saa7134-cards.c:Michael Krufky
* CARDLIST.tuner: - Removed tuner#64 and consolidated into tuner#61, Appropriate comments added. Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-06-21 * saa7134-cards.c, saa7134-input.c, saa7134.h:Michael Krufky
* tuner-simple.c, tuner.h: * CARDLIST.saa7134, CARDLIST.tuner: - Add new card entry: Kworld Xpert TV PVR7134 Add new tuner entry: Tena TNF9533-B/DF Thanks to Hannibal <hannibal@megapolis.pl> - Replace // with /* */ - Fix tab/spacing problems Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-06-20Documentation fixesMichael Krufky
2005-06-20 * cx88-cards.c, cx88-dvb.c, cx88-mpeg.c:Michael Krufky
* cx88-video.c, cx88.h, tuner.h: * CARDLIST.cx88: - Fix DViCO Board names as per email from DViCO Systems Software Engineer Jeff Lee: "DTT7611 model is 3Gold-T ... Temic 4042 is the 3Gold-Q model." Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-06-19Added inicial support for changing radio mode stereo/mono for tea5767Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-06-19 * tuner.h, tuner-core.c:Mauro Carvalho Chehab
- Implemented tuner-core support for VIDIO_S_TUNER - It can be used by changing mono/stereo mode