summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/sp887x.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>
2008-09-04v4l-dvb: fix assorted sparse warningsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fix sparse warnings. None are serious, but cutting down on these helps find future serious sparse warnings/errors. Redid the av7710.c patch based on a suggestion by Oliver Endriss. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-07-17backport commit bc179153ae2334efe28cf4f3300e024da7d83753Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Author: David Woodhouse <dwmw2@infradead.org> Date: Sat May 24 00:12:23 2008 +0100 dvb frontends: treat firmware data as const kernel-sync: Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-08media/dvb/frontends replace remaining __FUNCTION__ occurrencesMichael Krufky
From: Harvey Harrison <harvey.harrison@gmail.com> __FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Acked-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.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>
2006-07-19[PATCH] release_firmware() fixesMauro Carvalho Chehab
From: Magnus Damm <magnus@valinux.co.jp> Use release_firmware() to free requested resources. According to Documentation/firmware_class/README the request_firmware() call should be followed by a release_firmware(). Some drivers do not however free the firmware previously allocated with request_firmware(). This patch tries to fix this by making sure that release_firmware() is used as expected. kernel-sync: backport from kernel to v4l/dvb tree Signed-off-by: Magnus Damm <magnus@valinux.co.jp> Acked-by: Marcel Holtmann <marcel@holtmann.org> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Greg KH <greg@kroah.com> 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-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 sp887x 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>
2005-12-27make the firmware dir documentation and comments consistent in the v4l-dvb tree.Michael Krufky
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi> 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-11-07[PATCH] fix missing includesMichael Krufky
I recently picked up my older work to remove unnecessary #includes of sched.h, starting from a patch by Dave Jones to not include sched.h from module.h. This reduces the number of indirect includes of sched.h by ~300. Another ~400 pointless direct includes can be removed after this disentangling (patch to follow later). However, quite a few indirect includes need to be fixed up for this. In order to feed the patches through -mm with as little disturbance as possible, I've split out the fixes I accumulated up to now (complete for i386 and x86_64, more archs to follow later) and post them before the real patch. This way this large part of the patch is kept simple with only adding #includes, and all hunks are independent of each other. So if any hunk rejects or gets in the way of other patches, just drop it. My scripts will pick it up again in the next round. Signed-off-by: Tim Schmielau <tim@physik3.uni-rostock.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
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
2005-01-21- add firmware file name to "upload..." printkJohannes Stezenbach
- add printk after successful firmware upload
2004-10-28Imported FE_REFACTORING to HEADAndrew de Quincy
2004-08-30patch by Jose Alberto Reguero: fix firmware downloadJohannes Stezenbach
2004-08-26Update everything to point to the new firmware download scriptAndrew de Quincy
2004-08-24- replace dvb_unregister_frontend_new() with dvb_unregister_frontend()Michael Hunold
2004-08-22Added patch by Martin Kenny to fix tuning problems.Andrew de Quincy
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-07-17 - Add missing #include <linux/moduleparam.h>Kenneth Aafloy
2004-07-17fixed warning with kernel 2.6.7-powerpc:Andreas Oberritter
In file included from sp887x.c:21: include/linux/firmware.h:11: warning: `struct device' declared inside parameter list include/linux/firmware.h:11: warning: its scope is only this definition or declaration, which is probably not what you want include/linux/firmware.h:15: warning: `struct device' declared inside parameter list sp887x.c: In function `attach_adapter': sp887x.c:616: warning: passing arg 3 of `request_firmware' from incompatible pointer type
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-22- convert two driver to kernel i2c (untested, tester needed for the sp887x)Michael Hunold
2004-03-11Checked in experimental frontend patchAndrew de Quincy
Also some minimal budget-ci CI support implemented (just detection+IRQs)
2004-03-02- C99 initializiers fixMichael Hunold
2004-02-09fixed typoHolger Waechtler
2004-01-06- fix compilation with "make allyesconfig": make av7110Michael Hunold
compile-firmware-in-driver option depend on STANDALONE - change some default file locations from /etc/dvb/ to /usr/lib/hotplug/firmware/
2003-11-25make it compile with non-C99-compliant gcc versions. Patch contributed by ↵Holger Waechtler
Wolfgang Thiel
2003-11-20firmware loader implementation contributed by Martin StubbsHolger Waechtler
2003-11-11increase buf for firmware loading by 2 (bug reported by Jamie Honan)Johannes Stezenbach
2003-10-08- allow private data to be associated with i2c devicesAndreas Oberritter
- fixed some return values in i2c device attach functions
2003-09-11include dvb_functions.h, not dvb_compat.hHolger Waechtler
2003-09-07- apply Avermedia DVB-T related patches contributed by Mark Edwards ↵Holger Waechtler
<mark@edwards.homelinux.net> - add a workaround for the bogus no-ack returvalue of the kernel-i2c bitbanging driver - add sp887x.o to the Makefile
2003-09-07move DTF7202 driver to dvb-kernel for the avermedia DVB-T cardsHolger Waechtler