summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget-av.c
AgeCommit message (Collapse)Author
2009-01-18saa7146: convert to video_ioctl2.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> The conversion to video_ioctl2 is the first phase to converting this driver to the latest v4l2 framework. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-12-30v4l2-ioctl: change to long return type to match unlocked_ioctl.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Since internal to v4l2 the ioctl prototype is the same regardless of it being called through .ioctl or .unlocked_ioctl, we need to convert it all to the long return type of unlocked_ioctl. Thanks to Jean-Francois Moine for posting an initial patch for this and thus bringing it to our attention. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> CC: Jean-Francois Moine <moinejf@free.fr>
2008-03-05Optimizations galore: Blistering barnacles! The KNC1 and friendsManu Abraham
like 90 Mhz clock much better rather than running at a higher throttle, for almost similar hardware. he exact cause unknown, possibly due to a lower voltage applied for the demod power supply. From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-10-24Initialize SYSREG registerManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> 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-26Code Review: #4 Consolidate configurationsManu Abraham
* Better readability * Avoids duplication Comments from Oliver Endriss <o.endriss@gmx.de> From: Manu Abraham <manu@linuxtv.org> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-01-18Initialize post process events to NULLManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-11-19Revert back previous change to 90MHzManu Abraham
Note: * At High Symbol Rates we do not have enouph machine cycles to handle the incoming symbols and hence might run into problems at the very end of the specified definition * Most of the equations have been calculated for a master clock of 99 MHz, running at 90MHz, raises lot of issues such as the need to recalculate all of them , which is eventually very painful. From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-30Limit initial RF AGC gainManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-30Increment the AGC1 and AGC2 gain respectively, improves sensitivity slightlyManu Abraham
From: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-30Bug ID #19: Diseqc works properly at 90MHz only on Cut 1.1 and 2.0Manu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-25Add support for the Satelco Easywatch DVB-S2 PCI cardManu Abraham
From: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Arvo Jarve <arvo@softshark.ee> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-09DVB_ATTACH for STB0899, STB6100, TDA8261Manu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-10-05Fix tuner name and commentManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-25the KNC1 and clones also don't have the I/Q inputs swappedManu Abraham
From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-25Code SimplificationManu Abraham
Use an enumeration for I/Q Swap rather than an int, easier to spot the nasty ones From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2007-09-23Add initial support forManu Abraham
* KNC1 DVB-S2 Plus * KNC1 DVB-S2 OEM (known as Satelco DVB-S2) From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2008-09-22dvb/budget: push adapter_nr mod option down to individual driversJanne Grunau
From: Janne Grunau <janne-dvb@grunau.be> adapter_nr mod option does not make sense for budget-core since it is only common code shared by all budget drivers Priority: normal Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
2008-08-25V4L/DVB: follow lspci device/vendor styleMauro Carvalho Chehab
From: Bjorn Helgaas <bjorn.helgaas@hp.com> Use "[%04x:%04x]" for PCI vendor/device IDs to follow the format used by lspci(8). Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-05-18TDA10023: make few parameters configurableAntti Palosaari
From: Antti Palosaari <crope@iki.fi> - separate TDA10021 and TDA10023 attach - configurable Xtal settings - configurable input freq offset + baseband conversion type settings Signed-off-by: Antti Palosaari <crope@iki.fi>
2008-04-21stv0299: Fixed some typosOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Fixed some typos. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2008-04-09budget-av: Fix CI interface on (some) KNC1 DVBS cardsOliver Endriss
From: Christoph Pfister <pfister@linuxtv.org> Quoting the commit introducing reinitialise_demod (3984 / by adq): "These cards [KNC1 DVBT and DVBC] need special handling for CI - reinitialising the frontend device when the CI module is reset." Apparently my 1894:0010 also needs that fix, because once you initialise CI/CAM you lose lock. Signed-off-by: Christoph Pfister <pfister@linuxtv.org> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2008-04-09budget-av: Fix support for certain camsOliver Endriss
From: Christoph Pfister <pfister@linuxtv.org> The current ci implementation doesn't accept 0xff when reading data bytes (address == 0), thus breaks cams which report a buffer size of 0x--ff like my orion one. Remove the 0xff check altogether, because validation is really the job of a higher layer. Signed-off-by: Christoph Pfister <pfister@linuxtv.org> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2008-01-30budget-av: Add support for Satelco EasyWatch PCI DVB-TOliver Endriss
From: Kim Sandberg <ksan@saunalahti.fi> Add support for Satelco EasyWatch PCI DVB-T, sub-id 0x1894:0x003a. Signed-off-by: Kim Sandberg <ksan@saunalahti.fi> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2008-01-30budget-av: Add support for KNC TV Station Plus X4Oliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Add support for KNC TV Station Plus X4, sub-system id 0x1894:0x0015. Based on a patch submitted by Johannes Deisenhofer. Signed-off-by: Oliver Endriss <o.endriss@gmx.de> Thanks-to: Johannes Deisenhofer <jo.deisenhofer@googlemail.com>
2007-07-30Ttpci/budget-av.c: ARRAY_SIZE()Mauro Carvalho Chehab
From: Andi Drebes <lists-receive@programmierforen.de> This patch replaces an array size calculation done using sizeof with an invocation of the ARRAY_SIZE macro. Tested by compilation on an i386 box using "allyesconfig". Diffed against Linus' git-tree. Signed-off-by: Andi Drebes <lists-receive@programmierforen.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-12dvb: Remove static dependencies on dvb-pllMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch removes all static dependencies on the dvb-pll module. All exported dvb_pll_desc's have been UNexported, and the caller will reference the individual dvb_pll_desc by it's index in the pll_list array. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Patrick Boettcher <pb@linuxtv.org> Acked-by: Oliver Endriss <o.endriss@gmx.de> Acked-by: Manu Abraham <manu@linuxtv.org>
2007-05-14budget-av: Add support for EasyWatch DVB-S (0x1894:0x001b)Oliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Add support for Satelco EasyWatch PCI DVB-S card (subsystem 0x1894:0x001b). Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-05-07budget-av: convert philips sd1878 / tda8261 handling to properly use dvb-pllMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> removed philips_sd1878_tda8261_tuner_set_params, using dvb_pll_attach, instead. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-05dvb-pll: pass dvb_frontend_parameters to generic set() functionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Rename dvb_pll_desc.setbw() to set(), and accept struct dvb_frontend_parameters instead of passing both freq and bandwidth, so that this may be used as a generic function. In order to do this, dvb_pll_configure must also be altered in the same manner, to take struct dvb_frontend_parameters instead of freq and bandwidth. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-04-22budget-av: Make inversion setting configurable, add KNC ONE V1.0 cardOliver Endriss
From: Hartmut Birr <e9hack@googlemail.com> Make the inversion setting configurable. The KNC ONE V1.0 uses non inverted setting for the inversion and add the KNC ONE V1.0 card. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-04-22tda10023: Add support for frontend TDA10023Oliver Endriss
From: Hartmut Birr <e9hack@googlemail.com> Add support for the frontend TDA10023 and add cards that need the tda10023. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Georg Acher <acher@in.tum.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-04-22budget-av: Remove polarity switching of the clock for the DVB-C cardsOliver Endriss
From: Hartmut Birr <e9hack@googlemail.com> Remove the polarity switching of the clock for the DVB-C cards in budget-av.c. This hack is no longer necessary because the saa7146 can do the job to remove the additional FEC bytes from the TS. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2007-02-03budget-av: Call saa7146_vv_release on exitOliver Endriss
From: Marco Schluessler <marco@lordzodiac.de> Call saa7146_vv_release on exit. Signed-off-by: Marco Schluessler <marco@lordzodiac.de> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-12-04budget-av, budget-ci: Fix MC1 register programmingOliver Endriss
From: Hartmut Birr <e9hack@gmail.com> Remove bogus read during MC1 programming. A '1' bit could never be cleared using the old code. Use MASK_xx macros. Signed-off-by: Hartmut Birr <e9hack@gmail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-11-03budget-av: Add delay for frontend power-onOliver Endriss
From: Hartmut Birr <e9hack@googlemail.com> Added a delay to give the frontend a little bit time for power-on. Signed-off-by: Hartmut Birr <e9hack@googlemail.com> Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-11-01av7110,budget,budget-ci,budget-av: Use interrupt mode for I2C transfersOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Use interrupt mode for I2C transfers. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-11-20whitespace cleanupMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - adhere to 80-column limit - replace some spaces with tabs Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-11-19Support KNC1 DVBC cards with alternative tda10021 i2c addressAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> For some reason, some of these cards have the tda10021 configured to a different address. This adds support for such cards Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-11-17Patch for SATELCO EasyWatch PCI (DVB-C)Andrew de Quincey
From: Thomas Hamm <thhamm@t-online.de> Add support for Satelco EasyWatch PCI DVBC cards Signed-off-by: Thomas Hamm <thhamm@t-online.de> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-09-05Port budget-av to use the new tua6100 driverAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Port budget-av to use the new tua6100 driver Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-08-12add support for knc one dvb-s plus with 1894:0011Andrew de Quincey
From: Christoph Pfister <christophpfister@gmail.com> Apparently there are two types of knc1 dvb-s plus cards with different tuners (as for the knc1 dvb-s ones). This patch adds support for those cards with subsystem id 1894:0011. Signed-off-by: Christoph Pfister <christophpfister@gmail.com> Successfully tested by: Benjamin Weber <benny1990@gmail.com> Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-08-12Fix KNC1 DVBC supportAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> This actually needs the same configuration as the other DVBC cards; simply no one had managed to test before to find out. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-07-28Refactor dvb_detach calls into a single dvb_frontend_detach function.Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Remove buggy dvb_detach() macro and replace with unified dvb_frontend_detach() call. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-28Convert DVB devices to use dvb_attach()Andrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> Only devices using > 1 frontend were ported; ones which did not are left using static binding. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Acked-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Trent Piepho <xyzzy@speakeasy.org>
2006-07-19[budget/budget-av/budget-ci/budget-patch drivers] fixed DMA start/stop codeOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Fix bug reported by Andrew de Quincey: After cold boot the saa7146 DMA did not start if the demuxer was opened before the frontend has locked to the signal. DMA transfers will be started now if (and only if) the frontend is locked and data should be sent to the demuxer. Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2006-06-29Fix CI interface on PRO KNC1 cardsAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> The original driver had a restriction that if a card as an saa7113 chip, then it cannot have a CI interface. This is not the case. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-06-29Fix CI on old KNC1 DVBC cardsAndrew de Quincey
From: Andrew de Quincey <adq_dvb@lidskialf.net> These cards do not need the tda10021 configuration change when data is streamed through a CAM module. This disables it for these ones. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
2006-06-06Support for new version of Satelco EasyWatch DVB-S lightMichael Krufky
From: Lothar Englisch <Lothar.Englisch@lycos.de> This patch adds support for Satelco EasyWatch DVB-S light card, a clone of the KNC 1, with PCI subsystem ID 1894:001e Signed-off-by: Lothar Englisch <Lothar.Englisch@lycos.de> 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>