summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/adv7343_regs.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-12-12 08:19:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-21 20:31:49 -0300
commitceed52d67e1cf7866fa96514525c615554a0e44e (patch)
tree4e3324dbb011f531c393cd1a172009970f8120e7 /drivers/media/video/adv7343_regs.h
parenta75b9be1c2fb52dee765d35f29031dd788d522eb (diff)
downloadop-kernel-dev-ceed52d67e1cf7866fa96514525c615554a0e44e.zip
op-kernel-dev-ceed52d67e1cf7866fa96514525c615554a0e44e.tar.gz
[media] adv7343: use control framework
Also fixed a memory leak in the probe function if an error occurred. The gain control range was also fixed (a proper range from -64 to 64). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/adv7343_regs.h')
-rw-r--r--drivers/media/video/adv7343_regs.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/video/adv7343_regs.h b/drivers/media/video/adv7343_regs.h
index 3431045..4466067 100644
--- a/drivers/media/video/adv7343_regs.h
+++ b/drivers/media/video/adv7343_regs.h
@@ -102,10 +102,6 @@ struct adv7343_std_info {
/* Bit masks for DAC output levels */
#define DAC_OUTPUT_LEVEL_MASK (0xFF)
-#define POSITIVE_GAIN_MAX (0x40)
-#define POSITIVE_GAIN_MIN (0x00)
-#define NEGATIVE_GAIN_MAX (0xFF)
-#define NEGATIVE_GAIN_MIN (0xC0)
/* Bit masks for soft reset register */
#define SOFT_RESET (0x02)
@@ -178,8 +174,8 @@ struct adv7343_std_info {
#define ADV7343_HUE_MAX (255)
#define ADV7343_HUE_MIN (0)
#define ADV7343_HUE_DEF (127)
-#define ADV7343_GAIN_MAX (255)
-#define ADV7343_GAIN_MIN (0)
+#define ADV7343_GAIN_MAX (64)
+#define ADV7343_GAIN_MIN (-64)
#define ADV7343_GAIN_DEF (0)
#endif
OpenPOWER on IntegriCloud