Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2210898pxb; Mon, 11 Jan 2021 04:06:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaKNVkl6cFYPIN2RFr/E5YAEIJjFBTy6NGfbSzuoArOLsgfWtaF4G8eE/ZGnE8nWFUeUuT X-Received: by 2002:a17:906:ae14:: with SMTP id le20mr11003355ejb.451.1610366773187; Mon, 11 Jan 2021 04:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610366773; cv=none; d=google.com; s=arc-20160816; b=pTGwCBcavjCpMQbqlpygOhovCN0voriLHQpK34fEp2syb8MY5Rk/qiemqRPSy1CXcO QbQXy2eRy36JHtLqkOFsOe3ZONUAPH+m7v2d8pefb8QNiDtSUMbeK7yrs9WLJqKe88Dg +fMVi1krIHMqdsmoRiZGaOKz4gAieDGdsQTcehxTxKqCXb6l3TnOu3HrOtM8bRFPK39h y4nokxXBqmR6wdOuYPqEZIVWEiZUpgblXXaJmdtQRvcO4dO3BNnfiW58KLsdnjx7swky rxIz43WfSEWnxpOkyKpzKAowdgDnyTNmdevDmmtFKUkZmXS1zz/s4OD+KVBeScjGyDdb nHCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yct/bRwX1SOlF2lOdkoL6Ak94EKf/2hUDGXuoWe6Kh4=; b=1C11Q+1abEkrQZjFnhlyj50QTLuj2b6v3Q2/KA73VHTuSPBuTugyhWGXOfBB/O8whY BRdwj+nmnd7rs2H6Ht/3cBmacJpdLpzmpYGJ7gWhAs2HOOsnor3PsG4t/3CwfBYTUmZR 0hX/lbSY3mUc4/ygbOqcCxEKKhMPZ8lMekRxXMYSafH3P47utupV2da3O9Fq1fp5/CBu PFQaPuKauz2DRd+6fuUY3HAg6WoY92gCjRQlIsyr23Fp5TGkwVH0+4hbNvo5l1vr5OSn xXuBRNH2ynfJkB0AsLhtXu8tnpAJJ9b3EJVdK7NYgos2FJx+UQSE2yqpUV6jPPQbaogQ C3nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bJ0XLRD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n17si6328951ejs.423.2021.01.11.04.05.47; Mon, 11 Jan 2021 04:06:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bJ0XLRD1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726531AbhAKMEr (ORCPT + 99 others); Mon, 11 Jan 2021 07:04:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbhAKMEr (ORCPT ); Mon, 11 Jan 2021 07:04:47 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0789EC061794 for ; Mon, 11 Jan 2021 04:04:07 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id d2so10823531pfq.5 for ; Mon, 11 Jan 2021 04:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yct/bRwX1SOlF2lOdkoL6Ak94EKf/2hUDGXuoWe6Kh4=; b=bJ0XLRD1wmt8vA3mfkwBDMlgMH3i45cBOJeQ+twPiCTBeY576PgXIRI0cNkF6GMYAr HSlOS6W+C6+PFkBQvZxoLrC7C98ZccEVnUKI1FXoI92ZGCgQ83DhlN2gqBuKayVsdkUp Ymm0Y/4rJk6WT7ZsMnc3ITvuLVOhY2lVz5Hh1x1/vbgJFC8ZNs7grm03Wb5+7xTM0H2a mH6MW379K2XOEvz21RDhXjFZl5gdsf7Ds/PtEBLBgoNhtNZTOEI/YkmniyG+6HHhtUU3 TfL7JTINTe57ojfu1BdULcNSd1740zHMO9hjL/ktHHBCeSz61ZDIOI27c7R/HzlopOXt pLOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yct/bRwX1SOlF2lOdkoL6Ak94EKf/2hUDGXuoWe6Kh4=; b=mGpb4bF6LP71rGCZXCKUl1yDzKJtqYDxYLlOo/kXOcMNCNDt3LkIWCuPdCGYy7EJjc ZJ5TA6TFHByoXn4Tb9TzGR4KJvzndbeNP3nvh8HefIFVrCI1d9LIHnWDRm/r/u6KEEr+ 4pUyEkgcwAdWBOIlYyGv90BNDp9mhdKm56JwwkNuYLo08pnaVSNMs9EGfN93Yj7DJD5a ABNNn7riuaHbOwfOnoaGVL8TUZSAcA5PMWQJT4HRtLI1T1pKRhgHjSJ+4xkEAVdJd0Uq qHkdgJZc6F/WB4vDmoSHPocuJFppe9dc6kXFci4MtuH22ScFOZYLPSeqAXRkxaNwfY1V Riag== X-Gm-Message-State: AOAM530c045OX/Kv6vLbazW9Z3wmWw4yzHo4ct4m7dY37lhLO3LFWOlI 9R3qPmSkZ+ljcANs1ptk0Gk/7ouQPvxLA6B17uDH5A== X-Received: by 2002:a63:e151:: with SMTP id h17mr19160314pgk.120.1610366646297; Mon, 11 Jan 2021 04:04:06 -0800 (PST) MIME-Version: 1.0 References: <20210111115930.117393-1-robert.foss@linaro.org> In-Reply-To: <20210111115930.117393-1-robert.foss@linaro.org> From: Robert Foss Date: Mon, 11 Jan 2021 13:03:55 +0100 Message-ID: Subject: Re: [PATCH v2] media: ov8856: Configure sensor for GRBG Bayer for all modes To: Dongchun Zhu , Mauro Carvalho Chehab , linux-media , linux-kernel , Sakari Ailus , Bingbu Cao , Andrey Konovalov Cc: Tomasz Figa Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Darn, this should have been sent out as v3. On Mon, 11 Jan 2021 at 13:00, Robert Foss wrote: > > The previously added modes 3264x2448 & 1632x1224 are actually > configuring the sensor for BGGR mode, this is an issue since > the mode that is exposed through V4L incorrectly is set as GRBG. > > This patch fixes the issue by configuring the sensor to always > output GRBG Bayer formatted frames. > > Signed-off-by: Robert Foss > Suggested-by: Andrey Konovalov > --- > > > Changes since v1: > - Sakari: Added mode information to ov8856_mode struct > - Sakari: enum_mbus_code updated > > Changes since v2: > - Andrey: Switched approach to changing the sensor configuration > to yield identical Bayer modes for all modes > > > drivers/media/i2c/ov8856.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/media/i2c/ov8856.c b/drivers/media/i2c/ov8856.c > index 2f4ceaa80593..8a355135c7db 100644 > --- a/drivers/media/i2c/ov8856.c > +++ b/drivers/media/i2c/ov8856.c > @@ -428,7 +428,7 @@ static const struct ov8856_reg mode_3264x2448_regs[] = { > {0x3810, 0x00}, > {0x3811, 0x04}, > {0x3812, 0x00}, > - {0x3813, 0x02}, > + {0x3813, 0x01}, > {0x3814, 0x01}, > {0x3815, 0x01}, > {0x3816, 0x00}, > @@ -821,7 +821,7 @@ static const struct ov8856_reg mode_1632x1224_regs[] = { > {0x3810, 0x00}, > {0x3811, 0x02}, > {0x3812, 0x00}, > - {0x3813, 0x02}, > + {0x3813, 0x01}, > {0x3814, 0x03}, > {0x3815, 0x01}, > {0x3816, 0x00}, > -- > 2.27.0 >