From 7cd4c81297bd5933bcfb6377a09651a48c6d5f57 Mon Sep 17 00:00:00 2001 From: Golam Mortuza Hossain Date: Mon, 6 Oct 2008 20:22:39 -0300 Subject: [PATCH] Sets a working value for the register SN9C20X_SCALE This patch avoids writing unknown value on the register SN9C20X_SCALE by specifying "scale = wsize->scale". This leads to working video in sn9c20x based webcams. Signed-off-by: Golam Mortuza Hossain --- sn9c20x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sn9c20x.c b/sn9c20x.c index 8b8c3c0..1067d76 100644 --- a/sn9c20x.c +++ b/sn9c20x.c @@ -605,8 +605,7 @@ int sn9c20x_set_resolution(struct usb_microdia *dev, window[2] = wsize->vstart >> 1; window[3] = wsize->vsize >> 1; window[4] = 0x00; - usb_microdia_control_read(dev, SN9C20X_SCALE, &scale, 1); - scale = (scale & 0xCF) | wsize->scale; + scale = wsize->scale; usb_microdia_control_write(dev, SN9C20X_HSTART, window, 5); usb_microdia_control_write(dev, SN9C20X_SCALE, &scale, 1); -- 2.11.4.GIT