summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends
AgeCommit message (Collapse)Author
2008-12-30af9013: Fix gcc false warningsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> drivers/media/dvb/frontends/af9013.c: In function ‘af9013_set_coeff’: drivers/media/dvb/frontends/af9013.c:231: warning: ‘ns_coeff2_8k’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c:230: warning: ‘ns_coeff2_2k’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c:229: warning: ‘ns_coeff1_8193nu’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c:228: warning: ‘ns_coeff1_8192nu’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c:227: warning: ‘ns_coeff1_8191nu’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c:226: warning: ‘ns_coeff1_2048nu’ may be used uninitialized in this function drivers/media/dvb/frontends/af9013.c: In function ‘af9013_update_snr’: drivers/media/dvb/frontends/af9013.c:1012: warning: ‘snr_table’ may be used uninitialized in this function Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> CC: Antti Palosaari <crope@iki.fi>
2008-12-26Kbuild: fix compilation when dib7000p is not definedMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> dib7000p.h defines a few extern symbols when CONFIG_DVB_DIB7000P is not set. since the header is used on more than one driver, this causes symbol duplication, as pointed by Ingo Molnar <mingo@elte.hu>: drivers/media/dvb/built-in.o: In function `dib7000p_set_gpio': (.text+0x3f242): multiple definition of `dib7000p_set_gpio' drivers/media/video/built-in.o:(.text+0xb8c1e): first defined here drivers/media/dvb/built-in.o: In function `dib7000p_i2c_enumeration': (.text+0x3f282): multiple definition of `dib7000p_i2c_enumeration' drivers/media/video/built-in.o:(.text+0xb8c3e): first defined here drivers/media/dvb/built-in.o: In function `dib7000p_set_wbd_ref': (.text+0x3f1c1): multiple definition of `dib7000p_set_wbd_ref' drivers/media/video/built-in.o:(.text+0xb8bfe): first defined here LD drivers/net/built-in.o make[2]: *** [drivers/media/built-in.o] Error 1 Priority: normal CC: Patrick Boettcher <patrick.boettcher@desy.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-19cx24113: fix compile warningsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-12-18cx24116: change to ALGO_HWMauro Carvalho Chehab
From: Darron Broad <darron@kewl.org> Slow tuning, EG: > szap-s2 -r -c 39.FTATV "1=Pgm1;Net1" reading channels from file '39.FTATV' zapping to 3 '1=Pgm1;Net1': delivery DVB-S, modulation QPSK sat 0, frequency 11140 MHz V, symbolrate 1425000, coderate 5/6, rolloff 0.35 vpid 0x0200, apid 0x0300, sid 0x0001 using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' status 00 | signal c2c0 | snr 0000 | ber 00012d4a | unc 00000000 | status 03 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 03 | signal c040 | snr 0000 | ber 00000000 | unc 00000000 | status 03 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 03 | signal c040 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal c040 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 01 | signal c040 | snr 0000 | ber 00000000 | unc 00000000 | status 03 | signal c040 | snr 0000 | ber 00000000 | unc 00000000 | status 1f | signal c040 | snr bb33 | ber 00000000 | unc 00000000 | FE_HAS_LOCK Appears to be resolved by dropping zig-zag tuning and relying on hardware only: > szap-s2 -r -c 39.FTATV "1=Pgm1;Net1" reading channels from file '39.FTATV' zapping to 3 '1=Pgm1;Net1': delivery DVB-S, modulation QPSK sat 0, frequency 11140 MHz V, symbolrate 1425000, coderate 5/6, rolloff 0.35 vpid 0x0200, apid 0x0300, sid 0x0001 using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' status 01 | signal ff80 | snr 0000 | ber 00000000 | unc 00000000 | status 1f | signal ff80 | snr c199 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal c040 | snr c199 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal ff80 | snr c199 | ber 00000000 | unc 00000000 | FE_HAS_LOCK Tuning to a weaker channel shows that the hardware recovers sync: status 1f | signal fe40 | snr 5199 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 03 | signal fd40 | snr 5000 | ber 00000000 | unc 00000000 | status 1f | signal fe40 | snr 5000 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 03 | signal fd80 | snr 5000 | ber 00000000 | unc 00000000 | status 01 | signal fd80 | snr 4e66 | ber 00000000 | unc 00000000 | status 1f | signal fe40 | snr 5000 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 03 | signal fe40 | snr 5000 | ber 00000000 | unc 00000000 | status 01 | signal fd80 | snr 0000 | ber 00000000 | unc 00000000 | status 1f | signal fe40 | snr 5199 | ber 00000000 | unc 00000000 | FE_HAS_LOCK Also, tuning, moving the dish and then restoring the dish also retunes. Priority: normal Signed-off-by: Darron Broad <darron@kewl.org> CC: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-18cx24116: fix retune regression introduced in 70ee86a7c630Mauro Carvalho Chehab
From: Darron Broad <darron@kewl.org> Thanks to AKPM for spotting this. Priority: normal CC: Steven Toth <stoth@hauppauge.com> Signed-off-by: Darron Broad <darron@kewl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-18cx24116: bugfix: add missing delsys in FEC lookupMauro Carvalho Chehab
From: Darron Broad <darron@kewl.org> Delsys was missing when searching for FEC in table. This fixes FEC lookup for DVB-S2 QPSK modulation. Priority: normal CC: Steven Toth <stoth@hauppauge.com> Signed-off-by: Darron Broad <darron@kewl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-12-14CX24113: Fixed more typosPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> Uwe Bugla pointed out that there are some more typos in some print-statements. Fixed. Priority: normal Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-12-14Patch: fix a typo in cx24113.cPatrick Boettcher
From: Uwe Bugla <uwe.bugla@gmx.de> This patch fixes a typo in cx24113.c. Priority: normal Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-12-14Minor fixes for cx24113-driver (codingstyle)Patrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> Fixed some minor coding style issues and some driver information printed when using the driver on a board. Priority: normal Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-12-10sync from mainPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> sync from main Priority: normal Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2008-11-23Add support for the CX24113 DVB-S tuner driverPatrick Boettcher
From: Patrick Boettcher <pb@linuxtv.org> This commit adds support for the CX24113 DVB-S tuner driver and thus support for the Technisat Skystar2 revision 2.8. The driver was created with the help of Technisat. Thank you very much. Priority: normal Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
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-11-16Put s5h1411 into low power mode at end of attach() callMauro Carvalho Chehab
From: Devin Heitmueller <devin.heitmueller@gmail.com> Place the s5h1411 into low power mode until first use (to handle the case where the user plugs in the device and then doesn't use it for a while). On the Pinnacle 801e, this brings the power usage from 126ma down to 82ma. Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-11Backport a few minor changes from upstreamMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> kernel-sync: Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-10Whitespace cleanupMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Some recent patches added a few bad whitespaces. Remove that. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-05merge: http://linuxtv.org/hg/~anttip/af9015Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-04af9013: fix bug in status readingAntti Palosaari
From: roel kluin <roel.kluin@gmail.com> - ! has a higher precedence than & Priority: normal Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-10-30merge: http://jusst.de/hg/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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-10-26merge: http://jusst.de/hg/v4l-dvbMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-24Move lgdt3304 driver to the proper place and allow it to compileMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-24Move S921 driver to the proper place and allow it to compileMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-24zl10353: add new register configuration for zl10353/especially 6mhz taiwan.Mauro Carvalho Chehab
From: Markus Rechberger <mrechberger@gmail.com> Priority: normal Signed-off-by: Markus Rechberger <mrechberger@sundtek.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-20s5h1411: Power down s5h1411 when not in useSteven Toth
From: Devin Heitmueller <devin.heitmueller@gmail.com> Power down the s5h1411 demodulator when not in use (on the Pinnacle 801e, this brings idle power from 123ma down to 84ma). Priority: normal Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Acked-by: Steven Toth <stoth@linuxtv.org>
2008-10-20s5h1411: Skip reconfiguring demod modulation if already at the desired ↵Steven Toth
modulation From: Devin Heitmueller <devin.heitmueller@gmail.com> If we are already at the desired modulation, there is no need to reconfigure the demod (at a tuning time cost) Note that this change revealed that although the datasheet says the demod starts out in VSB-8 mode, the first tuning was failing consistently unless we went through the work of setting the registers. So add a field to denote this case so we always do the enable_frontend call, even if the first tuning request is for VSB-8. Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Steven Toth <stoth@linuxtv.org>
2008-10-20s5h1411: Perform s5h1411 soft reset after tuningSteven Toth
From: Devin Heitmueller <devin.heitmueller@gmail.com> If you instruct the tuner to change frequencies, it can take up to 2500ms to get a demod lock. By performing a soft reset after the tuning call (which is consistent with how the Pinnacle 801e Windows driver behaves), you get a demod lock inside of 300ms Priority: normal Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Steven Toth <stoth@linuxtv.org>
2008-10-18s5h1411: Add the #define for an existing supporting I/FSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1411: Add the #define for an existing supporting I/F Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: Remove meaningless codeSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1411: Remove meaningless code Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: bugfix: Setting serial or parallel mode could destroy bitsSteven Toth
From: Steven Toth <stoth@linuxtv.org> Adding a serialmode function to read/and/or/write the register for safety. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: read_status() locking detection fixes.Steven Toth
From: Steven Toth <stoth@linuxtv.org> This includes new bit definitions for previously unknown bits. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: I/F related bugfix for 3.25 and remove spurious defineSteven Toth
From: Steven Toth <stoth@linuxtv.org> This should improve performance. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: Improvements to the default registersSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1411: Improvements to the default registers Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-17Patch to remove warning message during cx88-dvb compilationMauro Carvalho Chehab
From: Igor M. Liplianin <liplianin@me.by> Remove warning message during cx88-dvb compilation. Also fixes double underline in function and struct names. Signed-off-by: Igor M. Liplianin <liplianin@me.by> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-17dvb: input data pointer of cx24116_writeregN() should be constMauro Carvalho Chehab
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | drivers/media/dvb/frontends/cx24116.c:573: warning: passing argument 3 of 'cx24116_writeregN' discards qualifiers from pointer target type Make the `data' input pointer parameter of cx24116_writeregN() const to kill the warning. Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-16cx24116: optimise emulated auto-pilotdarron@kewl.org
From: Christophe Thommeret <hftom@free.fr> Christophe divulged the following: "Since 8PSK (and higher mod) signals are very likely to have pilot symbols, pilot_auto should start with pilot_on for 8PSK. And since QPSK signals are unlikely to have pilot, pilot_auto should start with pilot_off for QPSK. Without the patch: QPSK tuning delay: ~100ms 8PSK tuning delay: ~900ms with patch: QPSK tuning delay: ~100ms 8PSK tuning delay: ~100ms " This patch does as Cristophe asks. In emulated auto-pilot we choose pilot-on for tuning PSK_8 and pilot-off for tuning QPSK. Priority: normal Signed-off-by: Darron Broad <darron@kewl.org> Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16cx24123: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> cx24123: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1411: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1411: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16s5h1409: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1409: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16cx24116: Checkpatch compliance #3Steven Toth
From: Steven Toth <stoth@linuxtv.org> cx24116: Checkpatch compliance #3 Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16cx22702: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> cx22702: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16tda10048: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> tda10048: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16cx24116: Checkpatch compliance #2Steven Toth
From: Steven Toth <stoth@linuxtv.org> cx24116: Checkpatch compliance #2 Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-16cx24116: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> cx24116: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-13merge: http://linuxtv.org/hg/~stoth/s2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-07cx24116: Change the default SNR units back to percentage by default.Steven Toth
From: Steven Toth <stoth@linuxtv.org> cx24116: Change the default SNR units back to percentage by default. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-06cx24116: Add module parameter to return SNR as ESNO.Steven Toth
From: Steven Toth <stoth@linuxtv.org> I've retained the older percentage code after discussing this with Darron Broad, but made the ESNO option default. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-06S2API: Change _8PSK / _16APSK to PSK_8 and APSK_16Steven Toth
From: Steven Toth <stoth@linuxtv.org> ... and cleanup any drivers using them. I've also removed NBC_QPSK and modified the cx24116 driver to check the delivery_type also, removing some excess namespace baggage. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-10-05Add support for DvbWorld USB cards with STV0288 demodulator.Igor M. Liplianin
From: Igor M. Liplianin <liplianin@me.by> Add support for DvbWorld USB cards with STV0288 demodulator. Those cards use Earda EDS-1547 tuner. Signed-off-by: Igor M. Liplianin <liplianin@me.by>