From patchwork Sun Apr 16 17:35:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Frank_Sch=C3=A4fer?= X-Patchwork-Id: 9683051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 673EF60138 for ; Sun, 16 Apr 2017 17:36:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 598A2279E0 for ; Sun, 16 Apr 2017 17:36:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E75227F17; Sun, 16 Apr 2017 17:36:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C74C2279E0 for ; Sun, 16 Apr 2017 17:36:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756561AbdDPRgE (ORCPT ); Sun, 16 Apr 2017 13:36:04 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34511 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756546AbdDPRgC (ORCPT ); Sun, 16 Apr 2017 13:36:02 -0400 Received: by mail-wr0-f196.google.com with SMTP id u18so18048446wrc.1 for ; Sun, 16 Apr 2017 10:36:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ond/r/W8oeB3TuXivW4KbSo7FNsrmoygHOoVVmp7tQk=; b=Qzm5W4+ROs4gcwz+xj7tvD/5q46SFHO7/HZRUKZWnsCOPmzlU/I7ehFEtG9vaXkiSO 40RVqpdCn1eWQ6e+Fsy+q8lqGVv6uXrWvEa4VjVwpm4o0fyA7rMA1EM5Y+mAmhOrlqXd 0FEPZqb5bg07hv/uAChEBoReulklX55ZmhNWx6q4S2zJpvJZMkQtzHSekhsoVYqmFqPi YLle0V83iRDTdvC69aBvwOo6UoUc7J49F0vntg9AKQSkMVdk3eJNtJbTNGnkWvzNLglV auK2RwWF/VNLPdW4/2BpXZZcXMmDtodf6OQel0mORpiLFZ5CEOdJ8xF2cPGEt1clVEgN cf0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ond/r/W8oeB3TuXivW4KbSo7FNsrmoygHOoVVmp7tQk=; b=B6Iw2xR23vnnvhXO8kkMMUUVabN0hAEJoy/b9Mz3Jfu7x+qXlB/zX/2ejBzsIHejgY uEEYsMacrotQkUiUSzrCtT+rMjpZDHa7BrPbrgjAFAAHbL0rW2NpuQwPgQNd3efBs3zU ZW4o8aP0w5MfnyWk3wdZulblQ9uY9vw+ltgwsAdHGMNO66THp5gX1jxsZMRxIc2qJJN3 /4obX6pSKOQiQGjdrQYNRsTRi9/6x3MfEvJVmM6XvbgR/4NCn46kkUNHoRjoc0RC+U+V BM2bssNK3n2pRGcrB+LXaGw1i/Ulu+UHGwbobHO7hKMFHLqVzRIeJ9mHvMCLDlOtH/hp TIUQ== X-Gm-Message-State: AN3rC/7v2eXRG2/38/5XdtlAzdGCVIwMV65flSBzCHfIeiGkSrgRFMg1 94zQn0cheTuSvg== X-Received: by 10.223.177.157 with SMTP id q29mr15354003wra.67.1492364160836; Sun, 16 Apr 2017 10:36:00 -0700 (PDT) Received: from Athlon64X2-5000.lan (ip-109-90-213-36.hsi11.unitymediagroup.de. [109.90.213.36]) by smtp.googlemail.com with ESMTPSA id l36sm8491642wrl.59.2017.04.16.10.35.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 16 Apr 2017 10:35:59 -0700 (PDT) From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= To: linux-media@vger.kernel.org Cc: guennadi.liakhovetski@intel.com, hans.verkuil@cisco.com, =?UTF-8?q?Frank=20Sch=C3=A4fer?= Subject: [PATCH 4/7] ov2640: add missing write to size change preamble Date: Sun, 16 Apr 2017 19:35:43 +0200 Message-Id: <20170416173546.4317-5-fschaefer.oss@googlemail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170416173546.4317-1-fschaefer.oss@googlemail.com> References: <20170416173546.4317-1-fschaefer.oss@googlemail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP HSIZE and VSIZE bits 0 to 2 and HSIZE bit 11 are encoded in DSP register SIZEL. Signed-off-by: Frank Schäfer --- drivers/media/i2c/ov2640.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/i2c/ov2640.c b/drivers/media/i2c/ov2640.c index 11f1b807c292..6f0cc722477d 100644 --- a/drivers/media/i2c/ov2640.c +++ b/drivers/media/i2c/ov2640.c @@ -500,6 +500,9 @@ static const struct regval_list ov2640_init_regs[] = { static const struct regval_list ov2640_size_change_preamble_regs[] = { { BANK_SEL, BANK_SEL_DSP }, { RESET, RESET_DVP }, + { SIZEL, SIZEL_HSIZE8_11_SET(UXGA_WIDTH) | + SIZEL_HSIZE8_SET(UXGA_WIDTH) | + SIZEL_VSIZE8_SET(UXGA_HEIGHT) }, { HSIZE8, HSIZE8_SET(UXGA_WIDTH) }, { VSIZE8, VSIZE8_SET(UXGA_HEIGHT) }, { CTRL2, CTRL2_DCW_EN | CTRL2_SDE_EN |