Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1721003pxb; Wed, 9 Feb 2022 03:05:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJywK5DdgSa4uRJ8Uf3nXadA875ubCzhJujHWiY84g9CZfl7usTnhG1BLIkhh3Sp3RZPafaM X-Received: by 2002:a17:902:7042:: with SMTP id h2mr1619279plt.70.1644404753047; Wed, 09 Feb 2022 03:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644404753; cv=none; d=google.com; s=arc-20160816; b=XmcykKTyL/jnRAEiTyhFpvaA+aa/6d3Z6Jq2i6WhD5lSQbdQQpfEc5u9qrlEAliltG aPMMFYeVGIfT08Oc4RWXsDhhgdKXKFYdKhucfmyKK4RpXnUWOjGGQJXsbHuaWobnNiv/ CA4bjKylTpC4y8uCEf5teGNVJBpK1c/S/bSIkcQebauzvJrCbclyfumvVKUgTjaB1cXo VEpNCVWYQETcBpaAWruwlUd+cG8BlKX63TfJkE9ynb4/WZdHDFByH2tPruCInIihaOTr 3AFImat9/1OXyV9Y84MNyr0Ok01ke/cnoJxkpnGaf9AjrqTvelYDBWZq3CiK/nBnjHk3 tebw== 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 :message-id:date:subject:to:from; bh=tJbwEPC0morQApWC60ac5wkUwj7aaE5JiGa+Ie0yR/I=; b=fUEPic3VQuFjvy1ruLluwo3fwiTyzGvtDouJwINbYWHMtBJ1PP2OhoapdB0StcI7Ow 15UznvtNTGB3NHn33Z5EClY5B+kenIc3q/hsH0xSQSQiiOmjjnwq+RAQ7UVBWXFucLsW o8jTzgYc3IL0KE7Bb1isZhVirzT4AjBy1ih4/ebWL4kztEeTeMvhQCOm5pMCVgE05CJG VyEqB/b2uJx333KI/6yrNAUEkSH8oIf7vqoWvIbF4P8mMhuBp3Mi07RuZQA4tstkLPAo 0q92s1uV09bXoNJZAfD05yuM8ZmrxF5LrGTeX56hJ5oUwMSZzauQFoCbiLSBU3illTBW Ke2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e13si11789115plo.505.2022.02.09.03.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 03:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 635DEE05ADE0; Wed, 9 Feb 2022 01:33:34 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234222AbiBIDJB (ORCPT + 99 others); Tue, 8 Feb 2022 22:09:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347380AbiBIDGT (ORCPT ); Tue, 8 Feb 2022 22:06:19 -0500 X-Greylist: delayed 1268 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 08 Feb 2022 19:04:51 PST Received: from twspam01.aspeedtech.com (twspam01.aspeedtech.com [211.20.114.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3037FC0401DD for ; Tue, 8 Feb 2022 19:04:50 -0800 (PST) Received: from twspam01.aspeedtech.com (localhost [127.0.0.2] (may be forged)) by twspam01.aspeedtech.com with ESMTP id 2192ZYej041119 for ; Wed, 9 Feb 2022 10:35:34 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2192Z4x4041087; Wed, 9 Feb 2022 10:35:04 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 9 Feb 2022 10:43:15 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v1] media: aspeed: Fix incorrect color Date: Wed, 9 Feb 2022 10:43:12 +0800 Message-ID: <20220209024312.2218-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 2192Z4x4041087 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Current settings for rgb-2-yuv is BT.601(studio swing), but JFIF uses BT.601(full swing). Signed-off-by: Jammy Huang --- drivers/media/platform/aspeed-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index eb9c17ac0e14..08b63b8297f0 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -1089,7 +1089,7 @@ static void aspeed_video_init_regs(struct aspeed_video *video) u32 comp_ctrl = VE_COMP_CTRL_RSVD | FIELD_PREP(VE_COMP_CTRL_DCT_LUM, video->jpeg_quality) | FIELD_PREP(VE_COMP_CTRL_DCT_CHR, video->jpeg_quality | 0x10); - u32 ctrl = VE_CTRL_AUTO_OR_CURSOR; + u32 ctrl = VE_CTRL_AUTO_OR_CURSOR | VE_CTRL_YUV; u32 seq_ctrl = video->jpeg_mode; if (video->frame_rate) -- 2.25.1