summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/m5602/m5602_s5k83a.c
AgeCommit message (Collapse)Author
2009-08-04drivers/media/video/gspca: introduce missing kfreeMauro Carvalho Chehab
From: Julia Lawall <julia@diku.dk> Error handling code following a kmalloc should free the allocated data. Priority: normal Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-05-03gspca - m5602: Checkpatch.pl fixesErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-04-26gspca - m5602: Storage class should be before const qualifierMauro Carvalho Chehab
From: Tobias Klauser <tklauser@distanz.ch> The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. [mchehab@redhat.com: Fix a trivial merge conflict] Signed-off-by: Tobias Klauser <tklauser@distanz.ch> CC: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2009-01-21gspca - m5602-s5k83a: Set the sensor_settings pointer correctlyErik Andrén
From: Lukas Karas <lukas.karas@centrum.cz> Priority: normal Signed-off-by: Lukas Karas <lukas.karas@centrum.cz> Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-01-21gspca - m5602-s5k83a: Move hsync/vsync setup to start functionErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-04-27gspca - m5602-s5k83a: Reset the v4l2 ctrl cache upon sensor initErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2009-01-20gspca - m5602-s5k83a: Align the v4l2 ctrl definitionsErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
2009-04-03gspca - m5602: Let all ctrls on all sensors be staticErik Andr?n
From: Erik Andr?n <erik.andren@gmail.com> All hail the static keyword 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-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>
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: 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-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: 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>
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>
2008-11-27Remove the s5k83a specific read_sensor functionErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-27Convert the s5k83a sensor to use the common read_sensor functionErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-26Remove all sensor specific write functions.Erik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-26Convert all sensors to use the unified write sensor functionErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-24Convert some functions to be staticErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-20Refactor the error handling in the s5k83aErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-11-20Align some definesErik Andrén
From: Erik Andrén <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andrén <erik.andren@gmail.com>
2008-10-16gspca: Use the gspca debug macrosJean-Francois Moine
From: Erik Andren <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andren <erik.andren@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-10-16gspca: Correct some copyright headersJean-Francois Moine
From: Erik Andren <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andren <erik.andren@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-10-07gspca: Add some lost controls to the s5k83a sensor.Jean-Francois Moine
From: Erik Andren <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andren <erik.andren@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-10-03gspca: Moves some sensor initialization to each sensor in m5602.Jean-Francois Moine
From: Erik Andren <erik.andren@gmail.com> Priority: normal Signed-off-by: Erik Andren <erik.andren@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-10-01gspca: Subdriver m5602 (ALi) added.Jean-Francois Moine
From: Erik Andren <erik.andren@gmail.com> This patch adds support for the ALi m5602 usb bridge and is based on the gspca framework. It contains code for communicating with 5 different sensors: OmniVision OV9650, Pixel Plus PO1030, Samsung S5K83A, S5K4AA and finally Micron MT9M111. Priority: high Signed-off-by: Erik Andren <erik.andren@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>