summaryrefslogtreecommitdiff
path: root/drivers/media/video/gspca/pac7302.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-04-27 18:32:24 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-05-07 23:11:48 +0400
commita648e310df9ff088d949befc8d1306264d970826 (patch)
tree264031cb8ec47aad286d35dd9f2d758993d3bc33 /drivers/media/video/gspca/pac7302.c
parent4fd466a13008823648cf2ec6f06a03d90e6412ab (diff)
downloadlinux-a648e310df9ff088d949befc8d1306264d970826.tar.xz
[media] gspca/autogain_functions.h: Allow users to declare what they want
Allow users of gspca/autogain_functions.h to declare which of the autogain algoritms they are going to use. This allows us to remove the hacks from drivers which don't use coarse_grained_expo_autogain. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/pac7302.c')
-rw-r--r--drivers/media/video/gspca/pac7302.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c
index 30662fccb0cf..856cdd987f42 100644
--- a/drivers/media/video/gspca/pac7302.c
+++ b/drivers/media/video/gspca/pac7302.c
@@ -729,9 +729,7 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
reg_w(gspca_dev, 0x78, 0x40);
}
-/* !! coarse_grained_expo_autogain is not used !! */
-#define exp_too_low_cnt flags
-#define exp_too_high_cnt sof_read
+#define WANT_REGULAR_AUTOGAIN
#include "autogain_functions.h"
static void do_autogain(struct gspca_dev *gspca_dev)