summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2
AgeCommit message (Collapse)Author
2006-05-13Remove the spagetti code gotos that aren't usefulAndrew de Quincey
From: Trent Piepho <xyzzy@speakeasy.org> Some code had pointless gotos that just didn't make any sense. They didn't make the code smaller, or faster, or easier to understand. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-27Disable stv0297_cs2 code from being used normally.Andrew de Quincey
From: Mauro Carvalho Chehab <mchehab@infradead.org> stv0297_cs2 should be merged into the main stv0297. In order not to lose information we have come up with this temporary compromise. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-24rename fe_lgh06xf.h to lg_h06xf.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@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 flexcop-fe-tuner 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-18b2c2-flexcop: use fe_lgh06xf.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - removed duplicated tuning code for LG TDVS H061F Signed-off-by: Michael Krufky <mkrufky@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-03-18Make hotplug automatically load the b2c2-flexcop-usb modulePatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> There was no MODULE_DEVICE_TABLE for the b2c2-flexcop-usb module. This makes it impossible for hotplug to load the module automatically, when such a device is connected. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2006-02-09drivers/media/dvb/frontends/mt312.c: cleanupsMichael Krufky
From: Adrian Bunk <bunk@stusta.de> This patch contains the following possible cleanups: - update the Kconfig help to mention the VP310 - merge vp310_attach and mt312_attach into a new vp310_mt312_attach to remove some code duplication Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Michael Krufky <mkrufky@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-01-22Fix printk type warningMichael Krufky
From: Randy Dunlap <rdunlap@xenotime.net> Fix printk type warning: drivers/media/dvb/b2c2/flexcop-pci.c:164: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'dma_addr_t' Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-22drivers/media/dvb/: possible cleanupsMichael Krufky
From: Adrian Bunk <bunk@stusta.de> - make needlessly global code static - #if 0 the following unused global functions: - b2c2/flexcop-dma.c: flexcop_dma_control_packet_irq() - b2c2/flexcop-dma.c: flexcop_dma_config_packet_count() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-21rename dvb_pll_tbmv30111in to dvb_pll_samsung_tbmvMichael Krufky
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2006-01-21Kill nxt2002 in favor of the nxt200x moduleMichael Krufky
From: Michael Krufky <mkrufky@m1k.net> - Kill nxt2002 module in favor of nxt200x. - Repair broken nxt2002 support in the nxt200x module. - Make the flexcop driver use nxt200x instead of the nxt2002 module for the Air2PC 2nd generation PCI card. - Remove the nxt2002 module from cvs and kernel build. Signed-off-by: Michael Krufky <mkrufky@m1k.net> CC: Kirk Lapray <kirk.lapray@gmail.com> CC: Taylor Jacob <rtjacob@earthlink.net> CC: Jean-Francois Thibert <jeanfrancois@sagetv.com>
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>
2006-01-06Latest patch #ifs were wrong. fixing.Mauro Carvalho Chehab
kernel-sync. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-13[PATCH] Decrease number of pointer derefs in flexcop-fe-tuner.cPatrick Boettcher
From: Jesper Juhl Here's a small patch to decrease the number of pointer derefs in drivers/media/dvb/b2c2/flexcop-fe-tuner.c Benefits of the patch: - Fewer pointer dereferences should make the code slightly faster. - Size of generated code is smaller - Improved readability -- orig: text data bss dec hex filename 3072 424 0 3496 da8 drivers/media/dvb/b2c2/flexcop-fe-tuner.o patched: text data bss dec hex filename 3041 424 0 3465 d89 drivers/media/dvb/b2c2/flexcop-fe-tuner.o -- Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-12-08keep #if 0 for existent code when genreating kernel patchesMauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07#elifs replaced since gentree.pl script is not able to handle elifs.Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-26Whitespaces cleanups.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-11-20From: Adrian Bunk <bunk@stusta.de>Johannes Stezenbach
Small cleanups: - make needlessly global functions static - every file should #include the headers containing the prototypes for it's global functions Signed-off-by: Adrian Bunk <bunk@stusta.de>
2005-11-13[PATCH] fix b2c2 dvb undefined symbolMichael Krufky
This fixes drivers/built-in.o: In function `flexcop_frontend_init': : undefined reference to `lgdt330x_attach' [ Side note: I really dislike that dvb people want to include every possible frontend into the kernel - I only need the mt312 one for my Skystar2 card. I'd highly appreciate it this would be made selectable again... ] git commit: 44e6f84e3597905816a0440e7218d2ed072120da Signed-off-by: Prakash Punnoor <prakash@punnoor.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-10-15Added support for Air2PC/AirStar 2 ATSC 3rd generation (HD5000)Michael Krufky
Signed-off-by: Taylor Jacob <rtjacob@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-10-03Remove broken stv0299 enhanced tuning codeAndrew de Quincy
2005-10-01[PATCH] I2C: Kill i2c_algorithm.name (1/7)Michael Krufky
The name member of the i2c_algorithm is never used, although all drivers conscientiously fill it. We can drop it completely, this structure doesn't need to have a name. [PATCH] I2C: Kill i2c_algorithm.id (4/7) There are no more users of i2c_algorithm.id, so we can finally drop this structure member. [PATCH] I2C: Kill i2c_algorithm.id (6/7) In theory, there should be no more users of I2C_ALGO_* at this point. However, it happens that several drivers were using I2C_ALGO_* for adapter ids, so we need to correct these before we can get rid of all the I2C_ALGO_* definitions. Note that this also fixes a bug in media/video/tvaudio.c: /* don't attach on saa7146 based cards, because dedicated drivers are used */ if ((adap->id & I2C_ALGO_SAA7146)) return 0; This test was plain broken, as it would succeed for many more adapters than just the saa7146: any those id would share at least one bit with the saa7146 id. We are really lucky that the few other adapters we want this driver to work with did not fulfill that condition. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2005-09-10adding special stv0297-driver for the Technisat/B2C2 CableStar2 PCI and USBPatrick Boettcher
devices (USB untested) This driver could also be used with other stv0297-based cards, but someone has to do it. The CableStar2's stv0297-driver is tested with QAM32/64/128/256 and has a very nice reception-qualitiy. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-07-26Update w.r.t stv0297 frontend driver changes.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-16Pass a pointer to the i2c bus to the pll callbacks (stv0299 only).Andreas Oberritter
It was not possible to tell which i2c bus should be used if an adapter has multiple frontends on multiple i2c buses.
2005-06-28Changed the name-field of the pci_driver and usb_driver structs to the name ofPatrick Boettcher
the module after compilation. It seems that this field is used in some places where special characters are not allowed. Maybe related to: http://www.uwsg.iu.edu/hypermail/linux/kernel/0505.1/0983.html Thanks to Alan Halverson for finding this problem. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-06-27gcc-2.95 compile fix (ISO C90 forbids mixed declarations and code)Johannes Stezenbach
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
2005-06-22no-data (IRQ-stop) problem (partially) fixed by resetting register 0x300 at ↵Patrick Boettcher
each data_rcv-stop small change in register-struct restructured code in dma-handling (added some comments regarding FCIIb limitations) debug-messages and irq-watchdog (disabled by default, but maybe needed later) added Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-06-12add big-endian register definitions for running on a PowerPC. (Thanks to ↵Patrick Boettcher
Paavo Hartikainen for testing) Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-05-15added support for the Broadcom BCM3510 ATSC (8VSB/16VSB & ITU J83 AnnexB FEC ↵Patrick Boettcher
QAM64/256) demodulator used in the first generation of Air2PC ATSC PCI-cards/USB-boxes made by B2C2. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-05-11Fixed DiSeqC switching, which was wrongly taking over from skystar2.c.Patrick Boettcher
Thanks to Joerg Riechardt for finding the bug and testing the Fix. Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-05-05drop obsolete skystar2 driver (superseeded by flexcop-pci)Johannes Stezenbach
2005-05-05merge whitespace cleanups from kernel treeJohannes Stezenbach
2005-04-28- rewrote the i2c-reading-part (no more ack-error ignoring, which was ↵Patrick Boettcher
inherited from the skystar2-driver) - some minor cleanups
2005-04-15Corrected the THIS_MODULE handling for the flexcop-stuff and dvb-usb which ↵Patrick Boettcher
lead to oopses because of misorganized module dependencies.
2005-04-11corrected the hw-filtering again. (Don't do things before breakfast)...Patrick Boettcher
2005-04-11- enabled the HW PID by default for the PCI cardsPatrick Boettcher
- correct the TS demux parsing when PID filter is enabled (and thus the timer IRQ) - rewrote the PID-filter and FULLTS control part in flexcop-hw-filter (thanks to Krzysztof Matula for pointing that out)
2005-04-07- fixed interrupt-sharing and added a spinlock to the irq-callback (was ↵Patrick Boettcher
broken due the rewrite and my foolishness), Thanks to Pascal Riekenberg for pointing out)
2005-04-07whitespace cleanup for the flexcop-driver, no functional changePatrick Boettcher
2005-03-31reading MAC address directly into dvb_adapter->proposed_macPatrick Boettcher
2005-03-21Patch by Vadim CatanaPatrick Boettcher
- driver receives many null TS packets (pid=0x1fff). They occupy the limited USB bandwidth and this leads to loss of video packets. Enabling the null packet filter fixes this. - packets that flexcop sends to USB have a 2 byte header that has to be removed. - sometimes a TS packet is split between different urbs. These parts have to be combined in a temporary buffer. Thanks a lot.
2005-03-19 - Patch by Olaf Titz: gcc 2.95 compile fixesKenneth Aafloy
2005-03-17b2c2: follow dvb_register_adapter changes in dvbdev.[ch]Andreas Oberritter
2005-03-13From : http://kerneljanitors.org/TODOJohannes Stezenbach
- convert from pci_module_init to pci_register_driver Signed-off-by: Christophe Lucas <c.lucas at ifrance.com> Signed-off-by: Domen Puncer <domen@coderock.org>
2005-03-11- patch by Amit Gud (unify the spinlock initialization)Patrick Boettcher
- debug parameter can be changed via sysfs by root now
2005-03-09 - kfree(NULL) is safeKenneth Aafloy
2005-03-09- moved the flexcop-driver-suite to linux/driversPatrick Boettcher
- adapted build-2.6 (removed skystar2 from insmod.sh) - corrected some bugs in Kconfig - tried compilation with linux 2.6.11 (as module and as compiled-in-driver)