diff options
author | Max Thrun <bear24rw@gmail.com> | 2010-02-27 15:20:25 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-17 23:46:58 -0400 |
commit | eb171073b6f941e83f01b6444ab347e893785faf (patch) | |
tree | 44e75072e047e799f23e96a395a358138d3ec72b /drivers | |
parent | 3149cfbfaca7912995a32d72ddd2381e66ca845e (diff) |
V4L/DVB: gspca - ov534: Fix unsetting hflip and vflip bits
Also set default values unconditionally, for readability.
Signed-off-by: Max Thrun <bear24rw@gmail.com>
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/ov534.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index f2077eaa619c..8f01201956c1 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -769,7 +769,7 @@ static void sethflip(struct gspca_dev *gspca_dev) | |||
769 | sccb_reg_read(gspca_dev, 0x0c) | 0x40); | 769 | sccb_reg_read(gspca_dev, 0x0c) | 0x40); |
770 | else | 770 | else |
771 | sccb_reg_write(gspca_dev, 0x0c, | 771 | sccb_reg_write(gspca_dev, 0x0c, |
772 | sccb_reg_read(gspca_dev, 0x0c) & 0xbf); | 772 | sccb_reg_read(gspca_dev, 0x0c) & ~0x40); |
773 | } | 773 | } |
774 | 774 | ||
775 | static void setvflip(struct gspca_dev *gspca_dev) | 775 | static void setvflip(struct gspca_dev *gspca_dev) |
@@ -781,7 +781,7 @@ static void setvflip(struct gspca_dev *gspca_dev) | |||
781 | sccb_reg_read(gspca_dev, 0x0c) | 0x80); | 781 | sccb_reg_read(gspca_dev, 0x0c) | 0x80); |
782 | else | 782 | else |
783 | sccb_reg_write(gspca_dev, 0x0c, | 783 | sccb_reg_write(gspca_dev, 0x0c, |
784 | sccb_reg_read(gspca_dev, 0x0c) & 0x7f); | 784 | sccb_reg_read(gspca_dev, 0x0c) & ~0x80); |
785 | } | 785 | } |
786 | 786 | ||
787 | /* this function is called at probe time */ | 787 | /* this function is called at probe time */ |
@@ -815,12 +815,8 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
815 | sd->awb = AWB_DEF; | 815 | sd->awb = AWB_DEF; |
816 | sd->aec = AEC_DEF; | 816 | sd->aec = AEC_DEF; |
817 | sd->sharpness = SHARPNESS_DEF; | 817 | sd->sharpness = SHARPNESS_DEF; |
818 | #if HFLIP_DEF != 0 | ||
819 | sd->hflip = HFLIP_DEF; | 818 | sd->hflip = HFLIP_DEF; |
820 | #endif | ||
821 | #if VFLIP_DEF != 0 | ||
822 | sd->vflip = VFLIP_DEF; | 819 | sd->vflip = VFLIP_DEF; |
823 | #endif | ||
824 | 820 | ||
825 | return 0; | 821 | return 0; |
826 | } | 822 | } |