diff options
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c b/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c index 1cfe58504553..14335a9e4bb5 100644 --- a/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c +++ b/drivers/media/video/gspca/stv06xx/stv06xx_hdcs.c | |||
@@ -317,8 +317,10 @@ static int hdcs_set_size(struct sd *sd, | |||
317 | 317 | ||
318 | y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 | 318 | y = (hdcs->array.height - HDCS_1020_BOTTOM_Y_SKIP - height) / 2 |
319 | + hdcs->array.top; | 319 | + hdcs->array.top; |
320 | } else if (height > hdcs->array.height) { | 320 | } else { |
321 | height = hdcs->array.height; | 321 | if (height > hdcs->array.height) |
322 | height = hdcs->array.height; | ||
323 | |||
322 | y = hdcs->array.top + (hdcs->array.height - height) / 2; | 324 | y = hdcs->array.top + (hdcs->array.height - height) / 2; |
323 | } | 325 | } |
324 | 326 | ||