summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/s5h1420.c
AgeCommit message (Collapse)Author
2008-11-25fix boards for kernels with algo_controlMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> changeset 4ecae6da8244 removed algo_control from i2c drivers. However, on older kernels, a dummy function to implement algo_control is required, otherwise, an OOPS is generated. This patch adds a backport for all i2c drivers that defines an i2c_algorithm, except for cafe_ccic, since OLPC hardware only works for kernels newer than 2.6.19. Some of the backported drivers would need also extra changes to work with older kernels, as specified on v4l/versions.txt. Yet, I decided to add the backport for those drivers also, since the lack of algo_control doesn't generate any compilation error, but it is enough to break the driver. So, better to all for all boards than to allow compiling a kernel backported that just generates OOPS. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-09-07S5H1420: Fix size of shadow-array to avoid overflowPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> The array size of 'shadow' still needs to be fixed in order to not overflow when reading register 0x00. Thanks to Oliver Endriss for pointing that out. Priority: high Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-09-06Fix support for Hauppauge Nova-S SEPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> Different backends have different input busses (saa7146, flexcop). To reflect that a config-option to the s5h1420-driver was added which makes the output mode selectable. Furthermore the s5h1420-driver is now doing the same i2c-method as it was done before adding support for other i2c-users. This patch needs to go into the current release of the kernel, as this driver is currently broken. (Thanks to Eberhard Kaltenhaeuser for helping out to debug this issue.) Priority: high Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-08-29dvb: fix I2C adapters name sizeMauro Carvalho Chehab
From: Jean Delvare <khali@linux-fr.org> Some DVB drivers are incorrectly assuming that the size of i2c_adapter.name is I2C_NAME_SIZE. Here's a fix. Also change strncpy to strlcpy, as the former is error-prone (and was indeed incorrectly used.) Signed-off-by: Jean Delvare <khali@linux-fr.org> Acked-by: Uwe Bugla <uwe.bugla@gmx.de> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-28 drivers/media/dvb/frontends/s5h1420.c: printk fixMauro Carvalho Chehab
From: Andrew Morton <akpm@linux-foundation.org> drivers/media/dvb/frontends/s5h1420.c: In function `s5h1420_setsymbolrate': drivers/media/dvb/frontends/s5h1420.c:484: warning: long long unsigned int format, u64 arg (arg 2) We do not know what type the architecture uses for u64. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-13Support for DVB-S demod PN1010 (clone of S5H1420) addedPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> This device is a clone of the PN1010 used by SkyStar2 rev2.7 . This patch adds support for the flexcop-device and makes the driver look a little bit nicer. It needs to be checked whether the driver is still ok for the budget-cards. Signed-off-by: Patrick Boettcher <pb@linuxtv.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>
2008-01-27[PATCH] static memoryDouglas Schilling Landgraf
From: Douglas Schilling Landgraf <dougsland@gmail.com> - Static memory is always initialized with 0. - Replaced in some cases C99 comments for /* */ Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
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 s5h1420 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-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-07-22Increase timeout on tone burst transmissionAndrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-22freqoffset must be 0 to start with.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-22Check for division by 0Andrew de Quincy
FIx tuning. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-21Fix inversion/fec.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-20Set initial frequency offset.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-20Fix fast tune modeAndrew de Quincy
2005-07-20Verified SIGNAL/CARRIER.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-20Formatting changesAndrew de Quincy
Fix diseqc transmission. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-20Fix status calls.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-07-20Got the frontend tuning - needs more work though.Andrew de Quincy
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2005-06-15CleanupAndrew de Quincy
2005-06-15Finalised s5h1420/Nova-S SE support. releasedAndrew de Quincy
2005-06-12Implement fe status functionsAndrew de Quincy
2005-06-12Implement DISEQC transmit and my best guess at DISEQC receive - needs testing.Andrew de Quincy
2005-06-12Get i2c working properlyAndrew de Quincy
2005-06-11Initial support for s5h1420 frontend (new hauppauge/tt DVB-S SE). UntestedAndrew de Quincy
and incomplete, so commented out for the moment.