From patchwork Mon Aug 19 11:45:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 820807 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DA20C166F34 for ; Mon, 19 Aug 2024 11:47:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724068073; cv=none; b=W/HgbhUcYNKFTjfEWdiR/bhqRj9pGB9xxy+DoAZIttmwOoeJXekjxTk9c5zo7+fsHjiEhjtH533KCRdvrDzF5Xs63Ch+WVEsgfKExLiupIekJlkVNT8FI4Ijb9SJ3wgf9LBkdEfbj0FdNYSeYEBjBd8F1YEUCOp9iiEmlFBLayg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724068073; c=relaxed/simple; bh=1rzj8VVU1+eaSlRo+NK16kiH3KaAQI3wIKo1fGui3zw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uMh1JfX7Ve1ydToB1hCN5iiEOIiAtM9r7eDQu6ZlrKZG3nBET2VP/z9PhF9UStuDBGZok3U2YFsWv6eqeHhQe9RBE/VEt7lF2GAaD7/+TRko3D1SqGxZixl6zqvT7FKJsvKkgRNUQIAvDjkf0rnz+Furea+xMW1nOJtMkwdjIZc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F76AC32782; Mon, 19 Aug 2024 11:47:52 +0000 (UTC) From: Hans Verkuil To: linux-media@vger.kernel.org Cc: Erling Ljunggren , Hans Verkuil Subject: [PATCH 2/3] utils/common: add V4L2_CAP_EDID support Date: Mon, 19 Aug 2024 13:45:43 +0200 Message-ID: <7ab24b375c3d23ffbf2836de16834d94ee8fd88a.1724067944.git.hverkuil-cisco@xs4all.nl> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Understand V4L2_CAP_EDID and log it. Signed-off-by: Hans Verkuil --- utils/common/v4l2-info.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/common/v4l2-info.cpp b/utils/common/v4l2-info.cpp index aaf7b0b5..7dd7e708 100644 --- a/utils/common/v4l2-info.cpp +++ b/utils/common/v4l2-info.cpp @@ -91,6 +91,8 @@ static std::string cap2s(unsigned cap) s += "\t\tI/O MC\n"; if (cap & V4L2_CAP_READWRITE) s += "\t\tRead/Write\n"; + if (cap & V4L2_CAP_EDID) + s += "\t\tEDID Only\n"; if (cap & V4L2_CAP_STREAMING) s += "\t\tStreaming\n"; if (cap & V4L2_CAP_EXT_PIX_FORMAT)