summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c
AgeCommit message (Collapse)Author
2006-07-22Clean up some post mpeg-controls issues in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Fix a few miscellaneous issues in the pvrusb2 driver related to use of the new mpeg controls. This also should fix problems involving update of the saa7115 / cx25840 configuration as control changes are made. Signed-off-by: Mike Isely <isely@pobox.com>
2006-07-18Refine dead code elimination in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
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-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-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-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-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-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-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-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 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-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-20Make NTSC-Mj available in pvrusb2 when hardware reports NTSC-M availabilityMike Isely
From: Mike Isely <isely@pobox.com> PVR USB2 models that are NTSC capable are also able to handle the Japanese variant (according to the model info on the device's white sticker). However tveeprom doesn't report this. Work around this for now (and consider getting tveeprom fixed later). Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-20Change pvrusb2 subsystem definition bits for easier handlingMike Isely
From: Mike Isely <isely@pobox.com> Subsystem bits are defined as ordinal values now instead of bits in a mask. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-19Another rework of pvrusb2 video standard handlingMike Isely
From: Mike Isely <isely@pobox.com> Clean up logic for handling video standards in the pvrusb2 driver. New implementation should be able to handle all possible V4L defined video standards now, and it should be far easier to maintain this going forward. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-19Rework pvrusb2 internal controls implementationMike Isely
From: Mike Isely <isely@pobox.com> Rework controls internal architecture. Rework video standard handling. This is a major change. Signed-off-by: Mike Isely <isely@pobox.com>
2006-04-01Split out PVR USB2 model 24xxx hardware support to a config optionMike Isely
From: Mike Isely <isely@pobox.com> Since there are lingering stability problems with support of the newer PVR USB2 model 24xxx series hardware, I have isolate those changes with a config option. This commit leaves that option off. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-30pvrusb2 driver initialization tweakMike Isely
From: Mike Isely <isely@pobox.com> Make permanent the removal of the call to pvr2_reset_ctl_endpoints(). It is known positively now that this step was both unneeded and caused harm to communication with the hardware during driver initialization. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-29Don't reset USB control state during pvrusb2 initializationMike Isely
From: Mike Isely <isely@pobox.com> Initialization failures in the pvrusb2 driver seem to coincide with attempts to reset parts of the USB core related to this device. This really should not be needed and I suspect it may be doing more harm than good. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-28Major pvrusb2 rework to remove translationsMike Isely
From: Mike Isely <isely@pobox.com> Rework entire internal controls interface to eliminate the need for visibly defined control IDs which must otherwise be translated by the V4L2 public interface. As part of this work, internal structures which mimiced various V4L2 structures (video standards, audio modes) have been reworked to actually use the native structures. This triggered a _significant_ rework for how video standards are dealt with (and what is in place now should be much more flexible and forgiving for various handling less-common video standards). Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-26Propagate default control values out to V4L apps from within pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> When a V4L app queries a pvrusb2 control, make sure we also tell it what the control's default value is. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-26Get rid of static PVR2_CID_COUNT in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Eliminate the need to track the number pvrusb2 CIDs at compile time from within the pvrusb2 driver. This is part of a control structure cleanup. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-25Merge from masterMike Isely
From: Mike Isely <isely@pobox.com> Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-25pvrusb2 control commit handling fixMike Isely
From: Mike Isely <isely@pobox.com> When a control change is committed to the driver, certain other parts of the driver must be updated to track the change and deal with the effects of that change. Some controls in the driver use a function pointer to implement the commit, however we weren't doing the tracking there and we should have been. This is the fix. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-25New debug code in pvrusb2 for tracking requestsMike Isely
From: Mike Isely <isely@pobox.com> Implement pvrusb2 code normally compiled-out which can print useful information about commands issued to the hardware. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-25Implement method in pvrusb2 to force the decoder to resetMike Isely
From: Mike Isely <isely@pobox.com> This change threads logic through the pvrusb2 to make it possible to command the decoder chip to reset itself. The method is decoder-agnostic; the part of the pvrusb2 which control's that chip's module has to provide the final hook. This just lays the foundation. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-25Tweaks to pvrusb2 init sequenceMike Isely
From: Mike Isely <isely@pobox.com> Rename a pvrusb2 function to reflect its true meaning, and tweak the driver initialization sequence so that the I2C adapter isn't started until after the hardware has been given a powerup command. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-18Implement V4L2_TUNER_MODE_LANG1_LANG2 audio modeHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Add a new audio mode V4L2_TUNER_MODE_LANG1_LANG2 (used by VIDIOC_G/S_TUNER). This mode allows the user to select both languages of a bilingual transmission, one language on the left, one on the right audio channel. If there is no bilingual transmission, or it is not supported, then this mode should act like V4L2_TUNER_MODE_STEREO. This mode is introduced for PVR-like drivers where it is useful to be able to record both languages of a bilingual broadcast. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2006-03-11Fix compilation issue involving MODULE_DEVICE_TABLE in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Move MODULE_DEVICE_TABLE to pvrusb2-hdw.c, in order to solve compilation issue where that macro is pointing to an external symbol. I have not seen this problem, but others have and so I'm fixing the code. Different behavior is likely tied to gcc version in use. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-10Fix const inconsistency in pvrusb2Mike Isely
From: Mike Isely <isely@pobox.com> Clean up a missing const declaration in the initialization pathway of the pvrusb2 driver. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-10Raise legal maximum frequency to 850MHzMike Isely
From: Mike Isely <isely@pobox.com> The V4L2 control limit for frequency is too low. This change raises the limit to a more reasonable maximum. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-10Make pvrusb2 aware of alternative hardware typesMike Isely
From: Mike Isely <isely@pobox.com> Notice and track actual hardware type of device. This information is also used now to select the correct FX2 firmware file to load (because they can be different, unfortunately). Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-09Rename FX2 firmware for pvrusb2 (again)Mike Isely
From: Mike Isely <isely@pobox.com> It has been discovered that newer PVR USB2 needs incompatibly different FX2 firmware. The driver therefore needs to make the file name a function of which firmware flavor is required. This rename is part of that work. Signed-off-by: Mike Isely <isely@pobox.com>
2006-03-04Implement new method in pvrusb2 to detect the FX2 firmwareMike Isely
From: Mike Isely <isely@pobox.com> The pvrusb2 driver as part of its initialization might have to load the FX2's firmware image. We must only do this when it is actually needed. The previous method just detected this requirement by noticing something unusual about the USB configuration of the device. Unfortunately with newer PVR USB2 devices this method no longer works. What we do now is also attempt a simple non-destructive endpoint 1 transaction; failure of that transfer will indicate a need to load the firmware. Signed-off-by: Mike Isely <isely@pobox.com>
2006-02-26moved pvrusb2 driver into the kernel treeMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>