summaryrefslogtreecommitdiff
path: root/linux
AgeCommit message (Collapse)Author
2008-01-25radio-si570x: Some fixes and new USB ID additionMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> - avoid poss. locking when doing copy_to_user which may sleep - RDS is automatically activated on read now - code cleaned of unnecessary rds_commands - USB Vendor/Product ID for ADS/Tech FM Radio Receiver verified (thanks to Guillaume RAMOUSSE) Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-25radio-si470x: Some cleanupsMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> - code reordered to avoid function prototypes - switch/case defaults are now more user-friendly - unified comment style - applied all checkpatch.pl v1.12 suggestions except the warning about the too long lines with bit comments - renamed FMRADIO to RADIO to cut line length (checkpatch.pl) Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-24em28xx: remove has_tunerMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> has_tuner flag doesn't make much sense, since tuner_type=TUNER_ABSENT means the same thing. Having two ways to say that a tuner is not present is not nice, since it may lead to bad setups. In fact, with the previous code, if a device were using has_tuner=0, but the user forces a tuner, with modprobe option tuner=type, the modprobe option won't work. Also, tveeprom returns TUNER_ABSENT, when tuner is unknown or absent. So, with the previous logic, in this case, the driver should set has_tuner=0, or has_tuner=1 otherwise. Instead of adding several additional tests and setups, better just to remove .has_tuner. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-21cx88: Ensure the tuner is reset correctlySteven Toth
From: Steven Toth <stoth@hauppauge.com> Previous patches assume the tuner was on a different gpio. This patch corrects this. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
2008-01-21IR corrections for the Pinnacle 800iSteven Toth
From: Steven Toth <stoth@hauppauge.com> IR corrections for the Pinnacle 800i Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
2008-01-21merge: http://linuxtv.org/hg/~mkrufky/pendingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-21tuner: suppress obsolete tuner i2c address warning for XC5000 tunersMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> We already know that the XC5000 tuner can only be located at i2c address 0x61, 0x62, 0x63 or 0x64 We shouldn't display this warning if the XC5000 tuner is present. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-21make tuner names consistent with standard casesMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Change TDA9887 to tda9887. TDA8290 shall reflect the actual hardware present in its name, ie: tda8295+18271 tda8290+8275a Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-20 ansonic branded dvb-t usb stick support in the af9005 driverMauro Carvalho Chehab
From: Luca Olivetti <luca@ventoso.org> Marcos Melero (marcosmelero at gmail.com) reported he could make his dvb-t usb stick work with the af9005 driver by changing the device ids (10b9:6000). The stick is branded "Ansonic" (one of the brands of a spanish chain of supermarkets) with no other identification of the model. Since neither Marcos nor me know the OEM for the stick, in the attached patch I used Ansonic for the ids/description. Signed-off-by: Luca Olivetti <luca@ventoso.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-20merge: http://linuxtv.org/hg/~mkrufky/tda18271Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-19tda18271: when tuning digital, the analog demod must be tri-statedMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Call analog_ops.standby during tda18271_set_params, to put the tda8295 in tri-state when tuning digital channels. Otherwise the tda8295 will interfere with the signal coming from the tda18271 into the digital demodulator. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-17merge: http://linuxtv.org/hg/~mkrufky/build-fixSteven Toth
From: Steven Toth <stoth@hauppauge.com> merge: http://linuxtv.org/hg/~mkrufky/build-fix Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-17fix broken build when CONFIG_USB_SI470X is setMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-15Finalise support for the Pinnacle HD 8000iSteven Toth
From: Steven Toth <stoth@hauppauge.com> Correctly set the atatch structures, enable IR, configure the xc5000 tuner includes. Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-15Adds the proper compatibility code for radio-si470x and stk-webcamMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Make radio-si470x and stk-webcam backward compatible with older kernels. This patch adds compat.h header for those files, reorder include order and adds USB_DEVICE_AND_INTERFACE_INFO macro. Thiw way, stk-webcam is backward compatible with 2.6.22, and radio-si470x with kernel 2.6.20. The backports weren't tested, but compile fine. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-14USB radio driver for Silicon Labs Si470x FM Radio ReceiversMauro Carvalho Chehab
From: Tobias Lorenz <tobias.lorenz@gmx.net> this patch adds a new driver for the Silicon Labs Si470x FM Radio Receiver. It should also work for the identical ADS/Tech FM Radio Receiver (formerly Instant FM Music) as soon as I find out the USB Vendor and Product ID. The driver is inspired by several other USB and radio drivers, but mainly from the D-Link DSB-R100 USB radio (dsbr100.c). The USB stick currently has an Si4701 FM RDS radio receiver. But the other Si470x devices are pin and register compatible, so that in the future the driver can easily be patched to support these too. Therefore I named the driver radio-si470x and the configuration option usb-si470x. The driver itself just provides the control function over the radio. For getting audio back, the device support the USB audio class, which is implemented in the already existing driver. I tested the driver in the last days, until it now satisfies all my functionality and robustness requirements. The application I used for testing was kradio. Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-14Fix build breakage of the bttv driver, when advanced debugging is not enabledMauro Carvalho Chehab
From: Zoltan Devai <zdevai@gmail.com> Signed-off-by: Zoltan Devai <zdevai@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-07 Cleans up error handling on or51xxx_attachMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> state is already NULL. Reviewed-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-18include sound/driver.h should be before sound/core.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Add compat.h at the proper place Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-18Remove sound/driver.hMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> sound/driver.h is already included by sound/core. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-05xc5000: Small amount of cleanup and commenting.Steven Toth
From: Steven Toth <stoth@hauppauge.com> xc5000: Small amount of cleanup and commenting, just for clarification. Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-05XC5000: Fix support for HVR1500Q broken by patch 1Steven Toth
From: Steven Toth <stoth@hauppauge.com> From Zhang: This patch fixes support for the HVR1500Q which was broken when the xc5000 analog patch was added. Signed-off-by: Chaogui Zhang <czhang1974@gmail.com> Patch committed as-is, cleanups to follows .... Steve Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-05New card supported(partially): Pinnacle 800iSteven Toth
From: Steven Toth <stoth@hauppauge.com> From Zhang: This patch continues the support for the Pinnacle HD 800i. Signed-off-by: Chaogui Zhang <czhang1974@gmail.com> Patch committed as-is, cleanups to follow ... Steve Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-05xc5000: Tuner analog supportSteven Toth
From: Steven Toth <stoth@hauppauge.com> From Zhang: This an updated patch that adds analog support for the xc5000 tuner driver. it was tested on a Pinnacle PCTV HD 800i card (patches to follow). Patch commited as-is, cleanup to follow ... Steve. Signed-off-by: Chaogui Zhang <czhang1974@gmail.com> Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-15s5h1409: Bug fix for parallel support.Steven Toth
From: Steven Toth <stoth@hauppauge.com> Parallel support was not working with the s5h1409 and the Pinnacle HD800i. This patch fixes the demodulator driver and ensures that all existing s5h1409 based products configure the demodulator correctly. Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-01 radio: Use video_device_release rather than kfreeMauro Carvalho Chehab
From: Julia Lawall <julia@diku.dk> The file drivers/media/video/videodev.c defines both video_device_alloc and video_device_release. These are essentially just kzmalloc and kfree, respectively, but it seems better to use video_device_release, as done in the other media files, rather than kfree, in case the implementation some day changes. The problem was found using the following semantic match. (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T,T1,T2; identifier E; statement S; expression x1,x2,x3; int ret; @@ T E; ... * E = video_device_alloc(...); if (E == NULL) S ... when != video_device_release(...,(T1)E,...) when != if (E != NULL) { ... video_device_release(...,(T1)E,...); ...} when != x1 = (T1)E when != E = x3; when any if (...) { ... when != video_device_release(...,(T2)E,...) when != if (E != NULL) { ... video_device_release(...,(T2)E,...); ...} when != x2 = (T2)E ( * return; | * return ret; ) } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12 drivers/media/common: Add missing video_device_releaseMauro Carvalho Chehab
From: Julia Lawall <julia@diku.dk> Video_device_alloc returns the result of a kzalloc. In this case, the value is stored in a local variable which is not copied elsewhere before the point of the error return (video_register_device does not save its first argument anywhere if it returns a negative value). Thus, a video_device_release it needed before the error return. The problem was found using the following semantic match. (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ type T,T1,T2; identifier E; statement S; expression x1,x2,x3; int ret; @@ T E; ... * E = video_device_alloc(...); if (E == NULL) S ... when != video_device_release(...,(T1)E,...) when != if (E != NULL) { ... video_device_release(...,(T1)E,...); ...} when != x1 = (T1)E when != E = x3; when any if (...) { ... when != video_device_release(...,(T2)E,...) when != if (E != NULL) { ... video_device_release(...,(T2)E,...); ...} when != x2 = (T2)E ( * return; | * return ret; ) } // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> CC: Oliver Endriss <o.endriss@gmx.de> CC: Michael Hunold <michael@mihu.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-14merge: http://linuxtv.org/hg/~mkrufky/tda18271Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-14tda18271: tda18271_cal_on_startup should be declared staticMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This module option variable is only handled within the file tda18271-fe.c - Declare this variable as static. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-14merge: http://linuxtv.org/hg/~mkrufky/pendingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-14merge: http://linuxtv.org/hg/~tmerle/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-13tda18271: provide a choice whether to perform rf cal on init or on first tuneMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If module option "cal" is set to 1, the ~22 sec rf tracking filter calibration sequence will be invoked on startup. Otherwise, the calibration will take place during the first tune. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13Kconfig: add missing selections for VIDEO_PVRUSB2Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> VIDEO_PVRUSB2 must select: VIDEO_SAA711X, VIDEO_CX25840, VIDEO_MSP3400, and VIDEO_WM8775 Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Mike Isely <isely@pobox.com>
2008-01-13Fix a regresion left by changeset 7e65d6e8f6dfMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Changeset 7e65d6e8f6df removed a very bad hack on mmap(). However, the fixes weren't considering usermap and overlay memory models. This were breaking direct reading from /dev/video?, used mostly by mpeg aware drivers. Thanks to Steven Toth <stoth@linuxtv.org> for reporting the issue and bissecting it. CC: Steven Toth <stoth@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-13Fix timestamp presentation on vivi driverMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Due to date overflow, vivi were not working fine anymore. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-13tda18271: test RF_CAL_OK to see if we need additional RF calibrationMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Test RF_CAL_OK to see if we need to perform the RF tracking filter calibration after returning from standby. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13tda18271: put the device in standby mode during sleep()Michael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Add function, tda18271_set_standby_mode. During sleep, enter standby mode with slave tuner output enabled, loop through on and xtal oscillator on. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2008-01-13Move all board specific configuration to em28xx-cards.cMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> This cleanup moves the board-specific configurations to em28xx-cards.c. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-13Add USB ID for a newer variant of Hauppauge WinTV USB2Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Thanks to Jeroen Janssen <Jeroen.Janssen@vub.ac.be> CC: Jeroen Janssen <Jeroen.Janssen@vub.ac.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12 V4L: add support for Syntek DC1125 webcamsMauro Carvalho Chehab
From: Jaime Velasco Juan <jsagarribay@gmail.com> This driver supports cameras with USB ID 174f:a311 or 05e1:0501, and the ov965x sensors. These devices are found in some Asus laptops and probably somewhere else. It is based on the stk11xx driver written by Nicolas Vivien Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12 saa7134: add MSI TV@nywhere Plus with the older tda8275 tunerMauro Carvalho Chehab
From: Hermann Pitton <hermann-pitton@arcor.de> Thanks go to Mark Schultz for the initial contribution and to Dean Hilkewich for testing it again. Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12 saa7134: remove the Avermedia Super 007 from eeprom detectionMauro Carvalho Chehab
From: Hermann Pitton <hermann-pitton@arcor.de> saa7134: remove the Avermedia Super 007 from eeprom detection The card made it into the Philips' Tigers eeprom detection and falls through. Since it has attracted already others to follow, which are wrongly identified as TIGER_S then, move it to the usual analog initialization. Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12merge: http://www.linuxtv.org/hg/~stoth/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-12cx23885: dprintk macro cleanupSteven Toth
From: Steven Toth <stoth@hauppauge.com> Added missing do { } while (0) Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-10usbvision: YUV to RGB conversion fixesThierry MERLE
From: Thierry MERLE <thierry.merle@free.fr> All YUV to RGB conversions in usbvision were reverted (conversion to BGR but saying RGB to the application) Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
2008-01-10cx23885: Cleanup of compiler defines and warningsSteven Toth
From: Steven Toth <stoth@hauppauge.com> Portions of the code are if 0'd out but these are placeholders for work already in progress, these will be activiated very shortly. Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-10cx23885: Small cleanupSteven Toth
From: Steven Toth <stoth@hauppauge.com> cx23885: Small cleanup Signed-off-by: Steven Toth <stoth@hauppauge.com>
2008-01-10 bw-qcam: add module parameter 'force_init' to skip polite auto-detection ↵Mauro Carvalho Chehab
prior to direct initialization. From: Brett T. Warden <brett.warden@gmail.com> Setting force_init=1 bypasses the friendly auto-detection by polling the status register, and instead attempts to initialize the qcam directly. Not friendly to other parallel devices, but much more reliable than the auto-detection. Signed-off-by: Brett T. Warden <brett.warden@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-11merge: http://www.linuxtv.org/hg/~stoth/v4l-dvbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-01-10 av7110: fix section mismatchMauro Carvalho Chehab
From: Randy Dunlap <randy.dunlap@oracle.com> Fix driver data name to match whitelist of acceptable names that contain pointers init data so that section mismatch warning is placated. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>