From patchwork Tue Jan 25 06:44:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jammy Huang X-Patchwork-Id: 80300 Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1nCFeH-007X5S-KG; Tue, 25 Jan 2022 06:49:51 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359382AbiAYGto (ORCPT + 1 other); Tue, 25 Jan 2022 01:49:44 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:7377 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355810AbiAYGq6 (ORCPT ); Tue, 25 Jan 2022 01:46:58 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 20P6akGu078227; Tue, 25 Jan 2022 14:36:46 +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; Tue, 25 Jan 2022 14:44:06 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v4 0/3] Correct timing report Date: Tue, 25 Jan 2022 14:44:06 +0800 Message-ID: <20220125064409.5502-1-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 20P6akGu078227 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -7.4 (-------) X-LSpam-Report: No, score=-7.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_HI=-5 autolearn=ham autolearn_force=no This series will correct the value of timing detected. Changes in v4: - Combine patch 3 and 4 Changes in v3: - Add API, aspeed_video_get_timings(), for the calculation of timings - Use active rather than 'total/2' as critera for sync polarity workaround Changes in v2: - code refined to improve readability Jammy Huang (3): media: aspeed: Correct value for h-total-pixels media: aspeed: Use FIELD_GET to improve readability media: aspeed: Correct values for detected timing drivers/media/platform/aspeed-video.c | 137 ++++++++++++++++++++------ 1 file changed, 109 insertions(+), 28 deletions(-)