From patchwork Mon Feb 27 12:21:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Ser X-Patchwork-Id: 13153403 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 CB5BEC64ED8 for ; Mon, 27 Feb 2023 12:21:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2929610E02F; Mon, 27 Feb 2023 12:21:27 +0000 (UTC) Received: from mail-40136.proton.ch (mail-40136.proton.ch [185.70.40.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 45FFF10E02F for ; Mon, 27 Feb 2023 12:21:25 +0000 (UTC) Date: Mon, 27 Feb 2023 12:21:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1677500483; x=1677759683; bh=2gsijHGDwrnzALzF+7cosJfnlhNwAE8islUZrpoNIME=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=DfoGID6NsisJFQGFeUrgDMG6ijADvlFgsXkiWzc89YWhVWLHeef8eIYi1rR5K75f6 rr+l8TaMUv3Qe0cb6eq2dvv/gcb8PcDSzzpDs7zj/QSXopi0AfDhwEJGNzVMCqwR1X uyFolXVzG1Lr70J+1hOHW7y2SVw8YC1BadLEu3oYdx2+xyNUnZi2/uI3jz1OTDSagl aDZUaMt5gHu+Ccl+8K30pEdL0TyYOIG3UdLBEFLMDrPWsfybsI/yBiKglEgFbhPFhB NAwRP4kBdTU2CdZHpccwAI3FQxHVOb29LlFzy2hvKySjme5AIWIHuP7ySC3QPYSwoK A7b9e7HI3+sXA== To: dri-devel@lists.freedesktop.org From: Simon Ser Subject: [PATCH] drm: document TV margin properties Message-ID: <20230227122108.117279-1-contact@emersion.fr> Feedback-ID: 1358184:user:proton 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: , Cc: Pekka Paalanen , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Maxime Ripard , Mateusz Kwiatkowski Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add docs for "{left,right,top,bottom} margin" properties. Signed-off-by: Simon Ser Cc: Maxime Ripard Cc: Daniel Vetter Cc: Pekka Paalanen Cc: Noralf Trønnes Cc: Mateusz Kwiatkowski Acked-by: Maxime Ripard Reviewed-by: Dave Stevenson --- drivers/gpu/drm/drm_connector.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 9d0250c28e9b..65a586680940 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -1590,10 +1590,6 @@ EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property); /* * TODO: Document the properties: - * - left margin - * - right margin - * - top margin - * - bottom margin * - brightness * - contrast * - flicker reduction @@ -1651,6 +1647,16 @@ EXPORT_SYMBOL(drm_connector_attach_dp_subconnector_property); * * Drivers can set up this property by calling * drm_mode_create_tv_properties(). + * + * left margin, right margin, top margin, bottom margin: + * Add margins to the connector's viewport. + * + * The value is the size in pixels of the black border which will be + * added. The attached CRTC's content will be scaled to fill the whole + * area inside the margin. + * + * Drivers can set up these properties by calling + * drm_mode_create_tv_margin_properties(). */ /**