summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2
AgeCommit message (Collapse)Author
2006-07-19Removed the remaining config.h stuffMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Since kernel include autoconf.h via command line, those config.h inclusion can be removed. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-07-18Refine dead code elimination in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-07-18pvrusb2: check the return value of class_device_create_fileMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> class_device_create_file is marked as __must_check, so its return value must be checked. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-07-18pvrusb2: check the return value of class_device_registerMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> If an error occurs during class_device_register, print an error message, kfree(class_dev) and return. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-06-30Clean out a zillion sparse warnings in pvrusb2Mauro Carvalho Chehab
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-30Pvrusb2/: possible cleanupsMauro Carvalho Chehab
From: Adrian Bunk <bunk@stusta.de> This patch contains the following possible cleanups: - make needlessly global code static - #if 0 unused global functions Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-29Eliminate use of tda9887 from pvrusb2 driverMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-29Always log pvrusb2 device register / unregister eventsMike Isely
From: Mike Isely <isely@pobox.com> Previously the pvrusb2 driver was conditionalizing printing of the device register / unregister messages against a debug mask. This sort of information should always appear, thus this patch. Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-27Fix warning when compiling on 64 bit machinesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-26Included required header for in-kernel compilationMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-26Pass an explicit log prefix to cx2341x_log_statusHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> A card number is not unique enough. Instead, let the caller specify the prefix of the status messages. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-26SYSFS support marked as experimentalMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-25Reduce the amount of pvrusb2-sourced noise going into the system logMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Implement use of cx2341x module in pvrusb2 driverMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Exploit new V4L control features in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Don't suspend encoder when changing its attributes (in pvrusb2)Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Fix faulty encoder error recovery in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Various V4L control enhancements in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Handle boolean controls in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Make sure flags field is initialized when quering a control in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Move LOG_STATUS bracketing to a different part of the pvrusb2 driverMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Rearrange things in pvrusb2 driver in preparation for using cx2341x moduleMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Increase the maximum number of controls that pvrusb2-sysfs.c can handle.Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Clean up long-standing video format handling mess in pvrusb2-v4l2.cMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Don't print empty enum values in pvrusb2-sysfs.cMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Rearrange things in pvrusb2-encoder in preparation for use of cx2341x moduleMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-25Include some extra headers that we need.Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-06-18Add CX2341X MPEG encoder module.Hans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Adds the cx2341x.c module that handles the programming of the Conexant cx23415/6 MPEG encoder chip used by cx88-blackbird, pvrusb2 and ivtv. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-06-11pvrusb2 is now a V4L2 driver. Fixed Kconfig.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-08Remove last bits of V4L1 dependant codeMike Isely
From: Mike Isely <isely@pobox.com> With the removal of the V4L1 API, we also lose the functionality provided by the video_get_drvdata() and video_set_drvdata() functions. These functions had made it possible for a driver to stuff a pointer to its own context inside the V4L device handle context - a useful ability. However now that's going away, so the driver is on its own to find its context when called into from a more generic context (e.g. the open() entrypoint). The changes in this patch implement a global context mapping array, an array index back-reference per instance, and a new global mutex to protect the entire thing. The array is indexed by the minor device id of the V4L device inode. All this fun is present to work around what used to be roughly 4 lines of code. Sigh... Signed-off-by: Mike Isely <isely@pobox.com>
2006-05-07bug-fix: pvrusb2 must #include <linux/config.h> for compile-time optionsMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Added necessary header file in order for kconfig build options to be considered at compile time. Without this patch all options will always be disabled, regardless of whether they are selected or not. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Mike Isely <isely@pobox.com>
2006-05-04pvrusb2: use encoder firmware filename defined in cx2341x.hMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch removes the explicit definition of the cx23416 encoder firmware image filename, in favor of CX2341X_FIRM_ENC_FILENAME as defined in cx2341x.h Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Acked-by: Mike Isely <isely@pobox.com>
2006-04-25Remove pvrusb2 video standard adjustment logicMike Isely
From: Mike Isely <isely@pobox.com> Remove logic which tries to infer additional video standards based on what was reported by tveeprom. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-25Various pvrusb2 video standard cleanupsMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-25Remove dead code.Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Fix critical typo in wm8775 support within pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Update operation of wm8775 in pvrusb2 to use new routing APIMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Need to compile two more sources in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Two modules had been added to pvrusb2. We need to compile them... Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Bracket a pvrusb2 24xxx-only structure correctlyMike Isely
From: Mike Isely <isely@pobox.com> Surround a 24xxx-specific data structure in pvrusb2 with the appropriate CONFIG option so that it won't be used if 24xxx support is not enabled. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Make PAL-N a supported standard if other PAL standards are present in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> If the pvrusb2 driver detects a PAL-capable device, add PAL-N to the list of supported standards. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Fix pvrusb2 bug involving bad return on V4L query control ioctlMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Fix off-by-1 problem in pvrusb2 video standard enumerationMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Keep the cx25840 I2C filter around in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Modify the I2C filter for cx25840 such that it stays around rather than going away after the initial sanity check has passed. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Log a warning message on a too-large I2C read attempt in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Change pvrusb2 module request behavior to be more conservativeMike Isely
From: Mike Isely <isely@pobox.com> Previously when the pvrusb2 driver loaded, it immediately did a request_module() on all possible I2C support modules it might need. But that is overkill, since the actual modules needed is a subset depending on the model type. This change delays module request until the hardware shows up, and then it only requests the modules that make sense for the specific hardware. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Implement I2C filter in pvrusb2 for cx25840Mike Isely
From: Mike Isely <isely@pobox.com> Insert an I2C transaction filter for the cx25843 chip on new model 24xxx hardware. This filter attempts to stabilize the part by limiting how the part can be accessed. The filter won't allow anyone to touch the chip until an attempt is made to specifically read the chip's revision registers. If that read fails (which can happen if the chip wedges itself), a warning is logged and the driver is rendered useless. If the read succeeds, then the filter deletes itself and normal access to the part takes place. This filter should keep msp3400 away from the chip (a failure scenario which otherwise frequently ends badly for the kernel, due to suspected misbehaviors within the msp3400 module). Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Fix pvrusb2 eeprom retrieval bugMike Isely
From: Mike Isely <isely@pobox.com> Fix minor problem where wrong I2C address was being used to execute the second phase of an eeprom fetch. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Implement I2C transaction filtering in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Implement a rudimentary filter mechanism in the I2C adapter within the pvrusb2 driver. It is possible now to interpose a filtering function on a per-target basis. This function can intercept the requested transaction and perform various manipulations on behalf of the client. With this mechanism is also a filter inserted for wm8775 that causes all probe attempts to the chip to always succeed (just return success on probe attempts without touching the hardware). This neatly solves the problem in the PVR USB2 hardware where we can't seem able to probe the chip at all. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Include linux/mutex.h not asm/mutex.h in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> The correct mutex header to grab is linux/mutex.h, and while asm/mutex.h seems to work for x86 architecture, it has been reported not to work for amd64 architecture. So let's just do this right. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20cx23416 fix in pvrusb2 to allow xawtv to function againMike Isely
From: Mike Isely <isely@pobox.com> Tweak cx23416 configuration to permit xawtv to work again. This problem was introduced when the model 24xxx hardware support was added. The fix here repairs the problem while and is valid for both old and new hardware. Signed-off-by: Mike Isely <isely@pobox.com>