From patchwork Wed Jan 11 16:59:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 42093 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3431500wrt; Wed, 11 Jan 2023 09:01:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhq+mnYH5JzU7T4d0HT+0YNtmL2Oqt0SEzthL/BAteuwz3wBd06pybfImBFOwxka6Lw0OI X-Received: by 2002:a17:907:a708:b0:82e:a59a:5c3e with SMTP id vw8-20020a170907a70800b0082ea59a5c3emr81045101ejc.10.1673456508416; Wed, 11 Jan 2023 09:01:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673456508; cv=none; d=google.com; s=arc-20160816; b=yAIWEV3O1O4b6vTjDBLZv5LTbDP8NxF9/9CShlMR78QPIkM6tU92my1HXQyDXSiIej TdmpgWiTYHxOxlLX72ZVVG7ZfH968TUl71k61FDJ6Ggxz+9XcJIinHjvepawztoOLIxD NtA/wqVXHMEZwhymWvydNjbRdvRk1P95pc7evPzp+yzZB4HSCv+aygw0oe42v4GLBaPA Bx4dwciGP8tUbV5tO4Rny3ZLYgJBcjDzjkw2rjDro5Cou7GgrIC6E60lFHWm+GJIQTiF CFNCGJ3beYvZ7KBhcp+qq7ObSgqba1Fj9f7aliV/0Fo3yGfAUWSRCANuS+T0nOzomTNW bt7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Dx9zLZ4bCu4WBpyx7S5bTGqkJMiI3mPNycHLAYzyOXQ=; b=g6MNbwkGYRYOM0xJPlEgSlz4V7165WvJJ1cMInRCPHicvdJN3vRacIMRefloN5glKh gom5DLGUbz/nX5qdJIcOOqA79efmcuW1faFm6FPuvkEo5rLX6v+Xy1fyBz1S38PYiTtx 8+bR9dwOVKfi3BnYA3HUQysl738qGVHAd9luJZPuYJthNBk0/y9tNWpIcKjsnbEbcCkd qYcVXdHLkgD9aTkT4Cfw2d1rF056Jp2CbZ5sNhUe9x7nxnngL4gys/+uvCMWWGNsDlX4 2WlEfW3YeRUs1XfsuoBg4UkKW6iMlRCVIXexCIx+GyMLLOffBmFDljut1DW+bKVIRdIy 8AYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Nd9EhdAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs38-20020a1709072d2600b0085a483a6fcbsi4402908ejc.278.2023.01.11.09.01.20; Wed, 11 Jan 2023 09:01:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Nd9EhdAZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238513AbjAKRAF (ORCPT + 99 others); Wed, 11 Jan 2023 12:00:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235829AbjAKQ7o (ORCPT ); Wed, 11 Jan 2023 11:59:44 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAAA3316; Wed, 11 Jan 2023 08:59:42 -0800 (PST) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:1ee3:efce:e4f6:17a3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 4ADE06602DA6; Wed, 11 Jan 2023 16:59:41 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673456381; bh=9um+KEVR7P+gZc2gYPj/3g5J+YLW4FhxyxYBCrnBhZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nd9EhdAZIo5dmC5sKWqQCy1LFtG0SHw2npSCl3ja+Cqe99ddSgmJRG1W3rjbkf0+/ oRFz5mC/vaXy6YlqCPz8YV8/oIyY9vv4Dv8S893Aml9eib61Sj1KCsB25O0PzOiFNm 3Kjaz3BtYOAezkKhpI2gzvBMH7YJBJp7QezxmJ5jIePYStFp4aRVkbaeD/cc8ONyHC +1RZH6MRYrCwdXSCW+edEHvG2o1QHSPRhIeHYNiD1WTb7nciUnUKTcrIJCu4pClKOI RIQIT0mHiS5k/hoGyGJ5qgTQq0CeETLoIFXwbbkvng4NVWqIffhB1LgLX9PrhdL2Zh cQJXRzMRvqC1w== From: Benjamin Gaignard To: ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, heiko@sntech.de, daniel.almeida@collabora.com, nicolas.dufresne@collabora.co.uk Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v3 04/13] media: verisilicon: Get bit depth for V4L2_PIX_FMT_NV12_10LE40_4L4 Date: Wed, 11 Jan 2023 17:59:22 +0100 Message-Id: <20230111165931.753763-5-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230111165931.753763-1-benjamin.gaignard@collabora.com> References: <20230111165931.753763-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754746331477250064?= X-GMAIL-MSGID: =?utf-8?q?1754746331477250064?= Let's the driver knows that V4L2_PIX_FMT_NV12_10LE40_4L4 is a 10bits pixel format. Signed-off-by: Benjamin Gaignard --- drivers/media/platform/verisilicon/hantro_v4l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/verisilicon/hantro_v4l2.c b/drivers/media/platform/verisilicon/hantro_v4l2.c index 2c7a805289e7..162110ac118d 100644 --- a/drivers/media/platform/verisilicon/hantro_v4l2.c +++ b/drivers/media/platform/verisilicon/hantro_v4l2.c @@ -69,6 +69,7 @@ int hantro_get_format_depth(u32 fourcc) switch (fourcc) { case V4L2_PIX_FMT_P010: case V4L2_PIX_FMT_P010_4L4: + case V4L2_PIX_FMT_NV12_10LE40_4L4: return 10; default: return 8;