summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/lgdt330x.c
AgeCommit message (Collapse)Author
2007-10-31compat: a number of dvb frontends didn't include compat.hTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.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>
2007-04-01lgdt330x: Fix some warningsTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> It's KERN_WARNING "lgdt....", not "KERN_WARNING lgdt...." Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-11-28lgdt330x: fix broken whitespaceMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-11-28lgdt330x: fix signal / lock status detection bugMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> In some cases when using VSB, the AGC status register has been known to falsely report "no signal" when in fact there is a carrier lock. The datasheet labels these status flags as QAM only, yet the lgdt330x module is using these flags for both QAM and VSB. This patch allows for the carrier recovery lock status register to be tested, even if the agc signal status register falsely reports no signal. Thanks to jcrews from #linuxtv in irc, for initially reporting this bug. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-10-29lgdt330x: SNR and signal strength reportingMichael Krufky
From: Trent Piepho <xyzzy@speakeasy.org> Update the SNR calculations to use the new dvb_math log function, and add SNR calculations for all supported modulations for both lg dt3302 and dt3303. The QAM equations don't appear in the dt3302 datasheet, so the ones from the dt3303 datasheet were used. SNR returned is the actual value in dB as 8.8 fixed point. Reporting of real signal strength isn't supported, so rather than return 0, which confuses some software and users, a re-scaled SNR value is returned. Code originally by Rusty Scott. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Rusty Scott <rustys@ieee.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-07-19typo fixes: bandwith -> bandwidthMauro Carvalho Chehab
From: Adrian Bunk <bunk@stusta.de> kernel-sync: backport from kernel to v4l/dvb tree Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-20lgdt330x: fix missing line in VSB snr decoding logicMichael Krufky
From: Mac Michaels <wmichaels@earthlink.net> - fix missing line in VSB snr decoding logic for lgdt3303 Signed-off-by: Mac Michaels <wmichaels@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@linuxtv.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 lgdt330x 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. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-04-10lgdt330x: update supported cards list in commentsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - pcHDTV HD5500 ATSC/QAM uses LG DT3303 Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-01-11From: Panagiotis Issaris <takis@issaris.org>Mauro Carvalho Chehab
Conversions from kmalloc+memset to k(z|c)alloc Conversions from kmalloc+memset to k(z|c)alloc. kernel-sync Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-03Add DViCO Bluebird firmware to dvb_get_firmware scriptMichael Krufky
- Add DViCO Bluebird firmware to dvb_get_firmware script, for FusionHDTV USB devices. - Use usb alt setting 0 for EP4 transfer (dvb-t), - Use usb alt setting 7 for EP2 transfer (atsc) - Added comment to lgdt330x.c to indicate support for DViCO FusionHDTV5 USB Gold. Thanks to: Jeff Lee <JeffLee@dvico.com> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-12-08more #if 0 / #if 1 fixes to be in sync with kernelMauro Carvalho Chehab
kernel-sync - more #if 0 / #if 1 fixes to be in sync with kernel Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
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-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-10-24From: Jesper Juhl <jesper.juhl@gmail.com>Johannes Stezenbach
This is the drivers/media/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/media/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Cc: Johannes Stezenbach <js@linuxtv.org> Cc: Michael Krufky <mkrufky@m1k.net> Cc: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org>
2005-10-19Correct QAM symbol_rate_min for lgdt3302 and lgdt3303Michael Krufky
Thanks to: Mac Michaels and Steve Malenfant Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-10-15Added support for Air2PC/AirStar 2 ATSC 3rd generation (HD5000)Michael Krufky
Signed-off-by: Taylor Jacob <rtjacob@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-09-10Add DViCO FusionHDTV5 Lite to list of cards supported by lgdt330x moduleMichael Krufky
2005-08-14FIX: check if the callback is set, before calling itPatrick Boettcher
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-08-14some white spaces cleaned upPatrick Boettcher
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2005-08-11This patch addresses valid objections to experimental code used toMichael Krufky
mute the tda9887 when the tuner is used for digital TV reception. That code is removed and replaced by a better solution, which will be implemented in video4linux tree. Signed-off-by: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-08-09removed some trailing whitespaceMichael Krufky
2005-08-08trivial dvb_frontend_ops.name text fixMichael Krufky
2005-08-07 - Enable ATSC support for DViCO FusionHDTV5 Gold.Michael Krufky
From: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net> - Enable ATSC support for DViCO FusionHDTV5 Gold. From: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-27- Add LG/TUA6034 dvb_pll_desc for ATSC with LG TDVS-H062F & DViCO FusionHDTV5.Michael Krufky
- Fixed LGDT330X signal strength: For now, always set it to 0. - Corrected LGDT330X boundary condition error in read_snr: dB calculation. Signed-off-by: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-26Structural changes within lgdt330x driver, framework now supportsMichael Krufky
both chips... tested on lgdt3302, untested on lgdt3303 as of yet. Signed-off-By: Mac Michaels <wmichaels1@earthlink.net> Signed-off-by: Michael Krufky <mkrufky@m1k.net>
2005-07-25Rename lgdt3302 to lgdt330x, to make way for the addition of lgdt3303 support.Michael Krufky
This imports exact copies of the following versions from dvb-kernel cvs. lgdt3302.c r1.12 lgdt3302.h r1.5 lgdt3302_priv.h r1.3 There will be no more development on lgdt3302. All new development will be on lgdt330x. It will be safe to remove lgdt3302 from cvs once lgdt330x gets merged into -linus kernel tree. Signed-off-by: Michael Krufky <mkrufky@m1k.net>