Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp327992ybv; Wed, 5 Feb 2020 06:18:58 -0800 (PST) X-Google-Smtp-Source: APXvYqx84nDutCP04WdqsqvjzTtbcaMCCasquofMVaunc0WPuHkRv5PgtLZHATzJK2vzwnVLLEiv X-Received: by 2002:a9d:32f:: with SMTP id 44mr25469103otv.234.1580912338595; Wed, 05 Feb 2020 06:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580912338; cv=none; d=google.com; s=arc-20160816; b=xNQRiEcPuszpDcMtlpWBS2W79HZIW271fOtFswnE1vGfitU6rnjiMaD9Ow3ObKDV/B 4Gp7EpgYW/A7hJXiExiMCuzfI6sN3lZHJR7gWe6krR/+Xe6ZPMVpv4SXa5EEOcoj4phS STSn4jYRdIqD/KybNA4yXF/3w+YAM/pPdY7wts2T0Ki7VqcQ4z3u/o/tglCN0g3VMoVF 3YBv7lnA620ghHbWmvDlVyroOFPwVjcCe/9jtY7et/wrJDaBHA3WYam34oFcm5Iw0WL5 EnhM8efyIcbtHN288DiMsH9/T+EpajWw3s09VwRe8vU8kXg5iDQ1911mRJX1MrkzCM5j J3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=S236Zvp4FVTL21XAC4IoNDKOkarIlP2fiHdTN8Cjg1M=; b=Y0qnCvOZAxfdGjLUGrk1N3gedgq6wnVJzfPZ5miEBR5kN0fhLty1M6bffDWRBu7Uvx cimdqB2UiLKobOBAi6q9Nx/m7Fe07rPYGX9f3fOO0DIrqhXxEfaphHWGrQXMwGFUPS79 JBxzXkIRgavhcd11Exs4C8pRZ6KkIcxArLczrJOFcegISs813X6967H/zTDtmamgz0XN FNIpSDKXtgmEX8GsZ1HFgoCmupgE8ksP+HKdKtJXe0b+V4UPcHOOtLYCRXK5FauMZucD XfnABkotPeOFmgliQExOFcq2xBP39WTtlcgsde1URBHrDu9LrPTrzzIQXeABSBazW8iW IRcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si14646231otq.68.2020.02.05.06.18.46; Wed, 05 Feb 2020 06:18:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728200AbgBEORq (ORCPT + 99 others); Wed, 5 Feb 2020 09:17:46 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54258 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgBEORp (ORCPT ); Wed, 5 Feb 2020 09:17:45 -0500 Received: from [IPv6:2804:214:85ec:bd22:b29b:72b8:8fc3:cfae] (unknown [IPv6:2804:214:85ec:bd22:b29b:72b8:8fc3:cfae]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 0995F29358C; Wed, 5 Feb 2020 14:17:40 +0000 (GMT) Subject: Re: [PATCH 2/3] media: vimc: Add GBR media bus code To: =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , linux-media@vger.kernel.org Cc: Shuah Khan , Mauro Carvalho Chehab , Hans Verkuil , linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org References: <20200202155019.1029993-1-nfraprado@protonmail.com> <20200202155019.1029993-3-nfraprado@protonmail.com> From: Helen Koike Message-ID: Date: Wed, 5 Feb 2020 11:17:35 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200202155019.1029993-3-nfraprado@protonmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nícolas, Thank you for the patch. On 2/2/20 1:50 PM, Nícolas F. R. A. Prado wrote: > Add missing GBR888_1X24 media bus code in the vimc_pix_map_list. Since > there is no pixel format for it, use the pixelformat for RGB. > > Co-developed-by: Vitor Massaru Iha > Signed-off-by: Vitor Massaru Iha > Signed-off-by: Nícolas F. R. A. Prado > --- > drivers/media/platform/vimc/vimc-common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/vimc/vimc-common.c b/drivers/media/platform/vimc/vimc-common.c > index 55797e5ab2b1..591a50f63766 100644 > --- a/drivers/media/platform/vimc/vimc-common.c > +++ b/drivers/media/platform/vimc/vimc-common.c > @@ -25,7 +25,7 @@ static const struct vimc_pix_map vimc_pix_map_list[] = { > .bayer = false, > }, > { > - .code = {MEDIA_BUS_FMT_RGB888_1X24}, > + .code = {MEDIA_BUS_FMT_RGB888_1X24, MEDIA_BUS_FMT_GBR888_1X24}, Could you add spaces around the curly brackets here too? I was also thinking that all the MEDIA_BUS_FMT_RGB888_* and MEDIA_BUS_FMT_GBR888_* variants could be added here (to be verified). Thanks Helen > .pixelformat = V4L2_PIX_FMT_RGB24, > .bpp = 3, > .bayer = false, >