summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c
AgeCommit message (Collapse)Author
2007-06-24or51211: remove hardcoded fcv1236d tuner programmingMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - Remove hardcoded fcv1236d tuner programmming from or51211.c - Alter dvb-bt8xx for the pcHDTV-2000 to use dvb-pll for fcv1236d support. Thanks to Jarom Hatch <jshatch@gmail.com> for testing this change. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Cc: Jarom Hatch <jshatch@gmail.com>
2007-06-12dvb: Remove static dependencies on dvb-pllMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch removes all static dependencies on the dvb-pll module. All exported dvb_pll_desc's have been UNexported, and the caller will reference the individual dvb_pll_desc by it's index in the pll_list array. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Acked-by: Oliver Endriss <o.endriss@gmx.de> Acked-by: Manu Abraham <manu@linuxtv.org>
2007-02-27dvb: Remove lgh06xf driverTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The code of the dvb-pll driver and the lgh06xf driver is nearly identical. The main difference is that the lgh06xf driver would set the AGC TOP value on every tune call. The dvb-pll driver now has the ability to set the AGC TOP when the front-end device is opened, which is a better way to go about it. By using this ability of dvb-pll, the lgh06xf driver is made unnecessary. There is one other difference. dvb-pll will probe for the presence of an I2C pll chip by doing a one byte read, the lgh06xf driver did not do this. In some devices the PLL is not reachable over I2C at the timer the tuner is attached. Some more initialization, such as firmware loading, must take place first. None of the devices using a LG-H06xF should have this problem. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Acked-by: Michael Krufky <mkrufky@linuxtv.org>
2007-02-07CodingStyle cleanupsMauro Carvalho Chehab
From: Ahmed S. Darwish <darwish.07@gmail.com> After commited at the tree, Ahmed re-sent his patch with some codingstyle cleanups. This diff-patch will be folded with the first one at -git. Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-06DVB: Use ARRAY_SIZE macro when appropriateMauro Carvalho Chehab
From: Ahmed S. Darwish <darwish.07@gmail.com> Use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-13getting rid of all casts of k[cmz]alloc() callsMauro Carvalho Chehab
From: "Robert P. J. Day" <rpjday@mindspring.com> Run this: ============== cut here ============== for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do echo "De-casting $f..." perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f done And then go through and reinstate those cases where code is casting pointers to non-pointers. And then drop a few hunks which conflicted with outstanding work. kernel-sync: Signed-off-by: Andrew Morton <akpm@osdl.org> CC: v4l-dvb maintainer list <v4l-dvb-maintainer@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-11-19create new lgh06xf atsc tuner moduleMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch creates a new atsc tuner module for the LG TDVS-H06xF ATSC tuners, called lgh06xf. The purpose of this change is to reduce some duplicated code, and to allow the lgh06xf tuner code to take advantage of dvb_attach(). As a side effect, the dependency of dvb-bt8xx on dvb-pll has been removed, since the lgh06xf module itself will use dvb-pll, while remaining optional for the dvb-bt8xx driver through the use of DVB_FE_CUSTOMISE Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-10-09Bt8xx/dvb-bt8xx.c: check kmalloc() return value.Mauro Carvalho Chehab
From: Amit Choudhary <amit2030@gmail.com> Check the return value of kmalloc() in function frontend_init(), in file drivers/media/dvb/bt8xx/dvb-bt8xx.c. Signed-off-by: Amit Choudhary <amit2030@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-05Fix Circular dependenciesManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-07-29Fix dst_ca attachAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Move the call to dst_attach into the dst_attach function to eliminate problems caused with dvb_attach. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Ack 'ed by: Manu Abraham <manu@linuxtv.org>
2006-07-28Refactor dvb_detach calls into a single dvb_frontend_detach function.Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Remove buggy dvb_detach() macro and replace with unified dvb_frontend_detach() call. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-28Convert DVB devices to use dvb_attach()Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-05-24Include at V4L/DVB tree some changes from kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> __devinit were introduced for the device init functions kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-14Change dvb_frontend_ops to be a real field instead of a pointer field inside ↵Patrick Boettcher
dvb_frontend From: Patrick Boettcher <pb@linuxtv.org> The dvb_frontend_ops is a pointer inside dvb_frontend. That's why every demod-driver is having a field of dvb_frontend_ops in its private-state-struct and using the reference for filling the pointer-field in dvb_frontend. - It saves at least two lines of code per demod-driver, - reduces object size (one less dereference per frontend_ops-access), - be coherent with dvb_tuner_ops, - makes it a little bit easier for newbies to understand how it works and - avoids stupid mistakes because you would have to copy the dvb_frontend_ops always, before you could assign the static pointer directly, which was dangerous. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-04-19Convert calls from _pllbuf() to _calc_reg()Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Johannes Stezenbach suggested this change - definite improvement. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-18Convert bt8xx to refactored tuner codeAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Rename pll calls to appropriate tuner calls. Remove pll functions from demod structures. Hook tuner call into tuner_ops. Attach dvb-pll where possible. Add pll gate control calls where appropriate. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-18dvb-bt8xx: use fe_lgh06xf.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - removed duplicated tuning code for LG TDVS H064F Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-04-11dvb-bt8xx: add support for DViCO FusionHDTV DVB-T Lite 2nd revisionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch adds support for the new revision of the DViCO FusionHDTV DVB-T Lite, based on the zl10353 demod instead of mt352. Both mt352 and zl10353 revisions of this card have the same PCI subsystem ID. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Chris Pascoe <c.pascoe@itee.uq.edu.au> Ack'd-by: Manu Abraham <manu@linuxtv.org>
2006-04-10Add sysfs device links to dvb devicesAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Currently in /sys/class/dvb/dvbX.demuxY/ we have: dev uevent With the patch, we have (for a PCI DVB device): dev device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:03:0d.0 uevent So userspace tools can (finally) work out which physical device a DVB adapter refers to. Previously you had to kinda look through dmesg and hope that it hadn't been dumped out of the buffer. This makes debugging a lot easier if the system has been up for a long time! This is done by adding an extra 'struct device *' parameter to dvb_register_adapter(). It will work with any kind of standard linux 'device'. Additionally, if someone has an embedded system which does things differently, they can simply supply 'NULL' and the behaviour will be as before - the link will simply not appear. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Ack'd-by: Manu Abraham <manu@linuxtv.org> Acked-by: Michael Krufky <mkrufky@linuxtv.org>
2006-02-26cx88: reduce excessive loggingMichael Krufky
From: Ian Pickworth <ian@pickworth.me.uk> - fix temporary debug code by changing printk to dprintk at level 1. - move CORE_IOCTL messages from level 1 to level 2. - this should help with selective debugging, while not filling people's logs up during normal use. Signed-off-by: Ian Pickworth <ian@pickworth.me.uk> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-02-26do a RESYNC for all cardsManu Abraham
From: Manu Abraham <manu@linuxtv.org> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-02-26fix broken IF-OUT Relay handlingManu Abraham
Thanks to Edgar Toernig Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-02-06sem2mutex: drivers/media/, #2Mauro Carvalho Chehab
Semaphore to mutex conversion. The conversion was generated via scripts, and the result was validated automatically via a script as well. Kernel-sync from patch 3318b Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-02-06Sync patches to kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> dvb_bt8xx_remove return code changed to zero to avoid warning tvp5150_read doesn't need to be inline Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-15From: Russell King <rmk@arm.linux.org.uk>Mauro Carvalho Chehab
Add bttv sub bus_type probe and remove methods Add bttv sub bus_type probe and remove methods kernel-sync Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-11From: Panagiotis Issaris <takis@issaris.org>Mauro Carvalho Chehab
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2005-12-20Remove #ifdef BTTV_BOARD_TWINHAN_VP3021Michael Krufky
As far back as the video4linux cvs repository goes, there is no mention of BTTV_TWINHAN_VP3021. It seems that this was done for the sake of backwards compatability with some older v4l, but this can no longer be necessary due to the v4l/dvb cvs merger, nor should this have ever existed in the upstream kernel. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Acked-by: Manu Abraham <manu@linuxtv.org>
2005-12-20Removed some unneeded #ifdef'sMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-11-26Whitespaces cleanups.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-23From: Stuart Auchterlonie <stuarta@squashedfrog.net>Johannes Stezenbach
Nebula nxt6000 requires fe reset. Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
2005-10-01Add compat.h for backwards compatabilityMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2005-10-01Adapt to changes in video4linux cvs:Michael Krufky
rename BTTV_FOO --> BTTV_BOARD_FOO Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2005-09-19Fix charge pump setting in microtune_mt7202dtf_pll_set().Johannes Stezenbach
Thanks to Jyrki Niskala for reporting. Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
2005-09-11FusionHDTV5 Lite:Michael Krufky
- ignore FBUS & FDSR errors - add resync Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-10Added support for DViCO FusionHDTV5 Lite.Michael Krufky
This is the first card to use dvb-pll in dvb-bt8xx. IMHO, it would be a good idea to convert the other tuners in this manner, after some testing, of course. This is exactly the same as the patch that I previously posted to the linux-dvb list, using the same DT3303 serial TS transfer setting as cx88-based FusionHDTV5 Gold. The only difference is gpio_mode. Thank you Doug Stevens, for pointing out the correct gpio value. Signed-off-by: Michael Krufky <mkrufky@m1k.net> Signed-off-by: Doug Stevens <ddstevens@gmail.com>
2005-08-31From: Stuart Auchterlonie <stuarta@squashedfrog.net>Johannes Stezenbach
Fix bug in Nebula DigiTV frontend detection for nxt6000. Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
2005-08-03repair case label indentationJohannes Stezenbach
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
2005-08-03From: David Johnson <dj@david-web.co.uk>Johannes Stezenbach
Add support for Nebula DigiTV PCI cards with the MT352 frontend. Signed-off-by: David Johnson <dj@david-web.co.uk>
2005-08-03From: David Johnson <dj@david-web.co.uk>Johannes Stezenbach
Indentation fixes and remove unnecessary braces. Signed-off-by: David Johnson <dj@david-web.co.uk>
2005-04-23Fixed the NULL frontend registration bug, Patch by Steffen MotzerManu Abraham
2005-04-04Compilation fix after twinhan-exp branch mergeManu Abraham
2005-04-04Merged the twinhan-exp branch to the trunkManu Abraham
2005-03-19 - follow dvb_register_adapter changes in dvbdev.[ch]Kenneth Aafloy
2005-03-19 - Fix copy/paste bug for mt352 frontend in dvb-bt8xxKenneth Aafloy
2005-03-10 - remove bttv dependency from frontendKenneth Aafloy
2005-03-02whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)Johannes Stezenbach
2005-02-17DVB support for the pcHDTV HD2000 cardJohannes Stezenbach
submitted by Rusty Scott
2005-01-06patch by Arne Ahrend: minor cleanups (make stuff static etc.)Johannes Stezenbach
2005-01-06Patch from Peter Hettkamp, Adam Szalkowski to add support for pinnacleAndrew de Quincy
pctv-sat
2004-11-14Fixed demod i2c addressAndrew de Quincy