summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/s5h1411.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-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-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-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-16s5h1411: Checkpatch complianceSteven Toth
From: Steven Toth <stoth@linuxtv.org> s5h1411: Checkpatch compliance Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-08-28Steven Toth email address changeSteven Toth
From: Steven Toth <stoth@hauppauge.com> I need this so I can better isolate my linux email from my corporate email. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2008-08-28s5h1411: Enable QAM_AUTO modeSteven Toth
From: Steven Toth <stoth@hauppauge.com> If apps pass QAM_AUTO then we need to obey it. Priority: normal Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-05-25s5h1411.c shouldn't #include "dvb-pll.h"Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-04-24s5h1411: Adding support for this ATSC/QAM demodulatorSteven Toth
From: Steven Toth <stoth@hauppauge.com> This adds full support for this demodulator. Signed-off-by: Steven Toth <stoth@hauppauge.com>