From patchwork Tue Oct 9 06:48:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Bobrowicz X-Patchwork-Id: 10632017 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 46339112B for ; Tue, 9 Oct 2018 06:48:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39291286F2 for ; Tue, 9 Oct 2018 06:48:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DF902891A; Tue, 9 Oct 2018 06:48:29 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 C77A028827 for ; Tue, 9 Oct 2018 06:48:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726057AbeJIODw (ORCPT ); Tue, 9 Oct 2018 10:03:52 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39763 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725855AbeJIODw (ORCPT ); Tue, 9 Oct 2018 10:03:52 -0400 Received: by mail-pf1-f196.google.com with SMTP id c25-v6so332177pfe.6 for ; Mon, 08 Oct 2018 23:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elite-embedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=C/q1xvuLIeoTeO/bxOems62KELrzsbrMEMN2SRmv6/k=; b=E8vOYLlTNiBoglk0uaIYDjdCxbieW8fFIlRcp8Mx30iEmd6fuL3kDY/4HWg8JZDnY+ GBun8eZWT8lMF6OTMLAmLEr2wq79h9ep9n0iabT12VHCy3W/F8kaZXWSCQMC/N47v2iu qqyq0vUV/8a7BSOHSMRYk8GwU93gKzrQwzlu72RUfugJMugvI5Yf7cH53+HqQ/APBZY0 0NDmaiGyTMIXyyVn+Q0rPzQNtepZf3FRETILOPhbHsH7K9S/pe6GLzSc5P54OLABuLDq wY7dWh+ioSfmm4Zd7fYIlV1sb5XUJl8iWBTNWg3P3jMeMkoF1hxzDu+2ew4JU6SLf+iV qCNw== 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; bh=C/q1xvuLIeoTeO/bxOems62KELrzsbrMEMN2SRmv6/k=; b=ochy8eDCe7j4xiawNd0LChogROyrFHOiN6DizQQI4wFgSIBbvec2qV8fo/W0ySSD9x BhgHxBSxf+UsbcqHbrrYwkO1LpXwAZ1VG9nbDAGJMu/ICfOj1KoEVI2X56Lajh96lwxq HEEpj+3/cZA+hQDNTqaNa+ZYazb8tM7QspzGKop4GWqpUrF5zOa3r/Ih9jmHmwzPMWAF OPKoPJtvCMtzZlXWdALYhRoTkaso6AE4RaAHC/q3Jj54UkZwtXnIJtaDxrpN6ZfiI8Qn 3h5bqSl5m6oj4T63doQHpOLUjBopdoa0cuM3UHwXmgSBn7yEnqttXaZL2Qv5RoIeoeCG 01Ww== X-Gm-Message-State: ABuFfogOSQWB0wTv+9ZV1C2drD9xlh32C9Sy9LjZShLBfFa6Srwjbe5g 0WJJyiyXsPCHKKmo2daBW+WggG4h4lLI X-Google-Smtp-Source: ACcGV62wWkM/Dgx0/xmfsBg5wbKmqd8ORza6nGdODItvyy9gGwHjlIW5/ENYtRAMHcunc0aSB6ikwA== X-Received: by 2002:a62:ccd4:: with SMTP id j81-v6mr29300171pfk.76.1539067707178; Mon, 08 Oct 2018 23:48:27 -0700 (PDT) Received: from ubuntu.localdomain (97-113-94-157.tukw.qwest.net. [97.113.94.157]) by smtp.gmail.com with ESMTPSA id h77-v6sm38960457pfh.13.2018.10.08.23.48.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Oct 2018 23:48:26 -0700 (PDT) From: Sam Bobrowicz To: linux-media@vger.kernel.org Cc: Sam Bobrowicz Subject: [PATCH 2/4] media: ov5640: fix get_light_freq on auto Date: Mon, 8 Oct 2018 23:48:00 -0700 Message-Id: <1539067682-60604-3-git-send-email-sam@elite-embedded.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539067682-60604-1-git-send-email-sam@elite-embedded.com> References: <1539067682-60604-1-git-send-email-sam@elite-embedded.com> 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 Light frequency was not properly returned when in auto mode and the detected frequency was 60Hz. Fix this. Signed-off-by: Sam Bobrowicz Acked-by: Jacopo Mondi --- drivers/media/i2c/ov5640.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 5031aab..f183222 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -1295,6 +1295,7 @@ static int ov5640_get_light_freq(struct ov5640_dev *sensor) light_freq = 50; } else { /* 60Hz */ + light_freq = 60; } }