From patchwork Wed Aug 28 14:24:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 13781385 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 75178C5AE5A for ; Wed, 28 Aug 2024 14:42:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E708010E54E; Wed, 28 Aug 2024 14:42:35 +0000 (UTC) Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52D6E10E54E for ; Wed, 28 Aug 2024 14:42:34 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id C2946A4155C; Wed, 28 Aug 2024 14:42:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11F07C4CEDF; Wed, 28 Aug 2024 14:26:15 +0000 (UTC) From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Maxime Ripard , dri-devel@lists.freedesktop.org, Dave Stevenson Subject: [PATCH 0/7] media: export InfoFrames to debugfs Date: Wed, 28 Aug 2024 16:24:06 +0200 Message-ID: X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Maxime added support for exporting InfoFrames to debugfs for drm, and this series does the same for the media subsystem. I used the same names for the InfoFrames as the drm implementation does, and the format is the same as well. And edid-decode can be used to parse the InfoFrames and do conformity checking. The first two patches add helpers for this to the core framework, and the next 5 patches add support for this to the HDMI drivers. I tested the three adv drivers, and Dave Stevenson tested the tc358743 driver. I don't have a tda1997x available for testing, so I might decide to just drop that patch. This is very useful for debugging received InfoFrames. Regards, Hans Hans Verkuil (7): media: v4l2-core: add v4l2_debugfs_root() media: v4l2-core: add v4l2_debugfs_if_alloc/free() media: i2c: adv7511-v4l2: export InfoFrames to debugfs media: i2c: adv7604: export InfoFrames to debugfs media: i2c: adv7842: export InfoFrames to debugfs media: i2c: tc358743: export InfoFrames to debugfs media: i2c: tda1997x: export InfoFrames to debugfs drivers/media/i2c/adv7511-v4l2.c | 91 +++++++++++++--- drivers/media/i2c/adv7604.c | 90 ++++++++++++---- drivers/media/i2c/adv7842.c | 120 ++++++++++++++++------ drivers/media/i2c/tc358743.c | 36 ++++++- drivers/media/i2c/tda1997x.c | 50 ++++++++- drivers/media/v4l2-core/v4l2-dev.c | 14 +++ drivers/media/v4l2-core/v4l2-dv-timings.c | 63 ++++++++++++ include/media/v4l2-dev.h | 15 +++ include/media/v4l2-dv-timings.h | 48 +++++++++ 9 files changed, 455 insertions(+), 72 deletions(-)