Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp781832pxp; Wed, 16 Mar 2022 17:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnwBGZZPBwR54bx1iBTRzZ3uNe/tmkYdVuucui4Qvhr4WAXs1u+zYPxLBqINyLwweM+s0D X-Received: by 2002:a63:1c7:0:b0:37c:4e86:25e9 with SMTP id 190-20020a6301c7000000b0037c4e8625e9mr1545263pgb.550.1647475471944; Wed, 16 Mar 2022 17:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647475471; cv=none; d=google.com; s=arc-20160816; b=ssnlwUArPjGS7GBfissyc5lT3mJ2wreg/RwBTVewHdFIt1TFVWe95FJxee4YRqZfck fbhV+RIz6y9L50YJGwF/Xs3p+IvG9z77J9K4P8ffqWVQ8AmhFLuJ7K6oI1WNo+LmMz84 RyQrW9zuTOgsp27ZH7eIibugcYEBk1reDSU4Y/KBsLVhZILFUhKkqHfI56GbI1EjZYli ej63f/51v8tfz9/HrIkMi8kUPXDWJYuwhggA2D73FSYFXe7NQbBHyL2ZEJbTVTzGmOHp BbUB/Tfh5IsAlk4x76EimoH/wAJTQ2JKY0ueoAduilshDHFSUF4clkjLfK3QwPSNstiv 1Xrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1NKoOtec9KI3INomBp3fgOJh/dmPLVM/hK4fF1DAubs=; b=KG7OSwjEnpZp+87EnHsmKp36QmhTZmKQsfktQGhkXoxv9SUaEBMW9QMlaiUb/lzkyI lIYKyActq4MKoI3687TpLgLZm/519CdQZtjzhy6cIigO7fHgnnA+evGN+PGKf0nDbqdo cQslQrcURrTRFFzWwujurRfaTQEwWZqSPypIiqax1d3Iv5YKEpYjz+ATu1gND38y+l5K jGwI79Dp4h4wX11cIL2sFu8wjA4p9iXzpnFy+Vk98RoxxKMAY/aGVrfhWHEKoLzOWSnA pEpRp3ATqBXvi9ZYtcmACYsGN+uARICoxCZKgT7+wEBkjZcjpPDgv8MnZWu5JGj1f4Xe JxMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNQLQu85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020a63e758000000b003816043f0f2si505576pgk.743.2022.03.16.17.04.17; Wed, 16 Mar 2022 17:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eNQLQu85; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241441AbiCNMZL (ORCPT + 99 others); Mon, 14 Mar 2022 08:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241968AbiCNMSh (ORCPT ); Mon, 14 Mar 2022 08:18:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47F1641FAC; Mon, 14 Mar 2022 05:13:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A49336097A; Mon, 14 Mar 2022 12:13:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B276C340E9; Mon, 14 Mar 2022 12:13:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1647260004; bh=iFsjWznm3SrnPCRqCcEAQ2tUS6+ySlC58zxri+CXmAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eNQLQu85Spn8kqRiIR9ebr6CzWR4Eaa8IxqXYNzMS/GORwmcYPMyVzbTUbnCBpTwa 37ev6uNhXkPJ5F6h+HlkmlF02Mwqu8aPK/uJo/IP7K8ZTZNKANNP0x5a8X/7c/USVs +ExDthwkI3m+Qjx8QogGY/USDPsffog4ykZcqcew= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jernej Skrabec , Maxime Ripard , Sasha Levin Subject: [PATCH 5.16 030/121] drm/sun4i: mixer: Fix P010 and P210 format numbers Date: Mon, 14 Mar 2022 12:53:33 +0100 Message-Id: <20220314112744.971337865@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220314112744.120491875@linuxfoundation.org> References: <20220314112744.120491875@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jernej Skrabec [ Upstream commit 9470c29faa91c804aa04de4c10634bf02462bfa5 ] It turns out that DE3 manual has inverted YUV and YVU format numbers for P010 and P210. Invert them. This was tested by playing video decoded to P010 and additionally confirmed by looking at BSP driver source. Fixes: 169ca4b38932 ("drm/sun4i: Add separate DE3 VI layer formats") Signed-off-by: Jernej Skrabec Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220228181436.1424550-1-jernej.skrabec@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/sun4i/sun8i_mixer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/drivers/gpu/drm/sun4i/sun8i_mixer.h index 145833a9d82d..5b3fbee18671 100644 --- a/drivers/gpu/drm/sun4i/sun8i_mixer.h +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.h @@ -111,10 +111,10 @@ /* format 13 is semi-planar YUV411 VUVU */ #define SUN8I_MIXER_FBFMT_YUV411 14 /* format 15 doesn't exist */ -/* format 16 is P010 YVU */ -#define SUN8I_MIXER_FBFMT_P010_YUV 17 -/* format 18 is P210 YVU */ -#define SUN8I_MIXER_FBFMT_P210_YUV 19 +#define SUN8I_MIXER_FBFMT_P010_YUV 16 +/* format 17 is P010 YVU */ +#define SUN8I_MIXER_FBFMT_P210_YUV 18 +/* format 19 is P210 YVU */ /* format 20 is packed YVU444 10-bit */ /* format 21 is packed YUV444 10-bit */ -- 2.34.1