Commit 3149cfbf authored by Max Thrun's avatar Max Thrun Committed by Mauro Carvalho Chehab

V4L/DVB: gspca - ov534: Fixes for sharpness control

* Adjust comments for sharpness control
  * Set default value unconditionally, for readability
Signed-off-by: default avatarMax Thrun <bear24rw@gmail.com>
Signed-off-by: default avatarAntonio Ospite <ospite@studenti.unina.it>
Signed-off-by: default avatarJean-François Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 8fef9d96
...@@ -756,8 +756,8 @@ static void setsharpness(struct gspca_dev *gspca_dev) ...@@ -756,8 +756,8 @@ static void setsharpness(struct gspca_dev *gspca_dev)
u8 val; u8 val;
val = sd->sharpness; val = sd->sharpness;
sccb_reg_write(gspca_dev, 0x91, val); /* vga noise */ sccb_reg_write(gspca_dev, 0x91, val); /* Auto de-noise threshold */
sccb_reg_write(gspca_dev, 0x8e, val); /* qvga noise */ sccb_reg_write(gspca_dev, 0x8e, val); /* De-noise threshold */
} }
static void sethflip(struct gspca_dev *gspca_dev) static void sethflip(struct gspca_dev *gspca_dev)
...@@ -814,9 +814,7 @@ static int sd_config(struct gspca_dev *gspca_dev, ...@@ -814,9 +814,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
#endif #endif
sd->awb = AWB_DEF; sd->awb = AWB_DEF;
sd->aec = AEC_DEF; sd->aec = AEC_DEF;
#if SHARPNESS_DEF != 0
sd->sharpness = SHARPNESS_DEF; sd->sharpness = SHARPNESS_DEF;
#endif
#if HFLIP_DEF != 0 #if HFLIP_DEF != 0
sd->hflip = HFLIP_DEF; sd->hflip = HFLIP_DEF;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment