From patchwork Mon Jun 27 07:12:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Fricke X-Patchwork-Id: 12896301 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F3A5C43334 for ; Mon, 27 Jun 2022 07:12:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbiF0HM4 (ORCPT ); Mon, 27 Jun 2022 03:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232531AbiF0HMz (ORCPT ); Mon, 27 Jun 2022 03:12:55 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E7926F2; Mon, 27 Jun 2022 00:12:54 -0700 (PDT) Received: from localhost (dynamic-089-204-138-228.89.204.138.pool.telefonica.de [89.204.138.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sebastianfricke) by madras.collabora.co.uk (Postfix) with ESMTPSA id E4DEE6601822; Mon, 27 Jun 2022 08:12:52 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656313973; bh=LKns0N+pXDiYy8iu2jscLOkCSsGN0DimPC9HxCSoaiE=; h=From:To:Cc:Subject:Date:From; b=jzo/RzwBWL5gV7LVsER3H4GJOn9KFtthbwLlBMHlKDML+XitBqgFVabHGA1Dn25lw IGfjjpmK2OzqHAinnsedmMx61cJ22k0a4SC6vSsWk3oJY8wj4imKlXAxJ8J1ij30WT yPLhg1H3504f7cX7JaPw1jCnQq93WbUXoprkUCytE2rOuH64Y27OftTa4Hm9qHfhQT TUI7CYGkoHqLg5juqtDroF1Q2AVPJwPQM0YNfQLEg5clL4RGTYo33Ugj+NKIsWmOGI uAP6lpxfYlhlvRNXIZKoiIeLxRtyDEXHzux5Y34Wuo94atqjoNOF88/N8QbwOqzrEt W2+RujwbtGCAQ== From: Sebastian Fricke To: linux-media@vger.kernel.org Cc: kernel@collabora.com, Sebastian Fricke , Mauro Carvalho Chehab , Hans Verkuil , Ezequiel Garcia , Sakari Ailus , Laurent Pinchart , Ricardo Ribalda , Andrzej Pietrasiewicz , Daniel Scally , Sergey Senozhatsky , Nicolas Dufresne , Benjamin Gaignard , linux-kernel@vger.kernel.org Subject: [PATCH] media: Fix incorrect P010 chroma order description Date: Mon, 27 Jun 2022 09:12:23 +0200 Message-Id: <20220627071224.16787-1-sebastian.fricke@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The chroma order of P010 is `CbCr`, match with the descriptions in `include/uapi/linux/videodev2.h` and the documentation. Fixes: 5374d8fb75f31 Add P010 video format Signed-off-by: Sebastian Fricke Reviewed-by: Laurent Pinchart Reviewed-by: Ezequiel Garcia --- drivers/media/v4l2-core/v4l2-ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index e2526701294e..e03362c8aef9 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1306,7 +1306,7 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_PIX_FMT_NV61: descr = "Y/CrCb 4:2:2"; break; case V4L2_PIX_FMT_NV24: descr = "Y/CbCr 4:4:4"; break; case V4L2_PIX_FMT_NV42: descr = "Y/CrCb 4:4:4"; break; - case V4L2_PIX_FMT_P010: descr = "10-bit Y/CrCb 4:2:0"; break; + case V4L2_PIX_FMT_P010: descr = "10-bit Y/CbCr 4:2:0"; break; case V4L2_PIX_FMT_NV12_4L4: descr = "Y/CbCr 4:2:0 (4x4 Linear)"; break; case V4L2_PIX_FMT_NV12_16L16: descr = "Y/CbCr 4:2:0 (16x16 Linear)"; break; case V4L2_PIX_FMT_NV12_32L32: descr = "Y/CbCr 4:2:0 (32x32 Linear)"; break;