summaryrefslogtreecommitdiff
path: root/linux/drivers
AgeCommit message (Collapse)Author
2003-01-13fix unresolved symbol __ucmpdi2 in 2.4 buildJohannes Stezenbach
(don't use 64bit ints in switch())
2003-01-13Add NTSC mode back to av7110 driver.Michael Hunold
2003-01-10- Fix broken i2c irq transfer, due to Holger's changesMichael Hunold
- clean up the mxb driver and it's helper modules (rename the structures, add GPL license to the appropriate files, c99 initialisers) - fix 2.5.55 "module insertion causes bug in kobject.o" issue - fixed missing exported symbols in budget-core
2003-01-09return meaningful error valuesHolger Waechtler
2003-01-09- add #include <asm/semaphore.h> and #include <linux/timer.h> in orderHolger Waechtler
to avoid implicit declarations - make dvb_net buffers const pointers to suppress a warning when calling the demux
2003-01-09take over Bugfixes and improvements by Ralph Metzler <rjkm@metzlerbros.org>Holger Waechtler
2003-01-09Forgot to add some files.Michael Hunold
2003-01-09Fixes for 2.5.55 all over the place:Michael Hunold
- removed the patches, they are not needed any more. you can now use a vanilla 2.5.55 kernel - created a new backport for video-buf and videodev from the 2.5.55 sources - necessary fixes to the saa7146 driver due to changes in 2.5.55 - the core budget functions are now provided by a module called "budget-core.o". (otherwise static compilation is not possible...) - removed #ifdef MODULE crap from all files Misc. - "xawtv" (using xv extension) resulted in wrong colors. the problem is within "xawtv". Gerd Knorr told me, that it'll be fixed in the next release. I tested this version with 2.4.20, 2.5.55 (modules) and 2.5.55 (static).
2003-01-09last commit did break select()Andreas Oberritter
2003-01-08Removed the whole "device<=>extension" matching crap, the pci subsystemMichael Hunold
can do this much better. We now simply register one pci driver for every extension and are done with it -- if a device actually exists, the pci subsystem calls us back. That's it. Warning: this triggers a bug in the 2.5.x module subsystem -- you should *not* use the driver.av7110 script and modprobe the driver. You can a) build your kernel staticall b) insert the modules one by one with *insmod* I already filed a bug report to lkml. Fixed a bug in Kconfig which prevented the saa7146 modules from being build.
2003-01-08apply optimisation patches suggested by Dr. Werner Fink <werner@suse.de>Holger Waechtler
2003-01-08use writers count, not users count to decide if we want to shut down the ↵Holger Waechtler
frontend. Now the frontend will get closed when no more users with write access have the frontend opened.
2003-01-08apply fix regarding first tune after device open reported by Andrew de ↵Holger Waechtler
Quincey <adq_dvb@lidskialf.net>
2003-01-07Removed dependency from dvb-core and ttpci-budget to videodev/v4l,Michael Hunold
because dvb-core was never dependend at all and ttpci-budget can now be build without videodev dependency.
2003-01-07- Fixed all initializers to C99, expect av7110.cMichael Hunold
- removed unused variables - other code clenaups - corrected H_PIXELS_PAL to 720 (not used for DVB-cards)
2003-01-06Fixed the "gray bar on the left side of the video window afterMichael Hunold
startup" bug.
2003-01-05After all, using the i2c irq wasn't a good idea. After long hours ofMichael Hunold
testing why the !#+?§"1 TS stream stops and "debi oops" messages appear, I found out that this is caused by the i2c irq handler. Don't ask me why, but returning to the old code solved this mystery. Apparently, the additional i2c interrupts caused some timing problems or the saa7146 is simply too f*cked up. I left the code in however, it works for the analog MXB driver, so the extension should decide if it should be used. Removed some additional debug messages, which were commented out anyway.
2003-01-05Enable the FE before dvb_register_i2c_bus(), otherwise it won't beMichael Hunold
recognized directly after system bootoup. This one got lost when I cleanup up the attach()/detach() logic.
2003-01-05Fixed a saa7146 driver flaw: after a read() call is satisfied,Michael Hunold
a previoulsy running overlay window should be re-enabled.
2003-01-04- Removed preinit() from saa7146 probe()/attach() logic, it's not usedMichael Hunold
at all - fixed most obvious flaws in budget.c, it's partially tested (ie. module loads/unloads ok) - added the "video part" to budget-av.c, it's partially tested (ie. module loads/unloads ok, xawtv can access the video inputs)
2003-01-04Forgot to add budget-av.c and budget.hMichael Hunold
2003-01-04Some more changes... (but we're stabilizing...)Michael Hunold
2.5.x: - exchanged the Kconfig files for "ttpci" and "ttpci-budget" - removed the "SAA7146 based" from the card descriptions, but put it to the remark some lines above saa7146: - simplified the probe(), attach(), detach() logic, since all dvb devices can be identified by their subvendor/subdevice ids av7110: - added two wait_for_debi_done() calls in gpioirq(). (All other IER_ENABLE() calls are preceded by wait_for_debi_done()) budget: - budget.c has been split up into budget.c and budget-av.c. The latter is for budget cards with analog video (av) inputs. Definitions are now in budget.h. budget.c exports various functions that are used by budget-av.c, too. The av code is currently missing, though, and needs to be added. unsorted: - various c99 initializer cleanups
2003-01-03Fix build problems for 2.4.x kernelsMichael Hunold
which were caused by the recent changes by adjusting the Makefile.
2003-01-03Build fixes for 2.5.x, thank Gregoire Favre <greg@ulima.unil.ch>Michael Hunold
for pointing out these flaws regularly... Changes in detail: - added comapt.[ch] again, but removed the *_usercopy() crap. We define dvb_usercopy() until generic_usercopy() is available. If you have an external source tree, please check what's actually needed to get your application to compile and report back to me or on the mailing list. Thanks! (Necessary changes to the Makefile, and various dvb files, removed some unnecessary #include <linux/videodev>) - added linux/lib/Makefile. We need to add an include to drivers/media/dvb/dvb-core/Makefile.lib, so that crc32.o gets build automagically (Adjusted the "makelinks" script as well)
2003-01-03Compile fixes for 2.5.54.Michael Hunold
Thanks to Gregoire Favre <greg@ulima.unil.ch> for reporting this.
2003-01-02Do not return values greater than zeroFlorian Schirmer
2003-01-02tiny code cleanupAndreas Oberritter
2003-01-02allow multiple read only usersAndreas Oberritter
2002-12-31apply patch suggested by Uwe SchefflerHolger Waechtler
2002-12-30Next chunk of big splitup / cleanup:Michael Hunold
(tested on 2.4.18 and 2.5.53 -- the budget driver is untested, Holger will test it the next week) saa7146: - completely separated the saa7146 driver into a core-driver (saa7146.o) and a video/vbi part (saa7146_vv.o). this allows you to build the budget driver without av7110 and videodev bloat (see below) The following thinks have been approved by Holger Waechtler: av7110 (now ttpci): - for 2.5.x: removed the av7110 directory and put everything into ttpci. - removed all budget card support from this driver - compile and build fixes for the saa7146 changes ttpci-budget (new): - for 2.5.x: created a new ttpci-budget directory, added a new driver for the budget cards mxb: - compile and build fixes for the saa7146 changes Changed the build and compile files for both 2.5.x and build-2.4 of course...
2002-12-29Major cleanup: the goal is to get rid of the budget card <=> saa7146.o <=> ↵Michael Hunold
videodev.o dependency, so we can later split up the av7110 driver into a av7110 and budget card driver. I tested this on 2.4.18-3 (original RedHat 7.3 kernel) and 2.5.53. Changes in detail: saa7146: - fixed the unitialised timer warnings - split saa7146.o into saa7146.o and saa7146_vv.o: all videodev (ie. v4l) related stuff is now encapsulated in saa7146_vv.o. the extension (ie. mxb or dvb-ttpci) now has to make sure to register the v4l devices via helper functions provided by saa7146_vv mxb: - changes to make the driver compile with the new saa7146 and saa7146_vv parts - fix the vbi bypass issue for MXBs with saa7146, rev. 1 card av7110: - changes to make the driver compile with the new saa7146 and saa7146_vv parts - some changes related to the upcoming av7110 <=> budget splitup, but they are commented out - changed the saa7146 PAL values to experimental values that look good to me, but kept the old values as a comment. where are the original values from? there is a big black border on most channels on the left side which annoyed me... - changed from video/generic_usercopy() to dvb_usercopy() and put this into the source code, not into compat.c - moved the crc_32* stuff from compat.c to the source file where it is used - now compat.[ch] was removed completely, all references were deleted from all other files. other: - updated the README and TODO files - changed "makelinks" to remove alps_bsru6 stuff from kernel when making the symlinks - fixed the build files in "build-2.4" - fixed all other files needed for 2.5.x kernel build
2002-12-28Added fix for fidbirq() related crashes for budget cards: simply ignoreMichael Hunold
obviously bogus dmapos values.
2002-12-28- added timeout handling for i2c_writeout(); it seems that theJohannes Stezenbach
SAA7146 does not generate an I2C error irq when we are probing for a non-existant device (so there's neither an ACK nor a NACK at the end of the address phase) - don't request the I2C error irq anymore, since it isn't currently being handled; we just wait for the /BUSY irq or timeout; if there were errors during transmission they will still be detected from the status register after the /BUSY irq - added some more debug to hw_interrupt() TODO: I think SAA7146_I2C_TIMEOUT is too large; 10ms should do?
2002-12-28don't hang uninterruptibly when opening the frontend deviceJohannes Stezenbach
and something goes very wrong with the kdvb-fe thread
2002-12-25As promised, I changed the "retry-loop" to the style of the "old" saa7146Michael Hunold
driver. I doesn't do any harm for my analog drivers and apparently fixes some bugs related to some frontends/tuners, who expect certain start/stop cycles. Please check if these tuners work now...
2002-12-23generic stv0299 driver by Peter Schildmann <peter.schildmann@web.de>Holger Waechtler
replaces the old BSRU6 driver..
2002-12-23Removed some leftover bogus debugging messages, cleaned up the TODOMichael Hunold
file to reflect the latest changes.
2002-12-23For some unobvious reason, analog cards (ie. the MXB) and digital cardsMichael Hunold
(ie. the av7110) handle the odd/even fields differently. I added a new field to the extension, which holds special flags of the extension and the device. I declared the MXB way of handling fields as "normal", so the av7110 extension sets SAA7146_EXT_SWAP_ODD_EVEN here. @Holger: I added some superfluous "struct saa7146_dev *dev" variables back to some functions. These cause ugly warnings at compile time, I admit, but they are necessary if you want to use the debug macros to trace a saa7146 register for example. Please leave them in for now -- I need this when I switch between old-DVB / old-MXB <=> new-DVB / new-MXB drivers and try to hack out the differences.
2002-12-23Changed the debug messages to use a similar system like saa7146, it'sMichael Hunold
possible to create a complete call trace now. (You can #if 0 this out, if you are concerned about runtime drawbacks...)
2002-12-23Official patch for "get_ac3_info()" by Holger.Michael Hunold
(applied by me because he's already at home...)
2002-12-22Fixed one wrong IER_DISABLE (look at the commented out version below,Michael Hunold
copy & paste error), removed duplicate dvb_register_i2c_bus() call, removed all references to RPS0, it's not used at all. (this fixes the capturing problems)
2002-12-22Changed i2c_writeout() and the irq handler to use a waitqueueMichael Hunold
instead of busy waiting for an i2c transaction to finish. Left the old method in there. if you need it (or if i screwed up), set "use_i2c_irq" to zero in saa7146_i2c.c to get the old behaviour.
2002-12-22EXPORT_NO_SYMBOLS is no longer needed in drivers.Michael Hunold
2002-12-22"get_ac3info" is referenced by av7110.o, but the symbol is notMichael Hunold
exported. Holger, you made a change a few days ago, introducing av7110_ipack.c and this. If this is intended, you should give it a new name with the "dvb" prefix.
2002-12-20Reintroduce video_copy - it's still needed by dvb-coreFlorian Schirmer
2002-12-20Compat stuff for 2.4Florian Schirmer
2002-12-20Remove stale exportsFlorian Schirmer
2002-12-20- move ipack handling into av7110_ipack.[hc]Holger Waechtler
- more namespace cleaning
2002-12-20 - fix the not-checked-return value at start_feed() bugHolger Waechtler
- code review + simplification - use const pointers in section and ts callbacks
2002-12-20Removed the dependecy to i2c-core from saa7146 and av7110,Michael Hunold
changed mxb to (un)register the i2c adapter by itself