summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/dvb-usb
AgeCommit message (Collapse)Author
2007-07-30Usb/vp7045.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-07-27Dvb-usb/af9005-fe.c: error check fixesMauro Carvalho Chehab
From: Adrian Bunk <bunk@stusta.de> This patch: - adds a missing error check and - removes an error check that could never be true Both spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Luca Olivetti <luca@ventoso.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-07-27Af9005 fix tuner module unloadMauro Carvalho Chehab
From: Luca Olivetti <luca@ventoso.org> This patch removes the useless tuner field and avoids a double free of the tuner (either mt2060 or qt1010). Signed-off-by: Luca Olivetti <luca@ventoso.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-07-25Add initial support for Dual-DVB-T stick based on DiB7700 and MT2266Patrick Boettcher
From: Olivier DANET <odanet@caramail.com> - Microtune MT2266 driver. - Preliminary support for these dual tuner devices : - Pinnacle Dual DVB-T diversity - Terratec Cinergy DT USB XS diversity - Hauppauge Nova TD USB Signed-off-by: Olivier DANET <odanet@caramail.com> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2007-07-21dtt200u: add support for the Miglia TVMini USB DVB-T adapterMichael Krufky
From: Rasmus Rohde <rohde@duff.dk> add code for autodetection and firmware download to the Miglia TVMini USB DVB-T adapter. After firmware download, the device re-registers using the WT220U_ZL0353_WARM usb id. Signed-off-by: Rasmus Rohde <rohde@duff.dk> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-07-05Firmware extract and loading for opera dvb-usb updateMarco Gittler
From: Marco Gittler <g.marco@freenet.de> Better way of creating and loading the firmware used. Update for get_dvb_firmware script to extract the files for opera usb-box Help file for creating the firmware added Signed-off-by: Marco Gittler <g.marco@freenet.de>
2007-06-28Fix: remove unused struct that could avoiding load the firmwareMauro Carvalho Chehab
From: Marco Gittler <g.marco@freenet.de> The dvb_usb_device* d is not used anymore and can be removed. Signed-off-by: Marco Gittler <g.marco@freenet.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-22dibusb-mb: fix tuner autodetection regressionMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> We must set i2c_msg.addr in order for the autodetection test to succeed! Signed-off-by: Michael Krufky <mkrufky@linuxtv.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-06-12dibusb-mb: fix broken 'tuner_pass_ctrl' functionalityMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> 'tuner_pass_ctrl' functionality of the dib3000-mb devices was broken in the previous changeset: "dibusb-mb: convert pll handling to properly use dvb-pll" This patch fixes this problem by assigning this functionality to the i2c_gate_ctrl callback Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2007-06-12dvb-usb: kill unused tuner/i2c functionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> These two functions are no longer being used. kill dvb_usb_tuner_init_i2c kill dvb_usb_tuner_set_params_i2c This functionality has been taken over by dvb-pll Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
2007-06-02dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configureTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The last user of dvb_pll_configure was the dvb-usb function dvb_usb_tuner_calc_regs(), which was nothing more than a wrapper around dvb_pll_configure(). It's just a copy of the functionality provided by the tuner_ops calc_regs method, and can be deleted. There were two users of dvb_usb_tuner_calc_regs(). One was dvb_usb_tuner_set_params_i2c(), which is converted to use fe->ops.tuner_ops.calc_regs(). The other was the digitv driver. This driver can use one of two demods, mt352 or nxt6000. For the mt352, the driver would set tuner_ops.calc_regs to dvb_usb_tuner_calc_regs(). We can just attach dvb_pll and use the tuner_ops.calc_regs() provided by that module. For the nxt600, the driver would set tuner_ops.set_params to digitv_nxt6000_tuner_set_params. That function would in turn use dvb_usb_tuner_calc_regs(). We convert it to use tuner_ops.calc_regs() instead, and use dvb_pll_attach. The digitv_tuner_attach() needs to know which frontend was attached by digitv_frontend_attach(), since the nxt6000 needs tuner_ops.set_params() to be overridden with digitv_nxt6000_tuner_set_params(). So to do this a digitv_state that says which frontend was used is added to the dvb_usb_device private state field. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-06-04dvb: use '+=' instead of '=' for EXTRA_CFLAGSTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The Makefiles in the dvb directory tree used '=' when defining EXTRA_CFLAGS rather than '+=', which is far more common in the rest of the kernel source. = 14 times (9 of which this patch removes) := 25 times += 123 times This change also has certain advantages for the out of kernel v4l-dvb build system. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-05-23Input: drivers/media - switch to using input_dev->dev.parentMichael Krufky
From: Dmitry Torokhov <dtor at mail.ru> In preparation for struct class_device -> struct device input core conversion switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <dtor at mail.ru> Acked-by: Thierry Merle <thierry.merle@free.fr> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-22merge: http://linuxtv.org/hg/~aapot/m920xMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-13Backport kernel changeset 59c51591a0ac7568824f541f57de967e88adaa07Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync: The original patch is from Michael Opdenacker <michael@free-electrons.com> Fix occurrences of "the the " Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-13Backport several i2c cleanups from mainstreamMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> backport commit 2096b956d24c4b5950b808fc23b218425d79ebb1 from David Brownell <david-b@pacbell.net> Maybe I've merged also other i2c cleanups here that happened on Kernel. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-13Whitespace cleanupsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-09dibusb-mb: use dvb_attach for dib3000mb_attachMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> convert calls to dib3000mb_attach to use dvb_attach Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-09dibusb-mb: convert pll handling to properly use dvb-pllMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> moved tda665x pll_init into dvb_pll_desc dvb_pll_tda665x.initdata convert handling of tda665x and tua6010xs to properly use dvb-pll Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-09umt-010: trivial whitespace cleanupMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-09umt-010: convert tua6034 handling to properly use dvb-pllMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> 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-05-08merge: http://linuxtv.org/hg/~mkrufky/dvb-pll-convMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-08Integrate all users of the fmd1216 tuner with dvb-pllTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Enhance the dvb-pll definition of the fmd1216 tuner by adding an init sequence and a sleep sequence. The init sequence sets the AGC control register to 0xa0, selecting the fast time constant and 112 dBuV take-over point. This the recommended value for DVB-T operation. The sleep sequence sets bit P4 (which is believed to turn the analog demodulator on), turns off the tuning voltage, and sets the AGC control register to 0x60 (external AGC voltage, the recommended value for analog operation). The existing dvb-pll users in the cx88 driver, listed below, will gain these init and sleep sequences. CX88_BOARD_HAUPPAUGE_HVR1100 Hauppauge WinTV-HVR1100 DVB-T/Hybrid CX88_BOARD_HAUPPAUGE_HVR1100LP Hauppauge WinTV-HVR1100 DVB-T/Hybrid (Low Profi CX88_BOARD_WINFAST_DTV2000H WinFast DTV2000 H CX88_BOARD_HAUPPAUGE_HVR3000 Hauppauge WinTV-HVR3000 TriMode Analog/DVB-S/DV CX88_BOARD_HAUPPAUGE_HVR1300 Hauppauge WinTV-HVR1300 DVB-T/Hybrid MPEG Encod This non-dvb-pll user in the cx88 driver should only gain the sleep sequence, as it already had an equivalent init sequence. The non-dvb-pll code for this user is removed. X88_BOARD_DNTV_LIVE_DVB_T_PRO digitalnow DNTV Live! DVB-T Pro In these saa7134 driver, these non-dvb-pll users are converted to use dvb-pll: SAA7134_BOARD_MD7134 Medion 7134 SAA7134_BOARD_ASUS_EUROPA2_HYBRID Asus Europa2 OEM The saa7134 functions philips_fmd1216_tuner_init(), philips_fmd1216_tuner_sleep(), and philips_fmd1216_tuner_set_params() are deleted and the dvb-pll versions are used. This should result in equivalent sleep, init, and tuning sequences being sent to the tuner. For the cxusb driver, only one board is effected: USB_PID_MEDION_MD95700 Medion MD95700 This board used dvb_usb_tuner_init_i2c() and dvb_usb_tuner_set_params_i2c() for init and tuning, respectively. These functions are effectively the same as the dvb-pll versions. They call a tuner pass control function defined at the dvb-usb level, but this does not matter, as this card does not have a tuner pass control function (only the dib3000mb does). This board will gain the sleep sequence, while init and tuning should be unchanged. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-08add support for A-LINK DTU dvb-t adapterAapo Tahkola
From: Aapo Tahkola <aet@rasterburn.org> Support for A-LINK DTU(m) is not included in this patch. Acked-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Aapo Tahkola <aet@rasterburn.org>
2007-05-07Marked af9005 driver as experimental and add dependendy for qt1010Mauro Carvalho Chehab
From: Luca Olivetti <luca@ventoso.org> Marked af9005 driver as experimental and add dependendy for qt1010; Added a dependency on qt1010 in Kconfig; Corrected the experimental gain reduction of the mt2060 in case of strong signal (though it is code included in #ifdef 0). Signed-off-by: Luca Olivetti <luca@ventoso.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-07Add support for the AF9005 demodulator from AfatechMauro Carvalho Chehab
From: Luca Olivetti <luca@ventoso.org> Signed-off-by: Luca Olivetti <luca@ventoso.org> Signed-off-by: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-07merge: http://linuxtv.org/hg/~mkrufky/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-06merge: http://linuxtv.org/hg/~aapot/m920xMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.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-05-04dvb-usb: fix typoMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> replace "streaming_crtl" with "streaming_ctrl" Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2007-05-04Enable DiSEqC in Starbox II (vp7021a)Mauro Carvalho Chehab
From: Pat Erley <pat-lkml@erley.org> Uncomments code in vp702x-fe.c to enable DiSEqC in vp7021a Cc: <linux-dvb@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Pat Erley <pat@erley.org>
2007-04-23opera: use 7-bit i2c addressesMichael Krufky
From: Marco Gittler <g.marco@freenet.de> - the tuner i2c addr now without define (as wanted). - now 7 bit addr are used (the power_ctrl fkt ist ok so, because this is a raw write) - the addr >> 1 , addr << 1 is ok so, i think beause the read write is now taken from the last bit. - now i have no datasheet for the device, all taken from usb-logs Signed-off-by: Marco Gittler <g.marco@freenet.de> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
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-04-19Merge backoutMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-04-19Add support for Opera S1- DVB-USBMauro Carvalho Chehab
From: Marco Gittler <g.marco@freenet.de> This patch adds support for DVB-Opera S1 USB 2.0 BOX. Signed-off-by: Marco Gittler <g.marco@freenet.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-04-14DVB: Fix for bug 8312: oops on dvb-usb-remote when changing keymapMauro Carvalho Chehab
From: Olaf Kirch <olaf.kirch@oracle.com> DVB USB remotes do not support changing keycode maps but set input_dev->keycodesize and input_dev->keycodemax without setting input_dev->keycode. This causes kernel oops when user tries to look up (or change) current keymap. While the proper fix would be to make remotes handle keymap changes we'll just remove keycodemax and keycodesize initialization so EVIOCGKEYCODE and EVIOCSKEYCODE will simply return -EINVAL. Signed-off-by: olaf.kirch@oracle.com Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.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>