From patchwork Sat Oct 1 14:38:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Lee, Shawn C" X-Patchwork-Id: 12996534 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 6CF2CC433FE for ; Sat, 1 Oct 2022 14:39:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3604B10E3F6; Sat, 1 Oct 2022 14:39:01 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3709210E3F6; Sat, 1 Oct 2022 14:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664635138; x=1696171138; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZvmnKlBOEJQV03vypnRoR8Ba2QSzMp3+FTy2heXqD60=; b=V827RwarkSmdqRWJ0PK+3OH+9tJNXN9qhW3iz9giyTAeBARLVR5L5W1I eZrvrFpd+BKWIU1nvXgHKkWLSlg3XDdyuNJ6FaL3dpfNoWH6ziWO+RQTY uLSZeorhaHyDLdj9I+Fkx3A5oPs4qQARM4N6+Gt+CU79PZ9h3MftQTsIn +BzcrrYLarvBUbxVRRDPtyy2+Vu1OMibmyDfQ6u+nX+9vgEgzITNIeIyk u2yRaLe+zKIihr3XOA3eEX+1X3GNilqpUN+SJihmuMPANH6lvRRi2UAh3 58y6l4zlOlk8ZvOGTvHCVzuOJoQHYaqYDnst4kjoHlEL/pNhc/VLFcDFM g==; X-IronPort-AV: E=McAfee;i="6500,9779,10487"; a="302364173" X-IronPort-AV: E=Sophos;i="5.93,361,1654585200"; d="scan'208";a="302364173" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Oct 2022 07:38:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10487"; a="653868403" X-IronPort-AV: E=Sophos;i="5.93,361,1654585200"; d="scan'208";a="653868403" Received: from shawnle1-build-machine.itwn.intel.com ([10.5.253.78]) by orsmga008.jf.intel.com with ESMTP; 01 Oct 2022 07:38:56 -0700 From: Lee Shawn C To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Sat, 1 Oct 2022 22:38:39 +0800 Message-Id: <20221001143839.22397-1-shawn.c.lee@intel.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH] drm: Add 64:27 and 256:135 picture aspect ratio support X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Drm driver did not report connector can support 64:27 and 256:135 picture aspect ratio. Even if drm_edid driver already have those modes in CEA table. Add both of them then user space application would program proper picture apsect ratio when HDMI 2.1 monitor connected. Cc: Shankar Uma Cc: Ville Syrjälä Signed-off-by: Lee Shawn C --- drivers/gpu/drm/drm_connector.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index e3142c8142b3..45078d11c7d3 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -948,6 +948,8 @@ static const struct drm_prop_enum_list drm_aspect_ratio_enum_list[] = { { DRM_MODE_PICTURE_ASPECT_NONE, "Automatic" }, { DRM_MODE_PICTURE_ASPECT_4_3, "4:3" }, { DRM_MODE_PICTURE_ASPECT_16_9, "16:9" }, + { DRM_MODE_PICTURE_ASPECT_64_27, "64:27" }, + { DRM_MODE_PICTURE_ASPECT_256_135, "256:135" }, }; static const struct drm_prop_enum_list drm_content_type_enum_list[] = {