summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget-patch.c
AgeCommit message (Collapse)Author
2008-09-22dvb/budget: push adapter_nr mod option down to individual driversJanne Grunau
From: Janne Grunau <janne-dvb@grunau.be> adapter_nr mod option does not make sense for budget-core since it is only common code shared by all budget drivers Priority: normal Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
2008-09-01budget: udelay changed to mdelayThierry MERLE
From: Thierry MERLE <thierry.merle@free.fr> budget.ko fails to build on ARM with: ERROR: "__bad_udelay" [drivers/media/dvb/ttpci/budget.ko] undefined! make[1]: *** [__modpost] Error 1 __bad_udelay is specifically designed on ARM to fail when udelay is called in a bad way. arch/arm/include/asm/delay.h has this to say about __bad_udelay: /* * This function intentionally does not exist; if you see references to * it, it means that you're calling udelay() with an out of range value. * * With currently imposed limits, this means that we support a max delay * of 2000us. Further limits: HZ<=1000 and bogomips<=3355 */ extern void __bad_udelay(void); Solution is to replace udelay by a mdelay and udelay with value less than 2000 Priority: high Acked-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2008-08-25V4L/DVB: follow lspci device/vendor styleMauro Carvalho Chehab
From: Bjorn Helgaas <bjorn.helgaas@hp.com> Use "[%04x:%04x]" for PCI vendor/device IDs to follow the format used by lspci(8). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-06-22WRITE_RPS1() converts to le32 itselfMauro Carvalho Chehab
From: Al Viro <viro@ftp.linux.org.uk> ... but two ancient drivers had not noticed. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-16Backporting some typo fixes from kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-08-07remove null chars from dvb namesMauro Carvalho Chehab
From: Dave Jones <davej@redhat.com> DVB null terminates its device names, which seems odd, and should be unnecessary. Signed-off-by: Dave Jones <davej@redhat.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.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-07-19[budget/budget-av/budget-ci/budget-patch drivers] fixed DMA start/stop codeOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Fix bug reported by Andrew de Quincey: After cold boot the saa7146 DMA did not start if the demuxer was opened before the frontend has locked to the signal. DMA transfers will be started now if (and only if) the frontend is locked and data should be sent to the demuxer. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
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-18Convert ttpci/budget-patch 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. Add pll gate control calls where appropriate. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-03-30Configurable dma buffer size for saa7146-based budget dvb cardsOliver Endriss
From: Ingo Schneider <mail@ingo-schneider.de> - Issue a warning when more than 80% of the DMA buffer is being used (probably due to bad IRQ latency). Warnings are rate-limited. - Introduce a new parameter 'bufsize' (in KByte) which increases the default DMA buffer of 188 KByte up to 1410 KByte (Activy: 564 KByte). Signed-off-by: Ingo Schneider <mail@ingo-schneider.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-03-16Moved duplicated code of ALPS BSRU6 tuner to a standalone file.Oliver Endriss
From: Perceval Anichini <perceval.anichini@streamvision.fr> Moved duplicated code of ALPS BSRU6 tuner to a standalone file. Modified av7110 and budget drivers to include the new file. Signed-off-by: Perceval Anichini <perceval.anichini@streamvision.fr> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
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-11-26Whitespaces cleanups.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-24stv0299_set_frontend(): reduced number of i2c transfers, set register 0x12 ↵Oliver Endriss
from inittab Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2005-10-03Remove broken stv0299 enhanced tuning codeAndrew de Quincy
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-03-17ttpci: follow dvb_register_adapter changes in dvbdev.[ch]Andreas Oberritter
2005-03-12fix typo in commentJohannes Stezenbach
2005-03-02whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)Johannes 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>
2005-01-01Patch by Emard:Johannes Stezenbach
Budget patch improved driver, fixed slight packet loss by using different trigger mode - each complete frame of 2*188*512 bytes now gets only one VSYNC triggering, using rising edge. Normal budget has VSYNC toggled every 188*512 bytes triggered on both edges. This results in 2x less load on PCI by rps1 but the main advantage is reduction of packet loss to be indistinguishable from the true budget card. Also there is a fix for proper tuning for stv0299 tuners, so now it's even possible to test how budget-patch is running on a true budget card, like e.g. nova, satelco, activy, just copy lines of pci device lines from budget.c
2004-11-14 - Fix budget module usage count for frontend/demux devices.Kenneth Aafloy
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-20- remove stupid DEB_* debugging macro horror from av7110 and budget drivers, ↵Michael Hunold
replace them with dprintk(level, msg) instead - remove whitespace and linefeed violations all over the place
2004-01-08rename some non-static functions to enhance readabilityJohannes Stezenbach
2004-01-05Split av7110.c into a few separate modules:Johannes Stezenbach
- av7110.c: initialization and demux stuff - av7110_hw.c: lowlevel hardware access and firmware interface - av7110_ca.c: CI and ECD - av7110_av.c: audio/video MPEG decoder and remuxing stuff - av7110_v4l.c: v4l interface It's all still ugly and needs lots of namespace and coding-style cleanups. It's probably broken, too. But it's a start. (My main motivation is easier porting to the V4 API).
2003-10-09- backfeed patches from 2.6.0-test7, which have not gone through our cvs:Michael Hunold
- janitorial fixes (mostly return code handling) - spelling fixes in Kconfig files - line breaks to re-formatting
2003-09-10Make sure void* arguments get converted in two steps:Michael Hunold
first cast to long, then cast to the destination type (mostly int) to avoid endianess bugs
2003-07-07Make the "ext_vv_data" informations a per-device information insteadMichael Hunold
of a per-extension information. This is needed for the DVB-C cards, which seem to have swapped field order and need to propagate some video4linux specific stuff for the analog module to work.
2003-06-19Add missing count variable, thanks to <matt@Helius.COM>Michael Hunold
2003-06-18When I submitted the last patchset for the 2.5 kernel series,Michael Hunold
Alan Cox reformatted the code to follow his coding style when he fixed the merge bugs. This patch now introduces these coding style changes, so that we don't wipe out his changes with the next patchset.
2003-05-19First try to use pci_consistent_dma() throughout the whole saa7146Michael Hunold
driver subsystem.
2003-04-22- removed the compatibility crap around KBUILD_MODNAME from all drivers,Michael Hunold
use KBUILD_BASENAME for 2.4 instead ­ some changes to the i2c core to make it work with both 2.4 and late 2.5 kernels (not done yet -- only interesting for analog drivers) - add MODULE_DEVICE_TABLE to all drivers, so that pci "hotplug" can detect the devices automatically. Alan Cox says, that we should use this to load the firmware (not done yet) - fix the long standing "insmod/rmmod with multiple budget cards" bug -- it was a double kfree() call...
2003-03-20Use #include from ttpci folder which is now commonDavor Emard
for ttpci and budgets
2003-03-20Move the budget-driver from "ttpci-budget" to "ttpci", because theMichael Hunold
devices are so similar. Perhaps it will be possible to share more code between these drivers later on.