summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Andrén <erik.andren@gmail.com>2011-07-27 17:21:14 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-31 00:50:31 -0300
commitd6c5441f6204219fce7aefbe3e5ffead3815ef99 (patch)
treead1d13b2aba10884c577a69db26f841533b9f016
parenta0917ca4d776db110b129d148fffe3dba97ea9a7 (diff)
downloadop-kernel-dev-d6c5441f6204219fce7aefbe3e5ffead3815ef99.zip
op-kernel-dev-d6c5441f6204219fce7aefbe3e5ffead3815ef99.tar.gz
[media] gspca-stv06xx: Remove writes to read-only registers
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
index 51b6659..308add8 100644
--- a/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
+++ b/drivers/media/video/gspca/stv06xx/stv06xx_vv6410.c
@@ -172,15 +172,6 @@ static int vv6410_start(struct sd *sd)
struct cam *cam = &sd->gspca_dev.cam;
u32 priv = cam->cam_mode[sd->gspca_dev.curr_mode].priv;
- if (priv & VV6410_CROP_TO_QVGA) {
- PDEBUG(D_CONF, "Cropping to QVGA");
- stv06xx_write_sensor(sd, VV6410_XENDH, 320 - 1);
- stv06xx_write_sensor(sd, VV6410_YENDH, 240 - 1);
- } else {
- stv06xx_write_sensor(sd, VV6410_XENDH, 360 - 1);
- stv06xx_write_sensor(sd, VV6410_YENDH, 294 - 1);
- }
-
if (priv & VV6410_SUBSAMPLE) {
PDEBUG(D_CONF, "Enabling subsampling");
stv06xx_write_bridge(sd, STV_Y_CTRL, 0x02);
OpenPOWER on IntegriCloud