summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/stb6100.c
AgeCommit message (Collapse)Author
2009-08-21compat: Fix build for older kernels using DIV_ROUND_CLOSESTMauro Carvalho Chehab
From: Andy Walls <awalls@radix.net> DIV_ROUND_CLOSEST() is not available on older kernels. Include compat.h in a few files to fix building v4l-dvb from mercurial on older kernels. Reported-by: Lou Otway <lotway@nildram.co.uk> Reported-by: Avo Aasma <Avo.Aasma@webit.ee> Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-08-01Use DIV_ROUND_CLOSESTMauro Carvalho Chehab
From: Julia Lawall <julia@diku.dk> The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d but is perhaps more readable. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @haskernel@ @@ @depends on haskernel@ expression x,__divisor; @@ - (((x) + ((__divisor) / 2)) / (__divisor)) + DIV_ROUND_CLOSEST(x,__divisor) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-27STB6100 init fix, the call to stb6100_set_bandwidth needs an argumentManu Abraham
in Hz not kHz, and a comment incorrectly says MHz instead of Hz. I don't know if this caused real problems anywhere From: Hans Werner <HWerner4@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-10-28Wait for a maximum of 100mSManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-10-27Disable PLL Loop while tuningManu Abraham
From: Ales Jurik <ajurik@quick.cz> Signed-off-by: Ales Jurik <ajurik@quick.cz> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-10-27Port STB0899 and STB6100Manu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-07-09Miscellaneous fixesManu Abraham
- Fix a bitfield - Set gain appropriately - Slept for the wrong duration From: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-02-04Optimization, Fix a BugManu Abraham
* cut down some I/O operations by disabling "disable gate" * budget_av was left with the gate open, thereby more susceptible to RF interference due to I/O operations From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-01-26Fix invalid GCT modeManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-01-21Optimization: Round the requested value to achieve aManu Abraham
+/-1MHz error instead of +0/-2MHz From: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-01-18Bug: Bandwidth calculation at upper and lower boundariesManu Abraham
From: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Reinhard Nissl <rnissl@gmx.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-01-18Bug: Bandwidth calculationManu Abraham
Bug #1: The 5 tap equaliser is set to correct simple perturbations like reflections on the IF cable for DVB-S. In the case of DVB-S2 a more powerful equalizer is used to correct the filter group delay allowing the bandwidth to be reduced by a factor of 1/3 Bug #2: The ZIF tuner takes badwidth to be set in Hz From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-24Fix: assignment of wrong valuesManu Abraham
From: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-19Code simplification: Sleep only for the required time interval.Manu Abraham
* Saves 70 mS LOCK time on the STB6100 based * Saves 100 mS LOCK time on the TDA8261 based From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-18missing breakManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-25Code SimplificationManu Abraham
The 2 callbacks created nothing more than confusion From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-22Use kzalloc instead of kmallocManu Abraham
From: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-22Reference Clock is in kHzManu Abraham
From: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Marko Schluessler <marco@lordzodiac.de> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-02-24Add STB6100 SupportManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>