From patchwork Sat Dec 16 13:34:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 13495572 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 DBA70C46CD3 for ; Sat, 16 Dec 2023 13:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6Rc7qFiBrCGlkDahazPF1lfEDjreox6dQZyjGtCou40=; b=tnig+1Ozg58/VH tJqKYnBmMARbIuXGcVqyxuKE6+dW+doL/YLvLO58bk0hk7b5Hq694SoTU6849lq+2Z+vsX1genwk9 fn36osgmqME75M7KttmaQDu0cPC+lFPF8lTVyahgv+t4j+STvlVesDhaptnxYdt20GfMP6ZwI/nGK b6QSJq8/MPzAU6Tsydf5emC3np8gCCA1BplPQUYfyPdnqOsZ+PlCLrxR8rzPNYHS4NDh9ND2rhlGH 0PhIlCZrcnQcFltOkNtmMNPMtAN28vuDx0AWV/jdW/On495lII6xCfsuwRuWFhuZYxxHWUDgJsQzO q+hnlIZJMYP8m8+iiu4A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rEUoR-0067T5-2z; Sat, 16 Dec 2023 13:34:39 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rEUoK-0067Pt-1w for linux-arm-kernel@lists.infradead.org; Sat, 16 Dec 2023 13:34:33 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-552d39ac3ccso2430497a12.0 for ; Sat, 16 Dec 2023 05:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702733671; x=1703338471; darn=lists.infradead.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=nTmoBalM2UZzwSsqBtYN4pTcgAH6LuJG4x51tAzCQyI=; b=ODtTLf88ZBZzv6Dr/E9fJ+OhVEGlAEzjzRxzJyhJgyKClIMoZMPnM+G2fqnvzZP42N TGKrvcbXkEU4OPD83SDcpE2rkmjU5gg+pCwr1HnAzffC2huWNNlYGpLverh3oikQvt5S Hki35bM+rp1BWcCNz1p4I45+83V6b69kx041h+SMjV1CoRZ3ALMluxTCgGf0bHeI2ugj ZRthwOczIlNvD2kkClStMP4enR74C6KWWr23xah5okBNUBdZdo0NF52+RDg7yoOjQU8i wxJSvEkkX3xLgX+qANLG8Lof++0roWwKrQ1TNiY86C4uAUy+2dGlQKikqbo37NlZKTAw 79yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702733671; x=1703338471; 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=nTmoBalM2UZzwSsqBtYN4pTcgAH6LuJG4x51tAzCQyI=; b=WKPQ0bpR+C008EdPfLwkdTmmwDiDG7g2ezdHmmZt8f5UtORAMB+PI5JKn12VzumSyZ bZVrb5dkepQOzH8FQrO1KfEziG2e1REakU8FoAszLmbJhqcOofbF12O1gjFDxEHdipRy mTH+b0dA8DWkP1zQ7mNRJKrOQG3cFcUAQr9gQ1I+MvQSL2bpbKLXWxwjnUn11eRaB5G+ vecSaZ0+I4NIKMoCVfkqnufkipxis2De1qV/vpa1cK9jaV/9NOFCuSSNDzcx9wAGd/AX FqPPXVkc398ecT0IHnfCCmdEP7qCFl8q6tajWri9rRVUJu1ppZG+KwREfW4CPIF85M0x u0xw== X-Gm-Message-State: AOJu0YwMEX7kwlzACVpslzi+8DbXJAMmY02JUfdd/phYzEWT34VOqVyy BPwa8CIKNBlFubQkimQ7jlU= X-Google-Smtp-Source: AGHT+IH3b10j+8jyAKAtdvCEywyWlISzpZTeWRwzu6lMvYyzMBeGp+kGNS8nahX92FU1+f2A18l15Q== X-Received: by 2002:a17:906:6d4f:b0:a23:31e9:71e4 with SMTP id a15-20020a1709066d4f00b00a2331e971e4mr344349ejt.71.1702733670581; Sat, 16 Dec 2023 05:34:30 -0800 (PST) Received: from localhost.localdomain (82-149-12-148.dynamic.telemach.net. [82.149.12.148]) by smtp.gmail.com with ESMTPSA id l16-20020a170906415000b00a232bf6045csm423629ejk.63.2023.12.16.05.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Dec 2023 05:34:30 -0800 (PST) From: Jernej Skrabec To: wens@csie.org, samuel@sholland.org Cc: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 3/3] media: sun8i-di: Fix chroma difference threshold Date: Sat, 16 Dec 2023 14:34:22 +0100 Message-ID: <20231216133422.2534674-4-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216133422.2534674-1-jernej.skrabec@gmail.com> References: <20231216133422.2534674-1-jernej.skrabec@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231216_053432_635136_FE5BD26A X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org While there is no good explanation what this value does, vendor driver uses value 31 for it. Align driver with it. Fixes: a4260ea49547 ("media: sun4i: Add H3 deinterlace driver") Signed-off-by: Jernej Skrabec --- drivers/media/platform/sunxi/sun8i-di/sun8i-di.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/sunxi/sun8i-di/sun8i-di.c b/drivers/media/platform/sunxi/sun8i-di/sun8i-di.c index f253a40cc04f..f7ff0937828c 100644 --- a/drivers/media/platform/sunxi/sun8i-di/sun8i-di.c +++ b/drivers/media/platform/sunxi/sun8i-di/sun8i-di.c @@ -304,7 +304,7 @@ static void deinterlace_init(struct deinterlace_dev *dev) deinterlace_clr_set_bits(dev, DEINTERLACE_CHROMA_DIFF, DEINTERLACE_CHROMA_DIFF_TH_MSK, - DEINTERLACE_CHROMA_DIFF_TH(5)); + DEINTERLACE_CHROMA_DIFF_TH(31)); } static inline struct deinterlace_ctx *deinterlace_file2ctx(struct file *file)