Received: by 2002:a05:7412:8d23:b0:f7:29d7:fb05 with SMTP id bj35csp294568rdb; Sat, 16 Dec 2023 08:30:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/UPIAt8DSkEbfbRwukNtPd+4KwM9bFq1pBmfKcG3Qpu0PJcuPCUwHaThI3t5QdqT/kOOY X-Received: by 2002:a05:6214:2b0f:b0:67f:5cc:dfd5 with SMTP id jx15-20020a0562142b0f00b0067f05ccdfd5mr9047358qvb.115.1702744235602; Sat, 16 Dec 2023 08:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702744235; cv=none; d=google.com; s=arc-20160816; b=xNdzhEHKThgfFJ/W+t1cPrVc2sHbDFUEYo9FhVkrLTAOWGknduTJDTUdmOUKhb/bKJ BII1/Q1tmgTF+z78uQf0DFEDDPxUi6kbK1ILFPR285pRM/2bSRAlbli7Fhp1yGwIfNtX RxvDnRbXAHDB9rsKQMq+/EbQVaiBIxPvBRyXH4NdUS8yW2rfg5jMATnI5OR/k4BeWExO 1zDqKvAcitN3wAcTL5ZFvmcYKeLooyING9v6/XTVO9sCJwbisWt0w07Fxw1JhQMXAmdA KSHXPflcZsTHi7Fs9OAp1oYEwQfSYIkqobL2MS9VGgIrx+w3BVUBP4ZmnbbwPfDrNN3R Qg4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=droXS1VwLjQHMIbiZwuYM0gMqlIpmFeRVQnM5SEX4co=; fh=nzMX5Jolb3GculGR3f1Z1ReHOqdNjcdazDY5R3X+7M0=; b=xGdOwP5t2UFWKdQXanVXfsJjoA0h6fv6KqoxqbzQcNuItyzMUDh0wyGyB4g6wngr+S kOicz0UdcYS3cMwkTpa6a9sjxtBqIxFTBzcpo1urqhl1YQR+J0SK1BDZPlihsD6ERdKV N4SRwo1+hYyvKr0hecPa6kXckZOPdAenoH8iDHhWQNX4rfgm/Psyb3kqer0S1XvBs+wk Ntp6N6mEmQ9kvaf/SGuPwKl29X5kPki+uLkRjvBWdOGRn0gXBIkKGYfpXWXsb4tl0IZM DKOlMj8XIrvs2UYcdjoftVwv3iCUUlbdn67FDg6afXdu9FzEsKrp9j+0hNWno9Pm9Fpo iHbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UXIbdnTC; spf=pass (google.com: domain of linux-kernel+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f13-20020a05620a280d00b0077fab06b88csi5093290qkp.619.2023.12.16.08.30.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:30:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UXIbdnTC; spf=pass (google.com: domain of linux-kernel+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2259-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B2AF1C2185A for ; Sat, 16 Dec 2023 16:30:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1A3B3527E; Sat, 16 Dec 2023 16:27:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UXIbdnTC" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com [209.85.218.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 93BAC341BD; Sat, 16 Dec 2023 16:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-a1d2f89ddabso191578366b.1; Sat, 16 Dec 2023 08:27:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702744034; x=1703348834; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=droXS1VwLjQHMIbiZwuYM0gMqlIpmFeRVQnM5SEX4co=; b=UXIbdnTCCrMG+WGyY3sIj01f/52yFssZkolV4cef4XuAPGt7lQ9wye8gZ6mjhdh9SP VC+QhuEdx2Dw6uBmnjxCjZd1tY6PHPteCXcQEbyFmTJTXt3c70tHYzqAsp4h0bJ6/W1L 6iKNsOu8fcWalGXtl/cjZulBeLCfnfnCqImsvO+8VYBSbe6sMKcaDtcnldmx2UWGPw35 0Fr/uIWE1AskOI/zbscXmEBBEkf1Elv1jgsgkwQ8DebK14dtE9Ph+XFyR0bjGFOD24V+ rLNv9S2kdnHmOwL7xc4uehZGHQiiT9b2tzfZR8dFjFZEEWLbt8FITlbAAWAjsaEXK2gZ vojQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702744034; x=1703348834; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=droXS1VwLjQHMIbiZwuYM0gMqlIpmFeRVQnM5SEX4co=; b=ZaOWPG7KMJa553YrT7sPrCukKj41JY3wtUdIFqjstWEnCU2vEjLX4pNn12FgmRdsDw hkgGYcUABM28o2Pn8wSdml2YW5IM54Ng2+w+8A3/io7Y4q8ctWqoUchrNPHiTLUUgqy8 BPaNFX2sx6kaovddpTZHK56zmcQEd63ARGyhzFrXAys/A5lynB01a+Gr8ZplCatbLwH5 p2STZPYQpgx2fbFuYERI7I5mPm6obIjqgFYsCFOZGnLGlHINibCT9IqL4D9gzgonPscz cqkoei/3ruBQx7upKZ6KVS/OMIDTXbxUhmm722kwdEo+StkXbHOQu7XonGygzXnntV6k whkA== X-Gm-Message-State: AOJu0YxWvO0/PZXgM5sXQGrZSvwcEZhBmjdsreyTcaZBkbHYUMzhf0yM zRXH9nQcXvZetiDMeHiWwg== X-Received: by 2002:a17:906:142:b0:a22:faf0:3bbc with SMTP id 2-20020a170906014200b00a22faf03bbcmr3702764ejh.139.1702744033851; Sat, 16 Dec 2023 08:27:13 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:e807:d345:6f47:1db9]) by smtp.gmail.com with ESMTPSA id st10-20020a170907c08a00b00a1cd0794696sm11990362ejc.53.2023.12.16.08.27.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 08:27:13 -0800 (PST) From: Alex Bee To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v2 11/27] drm/rockchip: inno_hdmi: Remove YUV-based csc coefficents Date: Sat, 16 Dec 2023 17:26:22 +0100 Message-ID: <20231216162639.125215-12-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216162639.125215-1-knaerzche@gmail.com> References: <20231216162639.125215-1-knaerzche@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Now that the unneeded support for YUV based input formats is gone, the csc coefficients for those formats can be dropped as well. Signed-off-by: Alex Bee --- changes in v2: - new patch drivers/gpu/drm/rockchip/inno_hdmi.c | 37 ---------------------------- 1 file changed, 37 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 7c75feedacad..04344ee1265d 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -74,49 +74,12 @@ static struct inno_hdmi *connector_to_inno_hdmi(struct drm_connector *connector) } enum { - CSC_ITU601_16_235_TO_RGB_0_255_8BIT, - CSC_ITU601_0_255_TO_RGB_0_255_8BIT, - CSC_ITU709_16_235_TO_RGB_0_255_8BIT, CSC_RGB_0_255_TO_ITU601_16_235_8BIT, CSC_RGB_0_255_TO_ITU709_16_235_8BIT, CSC_RGB_0_255_TO_RGB_16_235_8BIT, }; static const char coeff_csc[][24] = { - /* - * YUV2RGB:601 SD mode(Y[16:235], UV[16:240], RGB[0:255]): - * R = 1.164*Y + 1.596*V - 204 - * G = 1.164*Y - 0.391*U - 0.813*V + 154 - * B = 1.164*Y + 2.018*U - 258 - */ - { - 0x04, 0xa7, 0x00, 0x00, 0x06, 0x62, 0x02, 0xcc, - 0x04, 0xa7, 0x11, 0x90, 0x13, 0x40, 0x00, 0x9a, - 0x04, 0xa7, 0x08, 0x12, 0x00, 0x00, 0x03, 0x02 - }, - /* - * YUV2RGB:601 SD mode(YUV[0:255],RGB[0:255]): - * R = Y + 1.402*V - 248 - * G = Y - 0.344*U - 0.714*V + 135 - * B = Y + 1.772*U - 227 - */ - { - 0x04, 0x00, 0x00, 0x00, 0x05, 0x9b, 0x02, 0xf8, - 0x04, 0x00, 0x11, 0x60, 0x12, 0xdb, 0x00, 0x87, - 0x04, 0x00, 0x07, 0x16, 0x00, 0x00, 0x02, 0xe3 - }, - /* - * YUV2RGB:709 HD mode(Y[16:235],UV[16:240],RGB[0:255]): - * R = 1.164*Y + 1.793*V - 248 - * G = 1.164*Y - 0.213*U - 0.534*V + 77 - * B = 1.164*Y + 2.115*U - 289 - */ - { - 0x04, 0xa7, 0x00, 0x00, 0x07, 0x2c, 0x02, 0xf8, - 0x04, 0xa7, 0x10, 0xda, 0x12, 0x22, 0x00, 0x4d, - 0x04, 0xa7, 0x08, 0x74, 0x00, 0x00, 0x03, 0x21 - }, - /* * RGB2YUV:601 SD mode: * Cb = -0.291G - 0.148R + 0.439B + 128 -- 2.43.0