Skip to content

Commit

Permalink
V4L/DVB: gspca - ov534: Fixes for sharpness control
Browse files Browse the repository at this point in the history
* Adjust comments for sharpness control
  * Set default value 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>
  • Loading branch information
Max Thrun authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 8fef9d9 commit 3149cfb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/media/video/gspca/ov534.c
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,8 @@ static void setsharpness(struct gspca_dev *gspca_dev)
u8 val;

val = sd->sharpness;
sccb_reg_write(gspca_dev, 0x91, val); /* vga noise */
sccb_reg_write(gspca_dev, 0x8e, val); /* qvga noise */
sccb_reg_write(gspca_dev, 0x91, val); /* Auto de-noise threshold */
sccb_reg_write(gspca_dev, 0x8e, val); /* De-noise threshold */
}

static void sethflip(struct gspca_dev *gspca_dev)
Expand Down Expand Up @@ -814,9 +814,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
#endif
sd->awb = AWB_DEF;
sd->aec = AEC_DEF;
#if SHARPNESS_DEF != 0
sd->sharpness = SHARPNESS_DEF;
#endif
#if HFLIP_DEF != 0
sd->hflip = HFLIP_DEF;
#endif
Expand Down

0 comments on commit 3149cfb

Please sign in to comment.