diff options
-rw-r--r-- | drivers/media/video/gspca/spca561.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 6648ce7e96ef..27e82b35f3e7 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -48,9 +48,9 @@ struct sd { | |||
48 | #define BRIGHTNESS_MAX 0x3f | 48 | #define BRIGHTNESS_MAX 0x3f |
49 | 49 | ||
50 | __u8 white; | 50 | __u8 white; |
51 | #define WHITE_MIN 1 | 51 | #define HUE_MIN 1 |
52 | #define WHITE_DEF 0x40 | 52 | #define HUE_DEF 0x40 |
53 | #define WHITE_MAX 0x7f | 53 | #define HUE_MAX 0x7f |
54 | 54 | ||
55 | __u8 autogain; | 55 | __u8 autogain; |
56 | #define AUTOGAIN_MIN 0 | 56 | #define AUTOGAIN_MIN 0 |
@@ -461,7 +461,7 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
461 | } | 461 | } |
462 | sd->brightness = BRIGHTNESS_DEF; | 462 | sd->brightness = BRIGHTNESS_DEF; |
463 | sd->contrast = CONTRAST_DEF; | 463 | sd->contrast = CONTRAST_DEF; |
464 | sd->white = WHITE_DEF; | 464 | sd->white = HUE_DEF; |
465 | sd->exposure = EXPOSURE_DEF; | 465 | sd->exposure = EXPOSURE_DEF; |
466 | sd->autogain = AUTOGAIN_DEF; | 466 | sd->autogain = AUTOGAIN_DEF; |
467 | sd->gain = GAIN_DEF; | 467 | sd->gain = GAIN_DEF; |
@@ -929,13 +929,13 @@ static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val) | |||
929 | static struct ctrl sd_ctrls_12a[] = { | 929 | static struct ctrl sd_ctrls_12a[] = { |
930 | { | 930 | { |
931 | { | 931 | { |
932 | .id = V4L2_CID_DO_WHITE_BALANCE, | 932 | .id = V4L2_CID_HUE, |
933 | .type = V4L2_CTRL_TYPE_INTEGER, | 933 | .type = V4L2_CTRL_TYPE_INTEGER, |
934 | .name = "White Balance", | 934 | .name = "Hue", |
935 | .minimum = WHITE_MIN, | 935 | .minimum = HUE_MIN, |
936 | .maximum = WHITE_MAX, | 936 | .maximum = HUE_MAX, |
937 | .step = 1, | 937 | .step = 1, |
938 | .default_value = WHITE_DEF, | 938 | .default_value = HUE_DEF, |
939 | }, | 939 | }, |
940 | .set = sd_setwhite, | 940 | .set = sd_setwhite, |
941 | .get = sd_getwhite, | 941 | .get = sd_getwhite, |
@@ -971,13 +971,13 @@ static struct ctrl sd_ctrls_12a[] = { | |||
971 | static struct ctrl sd_ctrls_72a[] = { | 971 | static struct ctrl sd_ctrls_72a[] = { |
972 | { | 972 | { |
973 | { | 973 | { |
974 | .id = V4L2_CID_DO_WHITE_BALANCE, | 974 | .id = V4L2_CID_HUE, |
975 | .type = V4L2_CTRL_TYPE_INTEGER, | 975 | .type = V4L2_CTRL_TYPE_INTEGER, |
976 | .name = "White Balance", | 976 | .name = "Hue", |
977 | .minimum = WHITE_MIN, | 977 | .minimum = HUE_MIN, |
978 | .maximum = WHITE_MAX, | 978 | .maximum = HUE_MAX, |
979 | .step = 1, | 979 | .step = 1, |
980 | .default_value = WHITE_DEF, | 980 | .default_value = HUE_DEF, |
981 | }, | 981 | }, |
982 | .set = sd_setwhite, | 982 | .set = sd_setwhite, |
983 | .get = sd_getwhite, | 983 | .get = sd_getwhite, |