summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602
AgeCommit message (Collapse)Author
2009-01-07gspca - m5602-po1030: Set all v4l2 controls at sensor initErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Previously many of the v4l2 ctrls were set to their initial values at resume from ram/disk. This patch enforces the values stored in the ctrl cache. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-07gspca - m5602-po1030: Simplify register definesErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> This patch renames some register defines in the ov9650 sensor. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-07gspca - m5602-po1030: Rename register defines, add missing ones.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> The po1030 register defines are unnecessarily complex, simplify them and also add some missing ones. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-06gspca - m5602-ov9650: Improve the vflip quirk handling.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Regardless of the actual sensor orientation vflip = 0 is normal, and vflip = 1 is upside down. This patch makes that happen Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-06gspca - m5602-mt9m111: Remove the unused power_down struct memberErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> The power_down sensor struct member is almost has no purpose in the current driver abstraction. Remove it. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-06gspca - m5602-s5k4aa: Convert to use the v4l2 ctrl cacheErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-06gspca - m5602-po1030: Convert to have a v4l2 ctrl cacheErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Let the po1030 have a local v4l2 ctrl cache as this minimizes the load on reading the registers and improves performance. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-04-03gspca - m5602-s5k83a: Add rotation, ctrl cache. Rename some ctrls.Erik Andr?n
From: Luk?? Karas <lukas.karas@centrum.cz> s5k83a sensor mounted on many acer laptops have a swiwel allowing it to be rotated. When the camera is in its rotated state, the image needs to be flipped. The only way to check for if the camera has been flipped is to continously poll a register in the m5602. This patch creates a kernel thread which does this. This patch renames some v4l2 ctrls and finally implements a cache in order to prevent unnecessary sensor reads. Priority: normal Signed-off-by: Luk?? Karas <lukas.karas@centrum.cz> Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-04gspca - m5602-mt9m111: Convert the mt9m111 to use a v4l2 ctrl cacheErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-04gspca - m5602: Minor cleanupsErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Remove an unnecessary error check and reorder some code. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-04gspca - m5602: Don't touch hflip/vflip register on Read/Modify/WriteErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Touching the hflip/vflip register while doing the read/modify/write corrupts the image. Just read from the sensor ctrl cache instead and all is good. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-04gspca - m5602: Move the vflip quirk to probe stage.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> The vflip quirk is better checked at probe time as it's only needed once. Also add an extra reset at init time to resolve a suspend to ram regression. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-03gspca - m5602-ov9650: Use the local ctrl cache. Adjust image on vflip.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-03gspca - m5602-ov9650: Add a disconnect hook, setup a ctrl cache ctrl.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Reading and writing to a register doesn't always work reliably. Add a cache and ensure that it is deallocated properly upon module disconnect. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-03gspca - m5602-ov9650: Replace a magic constant with a defineErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-03gspca - m5602-ov9650: Synthesize modesetting.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Previously all resolution setting was done with precalculated tables. When the image is vflipped we need to adjust the alignment which would require another table. Now we can adjust the parameters on the fly instead. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-01-02gspca - m5602: Improve error handling in the ov9650 driverErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Some errors were not propagated properly. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-31gspca - m5602-ov9650: Don't read exposure data from COM1.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> ov9650: Reading the COM1 register corrupts the image. Decrease the granularity of the exposure and limit its upper range as setting such high values doesn't have any effect on the image. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-31gspca - m5602-ov9650: Auto white balancing is on by defaultErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-31gspca - m5602-ov9650: Autogain is on by defaultErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Autogain is on by default, properly set the default value in the v4l2 ctrl. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602: Constify all sensor structsErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602: Remove an unused member in the sd struct.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Remove an unused sd struct member. Remove a redundant define while we're at it. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602-mt9m111: Move v4l2 controls to main sensor file.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Move over the v4l2 controls to the sensor specific source file. Remove the now redundant sensor struct member. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602-mt9m111: Separate mode vectors per sensor.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> By separating the supported for each sensor into a separate vector we can eliminate the nmodes variable and instead calculate it at runtime. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602-ov9650: Checkpatch fixesErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602: Rework v4l ctrl handling in all sensorsErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Previously, all sensors allocated a part of a large ctrl vector. Define this vector separately for each sensor instead. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-30gspca - m5602-ov9650: Always init the ov9650 before starting a streamErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> This is a hack preventing a suspend-to-ram/disk regression. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-29gspca - m5602-ov9650: Set the ov9650 sensor in soft sleep when inactive.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> In order to save energy, put the sensor in soft sleep mode when not active Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-28gspca - m5602-s5k83a: Add led support to the s5k83a sensor.Erik Andr?n
From: Lukas Karas <lukas.karas@centrum.cz> This patch toggles the led seen on many laptops having a m5602 connected to a Samsung s5k83a sensor. Priority: normal Signed-off-by: Lukas Karas <lukas.karas@centrum.cz> Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-27gspca - m5602-ov9650: Clean up ov9650_start() function.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Cleans some unnecessary temporary variable usage in the ov9650 start function. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-27gspca - m5602-ov9650: Add QCIF resolution supportErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Adds QCIF support for the ov9650 sensor Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-27gspca - m5602: Simplify error handlingErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Simplfy error handling by replacing goto statements with return equivalents. Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-26gspca - m5602-s5k4aa: Add start function and VGA resolution init.Erik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2008-12-26gspca - m5602-s5k4aa: No more "default" modeErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-02-22m5602-s5k4aa: Split up the initial sensor probe in chunks.Erik Andrén
From: Gregory Lardiere <spmf2004-m560x@yahoo.fr> The previous probe rotine tried to read 6 bytes in one chunk which currently isn't allowed. This is the rev. 10346 243399e67c41 readded with a high priority. Priority: high Signed-off-by: Gregory Lardiere <spmf2004-m560x@yahoo.fr> Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-01-07merge: v4l-dvbJean-Francois Moine
2009-01-05drivers/media: Fix a number of sparse warningsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> anysee.c:44:5: warning: symbol 'dvb_usb_anysee_delsys' was not declared. Should it be static? cx24116.c:378:3: warning: symbol 'CX24116_MODFEC_MODES' was not declared. Should it be static? stb0899_algo.c:57:5: warning: symbol 'stb0899_get_srate' was not declared. Should it be static? stb0899_algo.c:766:6: warning: symbol 'Log2Int' was not declared. Should it be static? stb0899_drv.c:137:20: warning: symbol 'stb0899_quant_tab' was not declared. Should it be static? stb0899_drv.c:180:20: warning: symbol 'stb0899_est_tab' was not declared. Should it be static? stb0899_drv.c:220:5: warning: symbol '_stb0899_read_reg' was not declared. Should it be static? budget-ci.c:1348:23: warning: symbol 'tt3200_stb6100_config' was not declared. Should it be static? /home/v4l/master/v4l/cx25840-core.c:190:6: warning: symbol 'cx25840_work_handler' was not declared. Should it be static? /home/v4l/master/v4l/m5602_s5k83a.c:116:6: warning: symbol 's5k83a_dump_registers' was not declared. Should it be static? Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-01gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.Jean-Francois Moine
From: Alexey Klimov <klimov.linux@gmail.com> Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2009-01-01gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.Jean-Francois Moine
From: Alexey Klimov <klimov.linux@gmail.com> Introduce int ret and check it value after call to usb_register(). Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-12-31gspca - main and many subdrivers: Remove the epaddr variable.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> The transfer endpoint address is now automatically chosen. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-12-26Merge with the main gspca tree.Erik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-23Rework parts of the resolution initializationErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-23ov9650: Activate variopixelErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-23ov9650: Add CIF modeErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-23Tweak the hsync. Remove redundant init sequenceErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-22Add QVGA mode for the ov9650 sensorErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-21ov9650: Prepare the sensor to set multiple resolutions.Erik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-21Add a start sending hook in the sensor structErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-12-21gspca - ov534 and m5602: Set static some functions/variables.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-12-19Fixup offset in order to align imageErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>