From patchwork Thu Oct 3 07:15:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Johan Korsnes (jkorsnes)" X-Patchwork-Id: 11172231 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B6EA01709 for ; Thu, 3 Oct 2019 07:16:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9F03720842 for ; Thu, 3 Oct 2019 07:16:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F03720842 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=cisco.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 58F146E27F; Thu, 3 Oct 2019 07:16:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) by gabe.freedesktop.org (Postfix) with ESMTPS id 152DF6E27F for ; Thu, 3 Oct 2019 07:16:06 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.67,251,1566864000"; d="scan'208";a="17576737" Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 03 Oct 2019 07:16:05 +0000 Received: from localhost.rd.cisco.com ([10.47.76.245]) by aer-core-3.cisco.com (8.15.2/8.15.2) with ESMTP id x937G3MA001107; Thu, 3 Oct 2019 07:16:04 GMT From: Johan Korsnes To: dri-devel@lists.freedesktop.org Subject: [PATCH] drivers: video: hdmi: log ext colorimetry applicability Date: Thu, 3 Oct 2019 09:15:49 +0200 Message-Id: <20191003071549.31272-1-jkorsnes@cisco.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Outbound-SMTP-Client: 10.47.76.245, [10.47.76.245] X-Outbound-Node: aer-core-3.cisco.com X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1294; q=dns/txt; s=iport; t=1570086967; x=1571296567; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=azYyqHIYzV26XDIjpKQ5qhK+INsrRrWYZtnuE1wO6nk=; b=R6QaaVUzY52ZZKDC7EVahw4ReueVb2ruxhMxWoYLLXm9WsZxMb2BoK4O AdhE/4nZhlSU/Tt3TQyFzZqLWO6/p6sRTATJfrK/rhGmareJAWwbWITHQ NFUxw9d84t5Z0ujyY9Y+e24vYLxD2JeNJm5Cx24Sq7uPCmkSi7sSz1zec g=; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Johan Korsnes , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When logging the AVI InfoFrame, clearly indicate whether or not the extended colorimetry attribute is active. This is only the case when the AVI InfoFrame colorimetry attribute is set to extended. [0] [0] CTA-861-G section 6.4 page 57 Signed-off-by: Johan Korsnes Reviewed-by: Ville Syrjälä --- drivers/video/hdmi.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/video/hdmi.c b/drivers/video/hdmi.c index f29db728ff29..a709e38a53ca 100644 --- a/drivers/video/hdmi.c +++ b/drivers/video/hdmi.c @@ -682,8 +682,14 @@ static void hdmi_avi_infoframe_log(const char *level, hdmi_log(" active aspect: %s\n", hdmi_active_aspect_get_name(frame->active_aspect)); hdmi_log(" itc: %s\n", frame->itc ? "IT Content" : "No Data"); - hdmi_log(" extended colorimetry: %s\n", + + if (frame->colorimetry == HDMI_COLORIMETRY_EXTENDED) + hdmi_log(" extended colorimetry: %s\n", hdmi_extended_colorimetry_get_name(frame->extended_colorimetry)); + else + hdmi_log(" extended colorimetry: N/A (0x%x)\n", + frame->extended_colorimetry); + hdmi_log(" quantization range: %s\n", hdmi_quantization_range_get_name(frame->quantization_range)); hdmi_log(" nups: %s\n", hdmi_nups_get_name(frame->nups));