summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb/m920x.c
AgeCommit message (Collapse)Author
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-07-08v4l-dvb: remove support for kernels < 2.6.16Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Phase 4 removes the compatibility support for kernels < 2.6.16. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-05-21 m920x: unaligned accessMauro Carvalho Chehab
From: Al Viro <viro@ftp.linux.org.uk> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-04-09Adds selectable adapter numbers as per module optionMichael Krufky
From: Janne Grunau <janne-dvb@grunau.be> The adapter_nr module options can be used to allocate static adapter numbers on a driver level. It avoids problems with changing DVB apapter numbers after warm/cold boot or device unplugging and repluging. Each driver holds DVB_MAX_ADAPTER long array of the preferred order of adapter numbers. options dvb-usb-dib0700 adapter_nr=7,6,5,4,3,2,1,0 would result in a reversed allocation of adapter numbers. With adapter_nr=2,5 it tries first to get adapter number 2 and 5. If both are already in use it will allocate the lowest free adapter number. Signed-off-by: Janne Grunau <janne-dvb@grunau.be> Acked-by: Hermann Pitton <hermann.pitton@arcor.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-04-08media/dvb/dvb-usb replace remaining __FUNCTION__ occurrencesMichael Krufky
From: Harvey Harrison <harvey.harrison@gmail.com> __FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-09m920x: add missing error handling to prevent syslog spammingAapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-09m920x: enable second adapter on LifeView TV Walker Twin DVB-T USB2.0Aapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-09m920x: make sure devices manufactured by Dposh are not affected by previous ↵Aapo Tahkola
hw pid filtering changes From: Aapo Tahkola <aet@rasterburn.org> Doing so might crash it. Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-08m920x: second endpoint needs to be changed to alternate setting as wellAapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Spotted by Jeremy Nysen. Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-08m920x: attempt to fix hw pid filters on second endpointAapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-05m920x: Disable second adapter on LifeView TV Walker Twin while it doesn't ↵Aapo Tahkola
work properly. From: Nick Andrew <nick@nick-andrew.net> Disable second adapter on LifeView TV Walker Twin while it doesn't work properly. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Nick Andrew <nick@nick-andrew.net>
2007-04-20m920x: loosen up 80-col limitAapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Do not follow 80-col limit where it would cause inconsistency. Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-03-26m920x: rename function prefixes from m9206_foo to m920x_fooMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-26m920x: replace deb_rc with debMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> deb_rc is used by the dvb-usb core framework. This patch replaces all occurances of deb_rc with deb, in m920x.c, so that its clear that we're not using dvb-usb's deb_rc. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-26m920x: remove duplicated codeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Some of the devices supported by the m920x driver have identical functions used for tuner_attach and frontend_attach. This patch consolidates the functions in question, and updates the debug code to be generic for each. This patch decreases the size of the kernel. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-26m920x: group like functions togetherMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - Group the tuner configurations together. - Group the demod configurations together. - Group the device-specific initialization functions together. - Group demod_attach functions together. - Group tuner_attach functions together. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-22m920x: various whitespace cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - 80-column cleanups - spaces between operators - tabbing style Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-22m920x: Initial support for devices likely manufactured by DposhMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> These devices are sold by various companies and chains not involved in hardware manufacturing business. This particular device owned by winisch (from irc) had a sticker with text "TCM 234292" on it. This device was never opened so it is possible that Dposh did not manufacture this stick. However, the bundled software and their product line points into that direction. Also thanks to Michael Krufky for spotting this hw filtering problem and thus avoiding hair loss. Hardware pid filters and the bundled remote controller are not currently supported on this device. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-22m920x: add "c-basic-offset: 8" to help emacs to enforce tabbing styleMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-22m920x: Add support for LifeView TV Walker TwinMichael Krufky
From: Nick Andrew <nick@nick-andrew.net> Add support for "LifeView TV Walker Twin" (USB IDs 10fd:0513, 10fd:0514) Signed-off-by: Nick Andrew <nick@nick-andrew.net> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-18m920x: add support for Anubis Electronics / MSI Digi Vox Mini IIMichael Krufky
From: Pierre Willenbrock <pierre@pirsoft.de> Add support for Anubis Electronics "Lifeview" (USB-ID: 0x10fd:0x1513) Signed-off-by: Pierre Willenbrock <pierre@pirsoft.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-15m920x: add error messages for debugging purposesMichael Krufky
From: Pierre Willenbrock <pierre@pirsoft.dnsalias.org> Signed-off-by: Pierre Willenbrock <pierre@pirsoft.dnsalias.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-15m920x: rename megasky_identify_state to m920x_identify_stateMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> This function should work for all m920x-based devices. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-12m920x: Detect zero-length I2C messages and fix a typoTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Change a 00 to just 0 Detect zero-length I2C messages and return not supported. I think I know how to send one, but the problem is getting the slave's ack. The only point of a zero-length message is for probing; too see if the slave will ack its address. Since we don't know how to get the ack, we can't support zero-length messages in a useful way, so it's probably best to just return not supported for them. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-05m920x: Improve I2C operationsTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Write some better documentation about what might be known about how the m920x I2C works, since a datasheet is lacking. The I2C xfer function should now handle more types of I2C transactions than it could before. Those it can't, will return error codes instead of being executed incorrectly. Multi-byte reads were not being done correctly, which should be fixed. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-03-05m920x: remove unneeded codeMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-05m920x: rework driver code to allow for different devicesMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-03-05m920x: i2c cleanupsMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> - Implement m920x i2c as suggested by Pierre Willenbrock - remove "magic" hack - r/w bit is not part of the i2c address - move hardware remarks to header file CC: Pierre Willenbrock <pierre@pirsoft.dnsalias.org> Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-01-23m920x: move filter caps from device caps to adapter capsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Move filter caps from device caps to adapter caps for the megasky driver. This fixes usb1.1 operation. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-01-23m920x: group tuner / demod callback functions togetherMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-01-21whitespace / 80-column cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-01-21m920x: Fix tuner identification bug with qt1010 moduleMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> Fixes qt1010 identification bug with megasky caused by the Quantek QT1010 tuner module patch. Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-01-21dvb: add new qt1010 tuner moduleMichael Krufky
From: Antti Palosaari <crope@iki.fi> QT1010: - old qt1010-code totally rewritten and put in own kernel module - same enhancements as my earlier QT1010 125kHz patch - tuner initialization - register 1f calculation - register 20 calculation - register 25 calculation m920x: (MSI Megasky) - use new QT1010 module instead of old code Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-10-07m920x: correct oops when loading moduleMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> move .caps from the adapter properties to the device properties. Thanks to Martin Schwier for confirming this fix. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-10-03m920x: fix build in hg tree / other trivial fixesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> - removed extra newline - removed NULL entry - fixed versions.txt Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-28m920x: move qt1010_tuner_attach function into qt1010.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> The megasky_tuner_attach function is not specific to this device. This patch renames it to qt1010_tuner_attach and moves it into the qt1010 header file. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-28m920x: more trivial cleanupsMichael Krufky
From: Patrick Boettcher <patrick.boettcher@desy.de> - Removed some needless brances - Removed an unneeded check for adapter[0] - Removed unneeded declaration of .generic_bulk_ctrl_endpoint = 0x01 Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-28m920x: more cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Some cleanups and suggestions from Patrick Boettcher. Dropped the mutex in m9206_rc_query using #if 0, because M9206_CORE, M9206_I2C, M9206_FILTER and M9206_FW can be accessed concurrently. Thanks to both Aapo Tahkola and Patrick Boettcher. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-27m920x: misc updates and fixesMichael Krufky
From: Aapo Tahkola <aet@rasterburn.org> - hardware pid filtering no longer enabled unless in usb 1.x mode - more responsive rc handling - some minor bug fixes and code refolding - m9206_write delay dropped (doesn't seem to be needed) Signed-off-by: Aapo Tahkola <aet@rasterburn.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-23m920x: break out qt1010 tuner code into a separate fileMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> qt1010 is a tuner used in some other devices, so this code should be put into a separate file so that it could be reused by other drivers. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-23m920x: trivial cleanupsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-23m920x: update megasky driver for recent changes in the dvb treeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> update code to use dvb_attach() update code to reflect recent changes to the dvb_usb framework Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-23m920x: cleanups after rename from megasky.[ch]Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-09-23dvb-usb: rename megasky.[ch] to m920x.[ch]Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>