From patchwork Tue Jun 1 22:58:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier Lorin X-Patchwork-Id: 103666 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o51Mw8mj003173 for ; Tue, 1 Jun 2010 22:58:09 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757329Ab0FAW6H (ORCPT ); Tue, 1 Jun 2010 18:58:07 -0400 Received: from mail-ww0-f46.google.com ([74.125.82.46]:56931 "EHLO mail-ww0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754678Ab0FAW6F (ORCPT ); Tue, 1 Jun 2010 18:58:05 -0400 Received: by mail-ww0-f46.google.com with SMTP id 28so2464375wwb.19 for ; Tue, 01 Jun 2010 15:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=eOaDikDvycvt3Itq8cEzBej8oxFra+U3xEg49NazFBU=; b=rUUTzGTl9Ytm60ogXGfXglpFVSDV7qB1wiNcfozf2kGiTmg2uvXW5X5W4lP6jijmFb SUSjzwAN52vqw17QpTC44QYSmvNr6TiZIq7c1gAgcGVXqWbmZ9vLPEDhbZrubnKpEj0u XyQ9tA4lFbf3vjfJBfP+272qNo05ZjVP0EKOM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=tGb5VUGClZtg6evmzOvE0AAoYev8JZZg0MlazslAMUYkoXEz//jGtvryWkW4ld0DpP 4yLMUXux/2QRGPFa5Pccc0g8uMKYWJi4Ffg1x4lCS60sL8jj0KOBZAvc7/Yo+4LNErFv B2GN3upyWoxEn0KqBdHnh2F/Z6OyUhdCTd/9M= Received: by 10.227.69.71 with SMTP id y7mr6729083wbi.123.1275433084581; Tue, 01 Jun 2010 15:58:04 -0700 (PDT) Received: from [192.168.1.3] (cha25-4-78-248-177-42.fbx.proxad.net [78.248.177.42]) by mx.google.com with ESMTPS id y31sm53456142wby.16.2010.06.01.15.58.03 (version=SSLv3 cipher=RC4-MD5); Tue, 01 Jun 2010 15:58:04 -0700 (PDT) Subject: [PATCH 5/6] gspca - gl860: fix for wrong 0V9655 resolution identifier name From: Olivier Lorin To: V4L Mailing List Cc: Jean-Francois Moine Date: Wed, 02 Jun 2010 00:58:02 +0200 Message-Id: <1275433082.20756.103.camel@miniol> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 01 Jun 2010 22:58:09 +0000 (UTC) diff -urpN i4/gl860-ov9655.c gl860/gl860-ov9655.c --- i4/gl860-ov9655.c 2010-06-01 23:18:28.000000000 +0200 +++ gl860/gl860-ov9655.c 2010-04-28 13:39:14.000000000 +0200 @@ -69,7 +69,7 @@ static u8 *tbl_640[] = { "\xd0\x01\xd1\x08\xd2\xe0\xd3\x01" "\xd4\x10\xd5\x80" }; -static u8 *tbl_800[] = { +static u8 *tbl_1280[] = { "\x00\x40\x07\x6a\x06\xf3\x0d\x6a" "\x10\x10\xc1\x01" , "\x12\x80\x00\x00\x01\x98\x02\x80" "\x03\x12\x04\x01\x0b\x57\x0e\x61" @@ -217,7 +217,7 @@ static int ov9655_init_post_alt(struct g ctrl_out(gspca_dev, 0x40, 5, 0x0001, 0x0000, 0, NULL); - tbl = (reso == IMAGE_640) ? tbl_640 : tbl_800; + tbl = (reso == IMAGE_640) ? tbl_640 : tbl_1280; ctrl_out(gspca_dev, 0x40, 3, 0x0000, 0x0200, tbl_length[0], tbl[0]);