summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/bt8xx/bt878.c
AgeCommit message (Collapse)Author
2008-01-21 bt878: remove handcrafted PCI subsystem ID checkMauro Carvalho Chehab
From: Akinobu Mita <akinobu.mita@gmail.com> This patch moves the subsystem ID and subsystem vendor ID check from probing function to the PCI generic function by describing subsystem IDs in pci_device_id table. This enables to add new PCI IDs to a device driver pci_ids table at runtime by new_id file in sysfs pci driver tree. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-19 bt878: include KERN_ facility levelMauro Carvalho Chehab
From: Akinobu Mita <akinobu.mita@gmail.com> printk should use KERN_* levels. CC: Manu Abraham <manu@linuxtv.org> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-02backport changeset 3a4fa0a25da81600ea0bcd75692ae8ca6050d165Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: Author: Robert P. J. Day <rpjday@mindspring.com> Date: Fri Oct 19 23:10:43 2007 +0200 Fix misspellings of "system", "controller", "interrupt" and "necessary". Fix the various misspellings of "system", controller", "interrupt" and "[un]necessary". Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-08-21Cleanup: remove linux/moduleparam.h from drivers/media filesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Since at least kernel 2.6.12-rc2, module.h includes moduleparm.h. This patch removes all occurences of moduleparm.h from drivers/media files. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-04-14Bt878: prevent probing wrong card entryMauro Carvalho Chehab
From: Akinobu Mita <akinobu.mita@gmail.com> I got strange message when I did modprobe bt878: bt878_probe: card id=[0x0],[ <NULL> ] has DVB functions. The card_list array is terminated by sentinel entry. But this list is traversed by: for (i = 0, dvb_cards = card_list; i < ARRAY_SIZE(card_list); i++, dvb_cards++) { ... } in bt878_probe(). So this loop checks dummy sentinel entry, too. This patch removes unnecessary sentinel entry. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-01-07bt8xx: add support for Ultraview DVB-T LiteMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Ultraview DVB-T Lite is a clone of DViCO FusionHDTV DVB-T Lite Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-10-21IRQ: Maintain regs pointer globally rather than passing to IRQ handlersMauro Carvalho Chehab
Kernel-sync: This patch is required to allow compilation of the tree with kernel 2.6.19. This is the original description of the original patch, signed by David Howells <dhowells@redhat.com>: Maintain a per-CPU global "struct pt_regs *" variable which can be used instead of passing regs around manually through all ~1800 interrupt handlers in the Linux kernel. The regs pointer is used in few places, but it potentially costs both stack space and code to pass it around. On the FRV arch, removing the regs parameter from all the genirq function results in a 20% speed up of the IRQ exit path (ie: from leaving timer_interrupt() to leaving do_IRQ()). Where appropriate, an arch may override the generic storage facility and do something different with the variable. On FRV, for instance, the address is maintained in GR28 at all times inside the kernel as part of general exception handling. Having looked over the code, it appears that the parameter may be handed down through up to twenty or so layers of functions. Consider a USB character device attached to a USB hub, attached to a USB controller that posts its interrupts through a cascaded auxiliary interrupt controller. A character device driver may want to pass regs to the sysrq handler through the input layer which adds another few layers of parameter passing. I've build this code with allyesconfig for x86_64 and i386. I've runtested the main part of the code on FRV and i386, though I can't test most of the drivers. I've also done partial conversion for powerpc and MIPS - these at least compile with minimal configurations. This will affect all archs. Mostly the changes should be relatively easy. Take do_IRQ(), store the regs pointer at the beginning, saving the old one: struct pt_regs *old_regs = set_irq_regs(regs); And put the old one back at the end: set_irq_regs(old_regs); Don't pass regs through to generic_handle_irq() or __do_IRQ(). In timer_interrupt(), this sort of change will be necessary: - update_process_times(user_mode(regs)); - profile_tick(CPU_PROFILING, regs); + update_process_times(user_mode(get_irq_regs())); + profile_tick(CPU_PROFILING); I'd like to move update_process_times()'s use of get_irq_regs() into itself, except that i386, alone of the archs, uses something other than user_mode(). Some notes on the interrupt handling in the drivers: (*) input_dev() is now gone entirely. The regs pointer is no longer stored in the input_dev struct. (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking. It does something different depending on whether it's been supplied with a regs pointer or not. (*) Various IRQ handler function pointers have been moved to type irq_handler_t. Signed-Off-By: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-19[PATCH] irq-flags: media: Use the new IRQF_ constantsMauro Carvalho Chehab
From: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: "David S. Miller" <davem@davemloft.net> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-22Add support for the DNTV Live! mini DVB-T card.Manu Abraham
From: Cameron Hutchinson <camh@xdna.net> Signed-off-by: Cameron Hutchinson <camh@xdna.net>
2006-06-22Static variables mustn't be EXPORT_SYMBOL 'edManu Abraham
From: Adrian Bunk <bunk@stusta.de> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-06-21Bug-fix: Do not overflow kernel memory when more than BT878_MAX devices are ↵Manu Abraham
present From: Sigmund Augdal Helberg <sigmund@snap.tv> Signed-off-by: Sigmund Augdal Helberg <sigmund@snap.tv> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-02-09make a struct staticManu Abraham
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-02bugfix [5895], return an error valueManu Abraham
From: Juampe <juampe@iquis.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-02-02fix [Bug 5895], with DVB drivers enabled snd_87x (ALSA) don't detect.root@Orbit01.auh.itecno.com
From: Manu Abraham <manu@linuxtv.org> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2006-01-12removed uneeded init on structs like static int foo=0Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - static vars are equal to zero by default. Removed unnecessary =0 from them, saving some data space; - Fixed compiling against kernels bellow 2.6.13. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2005-07-24Endianness fix for risc DMA start address setting.Johannes Stezenbach
(reported by Stefan Haubenthal/Peter Hettkamp) Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
2005-07-17update email address of Peter HettkampJohannes Stezenbach
2005-04-23patch by Dominique Dumont: fix MODULE_PARM_DESC for debug and verbose parmJohannes Stezenbach
2005-04-04Merged the twinhan-exp branch to the trunkManu Abraham
2005-03-13From : http://kerneljanitors.org/TODOJohannes Stezenbach
- convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas@ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org>
2005-03-12a few more whitespace cleanupsJohannes Stezenbach
2005-02-12patch by Adrian Bunk:Johannes Stezenbach
This patch contains the following possible cleanups: - make needlessly global code static - remove the following EXPORT_SYMBOL'ed but unused function: - bt8xx/bt878.c: bt878_find_by_i2c_adap - remove the following unused global functions: - dvb-core/dvb_demux.c: dmx_get_demuxes - dvb-core/dvb_demux.c: dvb_set_crc32 - remove the following unneeded EXPORT_SYMBOL's: - dvb-core/dvb_demux.c: dvb_dmx_swfilter_packet - dvb-core/dvb_demux.c: dvbdmx_connect_frontend - dvb-core/dvb_demux.c: dvbdmx_disconnect_frontend - dvb-core/dvbdev.c: dvb_class Signed-off-by: Adrian Bunk <bunk@stusta.de>
2004-11-08- make needlessly global code staticMichael Hunold
- whitespace and newline cleanups Thanks to Adrian Bunk <bunk@stusta.de>
2004-10-28Imported FE_REFACTORING to HEADAndrew de Quincy
2004-09-26patch by Barry Scott: decimal vs. hex coding errorJohannes Stezenbach
2004-09-18More stuff backfeeded from mailine:Michael Hunold
- shiffe pci_enable_device() and pci_disable_device() around
2004-08-24- feed back from 2.6.8.1: use cpu_to_le32() at various placesMichael Hunold
2004-08-18- forgot to remove all occurences of "#include "dvb_functions.h" which is ↵Michael Hunold
included just everywhere - remove dvb_i2c.[ch], it's not needed anymore - rename dvb_register_frontend_new() to dvb_register_frontend() -
2004-08-18- convert dvb bt8xx driver to sub-bttv driver architecture, thanks to ↵Michael Hunold
Kenneth Aafloy
2004-08-08patch by Martin Binder: #include <linux/moduleparam.h> where necessaryJohannes Stezenbach
to make it compile with the SuSE 9.1 kernel
2004-07-30 - More MODULE_PARM -> module_param changes, all should be corrected now.Kenneth Aafloy
- Remove unused av7110 DEBUG_VARIABLE.
2004-06-11Wolfram Joost's Patches for the AVerMedia DVB-T 771Holger Waechtler
2004-05-03- remove 2.4 compat code, expect for ttusb_dec.cMichael Hunold
(Alex, do you take care of that one?)
2004-03-11- fix include file to make it build with build-2.4 and build-2.6Michael Hunold
- this is broken for the "makelinks" approach -- do we need makelinks any more?
2003-11-18patch by Wolfgang Thiel: gcc-2.95 compile fixes,Johannes Stezenbach
load skystar2 driver from insmod.sh script
2003-10-28- reworked i2c / gpio so not so hackerish and more in line withJamie Honan
what Gerd is moving to - allowed multiple instances of dst frontend. - should handle terrestial cards correctly. Can mix and match ts204, new tuner packets, symbol rate types in tuner packets - has more DST strings on i2c asic discovery (in dst_check_ci) - can override card PCI id using card=0x68 for bttv driver. bt878 audio dma still hogs all cards it finds, but this is an interim release to work towards fixing this - put in rudimentary signal strength / snr. The scale factors are not right. Should work for terrestial / satellite. - Put in Dimitri's fix of not doing dst_enable after reciept of the 0xFF ack, but allowing the asic to do this itself.
2003-10-13Changes to support dst and bttv > 0.9.12 and for kernel >= 2.6.0-test7Jamie Honan
This has support for i2c doen by bttv. Tested and working in 2.4, clean compile 2.6. Expect changes to get working under 2.6. Patches directory no longer needed.
2003-07-15- indentation fixesMichael Hunold
- use c99 initializers - remove blank lines - remove bt848.h -- it's already in driver/media/video (this probably breaks 2.4 compilation)
2003-06-29- remove obsolete fields from struct bt878Holger Waechtler
- make DMA block pointer volatile - use one local tasklet per card - remove spinlock bt->s_lock, it protected an atomic variable only - remove obsolete waitqueue code, the waitqueue was not used anymore
2003-06-21- 2.5 API changes for bt878Holger Waechtler
- remove flush_workqueue(wq) from dvb_net.c -- don't we have to ensure that the handler has finished? all other drivers don't do this as well...?
2003-02-02Add licenseFlorian Schirmer
2003-01-25- Rewritten RISC programmFlorian Schirmer
- Push sync handling down to DVB API - Major fixes
2003-01-21Add Bt8xx interface files (stolen from PCTV driver)Florian Schirmer