summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/at76c651.c
AgeCommit message (Collapse)Author
2009-08-10Use kzalloc for frontend states to have struct dvb_frontend properlyDouglas Schilling Landgraf
From: Matthias Schwarzott <zzam@gentoo.org> This patch changes most frontend drivers to allocate their state structure via kzalloc and not kmalloc. This is done to properly initialize the embedded "struct dvb_frontend frontend" field, that they all have. The visible effect of this struct being uninitalized is, that the member "id" that is used to set the name of kernel thread is totally random. Some board drivers (for example cx88-dvb) set this "id" via videobuf_dvb_alloc_frontend but most do not. So I at least get random id values for saa7134, flexcop and ttpci based cards. It looks like this in dmesg: DVB: registering adapter 1 frontend -10551321 (ST STV0299 DVB-S) The related kernel thread then also gets a strange name like "kdvb-ad-1-fe--1". Priority: normal Signed-off-by: Matthias Schwarzott <zzam@gentoo.org> CC: Michael Krufky <mkrufky@linuxtv.org> CC: Steven Toth <stoth@linuxtv.org> CC: Timothy Lee <timothy.lee@siriushk.com> CC: Igor M. Liplianin <liplianin@me.by> Acked-by: Andreas Oberritter <obi@linuxtv.org> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
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>
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 at76c651 to refactored tuner codeAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Convert to tuner_ops calls. Remove pll function pointers from structure. Remove unneeded tuner calls. Add i2c gate control function. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-02-09at76c651: don't do generic __ilog2 on mipsMichael Krufky
From: Alexey Dobriyan <adobriyan@gmail.com> dvb/frontends/at76c651.c: redefinition of __ilog2 blah blah (akpm: I nuked __ilog2 and used the standard long_log2() instead) We've already removed this module from the kernel, but it is still in the v4l-dvb tree, best to keep it up-to-date. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Michael Krufky <mkrufky@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-11-26Whitespaces cleanups.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-04-05 - remove unnecessary casts in frontendsKenneth Aafloy
2005-03-09 - kfree(NULL) is safeKenneth Aafloy
2005-03-02whitespace cleanup (remove ws at eol, sync with changes in mainline kernel)Johannes Stezenbach
2004-10-28Imported FE_REFACTORING to HEADAndrew de Quincy
2004-10-26- use <linux/bitops.h> in favour of <asm/bitops.h>Michael Hunold
2004-08-24- replace dvb_unregister_frontend_new() with dvb_unregister_frontend()Michael 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- nuke dvb functions stuffMichael Hunold
2004-08-18- remove dvb i2c code (all drivers are ported to kernel i2c)Michael Hunold
- remove dvb i2c frontend (un)register code (all drivers use non-i2c frontend calls now) - add i2c driver ids for all frontends to dvb_frontend.h (should be submitted to i2c-id.h) - fix usage of i2c driver ids in dst, ves1x93, nxt6000 drivers - remove dvb i2c functionality from av7110 and budget drivers - remove dvb i2c functionality from Skystar2 driver - fix up kernel Makefile - add a FE_ATSC case to avoid compiler warning (print warning message instead)
2004-07-17 - Add missing #include <linux/moduleparam.h>Kenneth Aafloy
2004-07-16 - Adding I2C_DRIVERID for all frontends to dvb_i2c.hKenneth Aafloy
- dvb_dummy_fe conversion to Kernel I2C - Conversion from deprecated MODULE_PARM* to module_param* - Adding/renaming existing *debug* parameter to debug. - Common naming scheme for debug/I2C: dvbfe_*
2004-07-12 - Properly lock the frontend module on open/close.Kenneth Aafloy
- Remove module ref count changes to av7110 and budget-core, as they did not do the right thing.
2004-06-23merged fixes from cvs.tuxbox.org (1.53->1.56)Andreas Oberritter
2004-06-22- convert to kernel i2c, thanks to Kenneth Aafløy <lists@kenneth.aafloy.net>Michael Hunold
Note: this will probably break some of the drivers out there, which don't register properly to the kernel i2c subsystem yet.
2004-03-11Checked in experimental frontend patchAndrew de Quincy
Also some minimal budget-ci CI support implemented (just detection+IRQs)
2003-12-20updated contributors.txt and some email addressesAndreas Oberritter
2003-10-08- allow private data to be associated with i2c devicesAndreas Oberritter
- fixed some return values in i2c device attach functions
2003-10-08misc bugfixes and performance improvementsAndreas Oberritter
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-27- remove enumeration typedefsMichael Hunold
- change some includes
2003-05-27Use C99 initializers.Michael Hunold
2003-04-30- introduce dvb_functions.h in order to make the dvb subsystemMichael Hunold
less dependent on the linux kernel. here is the place to store additional dvb_* functions, which encapsulate linux kernel functionality which cannot be expressed as a one-liner - rename ddelay() to dvb_delay(), move it to dvb_functions.h - change all files to include dvb_functions.h instead of dvb_compat.h - compile fix for the saa7111 driver
2003-04-26Revert ddelay() cleanup, discuss this first with Holger.Michael Hunold
2003-04-25Lots of cosmetic changes in order to sync the CVS withMichael Hunold
the version that made it into the 2.5.68 kernel. - remove unnecessary c++-style comments - fixed some line breaks and the style function headers are formatted: please don't argue with me about these changes, I don't care how they are formatted. - remove newline breaks between memory allocation and the return value check Some more interesing stuff: - remove ddelay() functions completly, replace with set_current_state() and manual schedule_timeout() calls. - made some init data for the mxb driver static and global (patch already send to lkml) Some crucial changes: - inherit some return values Mr. Alan Cox has changed -- please review
2003-04-24- #include "compat.h" --> #include "dvb_compat.h"Holger Waechtler
- return POLL_ERR in case of filter timeout
2003-04-20added FE_CAN_RECOVER | FE_CAN_CLEAN_SETUP | FE_CAN_MUTE_TSAndreas Oberritter
2003-03-22more portability, now frontend modules build out of the boxHolger Waechtler
2002-11-26also set FE_HAS_LOCK if frontend has agc1 lockAndreas Oberritter
2002-11-19Atmel AT76C651 DVB-C demodulator driverAndreas Oberritter