summaryrefslogtreecommitdiff
path: root/linux
AgeCommit message (Collapse)Author
2009-05-05merge: http://jusst.de/hg/v4l-dvb/rev/da67609aae86Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-05cafe_ccic: use = instead of == for setting a value at a varMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> /home/v4l/master/v4l/cafe_ccic.c: In function 'cafe_cam_init': /home/v4l/master/v4l/cafe_ccic.c:778: warning: statement with no effect Priority: high CC: Hans Verkuil <hverkuil@xs4all.nl> CC: saeed bishara <saeed.bishara@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-04xc5000: poll at 5ms interval for register write command completionDevin Heitmueller
From: Devin Heitmueller <dheitmueller@kernellabs.com> Instead of polling at 100ms intervals for register writes, poll at 5ms intervals. This is consistent with the xc5000 specification, and improves tuning time by up to 500 ms on devices that such as the au0828 which do not properly implement i2c clock stretching (since the five register writes that occur for a tuning request often do not complete immediately but do complete far before 100ms has gone by). The net amount of time we wait before timing out is unchanged (500ms). Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-05-04xc5000: add support for DVB-T tuningDevin Heitmueller
From: David T.L. Wong <davidtlwong@gmail.com> This patch adds XC5000 supports for DVB-T 6MHz and 8MHz bandwidth. Priority: normal Signed-off-by: David T.L. Wong <davidtlwong@gmail.com> Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-05-04xc5000: switch to new xc5000 firmware 1.6.114 with redistribution rightsDevin Heitmueller
From: Devin Heitmueller <dheitmueller@kernellabs.com> Xceive has graciously allowed us to now freely redistribute the xc5000 firmware, which eliminates the need for users to manually extract the blob from the Hauppauge driver. Thanks to Brian Mathews <bmathews@xceive.com> for providing this code Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-05-04dib0700: reduce xc5000 sleep time for Pinnacle 801e to 10msDevin Heitmueller
From: Devin Heitmueller <dheitmueller@kernellabs.com> According to the xc5000 spec, the reset pin only needs to be held low for 10ms. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
2009-05-03cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1270Michael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-05-03gspca - stv06xx-vv6410: Set analog gain at initErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Set the analog gain at sensor init. Also set a sensible default value. Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-05-03cafe_ccic: fix sensor detectionMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Due to an uninitialized chip.ident field the chip identification failed. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Thanks-to: saeed bishara <saeed.bishara@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-03STV0900/STV0903: 1. Support Silicon Cut >= 3.0Manu Abraham
2. Remove support for obsolete cuts: 1.0. 1.1. 1.2 3. Try to catch more error cases Driver doesn't now attach to obsolete silcon cuts, It just simply quits. Results in code simplification, with removal of the obsolete cuts. From: Manu Abraham <abraham.manu@gmail.com> Signed-off-by: Manu Abraham <manu@linuxtv.org>
2009-05-02zoran: Fix &&/|| typoMauro Carvalho Chehab
From: Roel Kluin <roel.kluin@gmail.com> Fix &&/|| typo Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02V4L/DVB: cleanup redundant tests on unsignedMauro Carvalho Chehab
From: Roel Kluin <roel.kluin@gmail.com> Remove redundant tests on unsigned. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02radio-fm16: fix g_tuner.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> g_tuner handled capability, audmode and rxsubchans incorrectly. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02radio-fm16: cleanupsMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Remove bogus flags field Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02ivtv/radio: fix V4L2_TUNER_MODE/V4L2_TUNER_SUB confusionMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> V4L2_TUNER_MODE_ was used in a few places where V4L2_TUNER_SUB_ should have been used. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02cx23885: Add preliminary support for the HVR1270Steven Toth
From: Steven Toth <stoth@kernellabs.com> The patch means the board will be recognised, and the parts brought out of reset correctly. This patches depends on the centralized GPIO patch to be merged. What's missing before the HVR-1270 will function for DTV? The model# needs to be added to avoid 'unknown model' output and the LG3305/Tuner need to be attached in cx23885-dvb.c Priority: normal Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-05-11cx23885: mark functions encoder_on_port[bc] as static inlineMichael Krufky
From: Michael Krufky <mkrufky@kernellabs.com> Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-05-02cx23885: Add generic functions for driving GPIO'sSteven Toth
From: Steven Toth <stoth@kernellabs.com> The GPIO's on the product can be in one of three places. To date we've mainly used the GPIO's on the bridge itself, and once on the encoder. Rather than having the complexity of multiple GPIO writes/reads from isolated placed in the driver we'll route them through this function, so we can make intelligent decisions about 1) Where the GPIO lives and 2) Whether it conflicts (based on board) with some other function to avoid bugs. Priority: normal Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
2009-05-09merge: http://www.linuxtv.org/hg/~stoth/tda10048Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-05pvrusb2: Ensure the PVRUSB2 disabled the i2c gate on the tda10048.Steven Toth
From: Steven Toth <stoth@linuxtv.org> ... else DVB-T tuning will not work. Priority: high Signed-off-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2009-05-05tda10048: Added option to block i2c gate control from other drivers.Steven Toth
From: Steven Toth <stoth@linuxtv.org> Currently, DVB-T is broken and this fixes it. The PVRUSB2 has an odd I2C bus configuration where opening the i2c gate on the digital and analog demod causes the tuner to fail. This needs to be protected against for the PVRUSB2. Priority: high Signed-off-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2009-05-02ivtv: fix incorrect bit testsMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Found the coccinelle tool. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Thanks-to: Julia Lawall <julia@diku.dk> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02pvrusb2: Ensure we specify the I/F at attach time.Steven Toth
From: Steven Toth <stoth@linuxtv.org> pvrusb2: Ensure we specify the I/F at attach time. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2009-05-02cx23885: For tda10048 boards ensure we specify the I/FSteven Toth
From: Steven Toth <stoth@linuxtv.org> cx23885: For tda10048 boards ensure we specify the I/F Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2009-05-02tda10048: Add ability to select I/F at attach time.Steven Toth
From: Steven Toth <stoth@linuxtv.org> tda10048: Add ability to select I/F at attach time. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2009-05-02v4l2-device: unregister i2c_clients when unregistering the v4l2_device.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Until now I relied on i2c_del_adapter to unregister the i2c_clients for me, however, if the i2c bus is a platform bus then it is never deleted. So instead I need to unregister i2c clients when unregistering the v4l2_device. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02ivtv: use v4l2_device_set_name.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02v4l2: add v4l2_device_set_name()Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Add a utility function that can be used to setup the v4l2_device's name field in a standard manner. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02tuner: remove tuner_i2c_address_checkMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Support for tuners with i2c addresses >= 0x65 is dropped since no tuners with addresses in the range 0x65-0x6f have been found. This patch removes addresses 0x65-0x6f from the list of tuner probe addresses, it removes the kernel warning that warned if addresses in this range appeared, and it removed a hack for the cx88 that is no longer needed now that the tuner address range is reduced. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02uvc: fix compile warningMauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> The 2.6.30 kernel generates this warning: uvc_driver.c:1729: warning: 'ret' may be used uninitialized in this function I guess some new warning flag must have been turned on since this warning didn't appear with older kernels (gcc version 4.3.1). It's also a bogus warning, but since this code didn't comply to the coding standard anyway I've modified it to 1) remove the warning and 2) conform to the coding standard. Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-02ivtv: fix compiler warning.Mauro Carvalho Chehab
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: high Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-05merge: http://www.linuxtv.org/hg/~stoth/cleanupMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-05Fix a warning introduced by git commit ec5f5bf80501abfe2da2897cfcde8452b545aacbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> /home/v4l/master/v4l/radio-si470x.c: In function 'si470x_fops_release': /home/v4l/master/v4l/radio-si470x.c:1218: warning: label 'unlock' defined but not used Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-01pvrusb2: remove driver_data direct access of struct deviceMike Isely
From: Greg Kroah-Hartman <gregkh@suse.de> In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Priority: normal Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: linux-media@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Mike Isely <isely@pobox.com>
2009-05-01pvrusb2: Don't use the internal i2c client listMike Isely
From: Jean Delvare <khali@linux-fr.org> The i2c core used to maintain a list of client for each adapter. This is a duplication of what the driver core already does, so this list will be removed as part of a future cleanup. Anyone using this list must stop doing so. For pvrusb2, I propose the following change, which should lead to an equally informative output. The only difference is that i2c clients which are not a v4l2 subdev won't show up, but I guess this case is not supposed to happen anyway. Priority: normal Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mike Isely <isely@pobox.com>
2009-05-01pvrusb2: Bump up version advertised through v4l interfaceMike Isely
From: Mike Isely <isely@pobox.com> Kick up the pvrusb2 version number advertised through the v4l interface. This value really has almost no meaning because I don't make a serious attempt to version the driver in this manner (otherwise this one line becomes a nasty hotspot of changes and merge conflicts). The value that is here is really a historical thing. However Hans Verkuil thought it might be a good idea to bump up the number anyway right now since the driver's mechanism for communicating with the v4l core has pretty much completely changed. Sending out a different version number can be useful for later debugging in case a problem arises. Priority: normal Signed-off-by: Mike Isely <isely@pobox.com>
2009-05-01pvrusb2: Set ir_video autoloading to default disabledMike Isely
From: Mike Isely <isely@pobox.com> This sets the disable_autoload_ir_video module option to being set, which disables any attempt by the driver to autoload IR support. This changes preserves previous behavior, for now. This change can be set back concurrent with other changes that finally update i2c-kbd-i2c to use the new i2c binding model. Priority: normal Signed-off-by: Mike Isely <isely@pobox.com>
2009-05-01pvrusb2: Update to work with upcoming ir_video changes in v4l-dvb coreMike Isely
From: Mike Isely <isely@pobox.com> The ir-kbd-i2c module is about to be updated to match the new style i2c binding model. These pvrusb2 changes maintain compatibility with that change. Note that this does not actually break anything even without the expected ir-kbd-i2c changes yet because previously the pvrusb2 didn't autoload ir-kbd-i2c anyway. Priority: normal Signed-off-by: Mike Isely <isely@pobox.com>
2009-04-30v4l2-ioctl: Clear buffer type specific trailing fields/paddingTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Some ioctls have structs that are a different size depending on what type of buffer is being used. If the buffer type leaves a field unused or has padding space at the end, this space should be zeroed out. The problems with S_FMT and REQBUFS were original identified and patched by Márton Németh <nm127@freemail.hu>. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2009-04-30v4l2-ioctl: Check buffer types using g_fmt instead of try_fmtTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> For a number of different ioctls, the v4l2-ioctl code checks that the passed buffer type is supported by the driver. It did this by checking that the driver defined a method for the try_fmt handler for that buffer type. However, try_fmt is optional and a driver might not provide it even though it does support that type. So use g_fmt instead, since that isn't optional. This should fix a problem with VBI capture with saa7146. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2009-04-30zoran: fix bug when enumerating format -1Trent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> If someone requests a format at fmt->index == (unsigned)-1 and the first format in the array doesn't have the requested type then num will still be -1 when it's compared to fmt->index and there will appear to be a match. Restructure the loop so this can't happen. It's simpler this way too. The unnecessary check for (unsigned)fmt->index < 0 found by Roel Kluin <roel.kluin@gmail.com> is removed this way too. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2009-04-30remove driver_data direct access of struct deviceMauro Carvalho Chehab
From: Greg Kroah-Hartman <gregkh@suse.de> In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-30patch: s2255drv: urb completion routine fixesMauro Carvalho Chehab
From: Dean Anderson <dean@sensoray.com> Error count in read pipe completion corrected. URB not resubmitted if shutting down. URB not freed in completion routine if new urb_submit_fails. (URB is freed on shutdown). Priority: high Signed-off-by: Dean Anderson <dean@sensoray.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-30Drop stray references to i2c_probeMauro Carvalho Chehab
From: Jean Delvare <khali@linux-fr.org> The new i2c binding model doesn't use i2c_probe. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-30dvb-ttpci: Some whitespace adjustmentsOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> Some whitespace adjustments. Priority: normal Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2009-04-30dvb-ttpci: Fixed return code of av7110_av_start_playOliver Endriss
From: Oliver Endriss <o.endriss@gmx.de> av7110_av_start_play() should return 0 on success. Priority: normal Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
2009-04-29cx23885: Don't assume GPIO interrupts are cam related.Steven Toth
From: Steven Toth <stoth@linuxtv.org> cx23885: Don't assume GPIO interrupts are cam related. Priority: normal Signed-off-by: Steven Toth <stoth@linuxtv.org>
2009-04-29backport commit 3444b26afa145148951112534f298bdc554ec789Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> kernel-sync: Author: David Vrabel <david.vrabel@csr.com> Date: Wed Apr 8 17:36:28 2009 +0000 USB: add reset endpoint operations Wireless USB endpoint state has a sequence number and a current window and not just a single toggle bit. So allow HCDs to provide a endpoint_reset method and call this or clear the software toggles as required (after a clear halt, set configuration etc.). usb_settoggle() and friends are then HCD internal and are moved into core/hcd.h and all device drivers call usb_reset_endpoint() instead. If the device endpoint state has been reset (with a clear halt) but the host endpoint state has not then subsequent data transfers will not complete. The device will only work again after it is reset or disconnected. CC: Mike Isely <isely@isely.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-29backport commit 6b35ca0d3d586b8ecb8396821af21186e20afaf0Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> kernel-sync: Author: Martin Fuzzey <mfuzzey@gmail.com> Date: Tue Apr 21 21:48:09 2009 +0200 USB: pwc : do not pass stack allocated buffers to USB core. This is causes problems on platforms that have alignment requirements for DMA transfers. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-04-29backport commit ec5f5bf80501abfe2da2897cfcde8452b545aacbMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> kernel-sync: Author: Alan Cox <alan@lxorguk.ukuu.org.uk> Date: Wed Apr 22 15:03:15 2009 +0100 radio_si470x: Fix free memory corruption The release path for a disconnected device frees the object then unlocks the mutex in the freed object... Found by Dan Carpenter using Smatch Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>