Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2011246ybv; Thu, 6 Feb 2020 14:09:36 -0800 (PST) X-Google-Smtp-Source: APXvYqyZDE1Wyoih+fsHse35JdldEa7vShQ9FAwf1ry8cqbfDPvclpPXg4/c7QnxbcsHyIWX/r69 X-Received: by 2002:a05:6830:1f1c:: with SMTP id u28mr216854otg.143.1581026975939; Thu, 06 Feb 2020 14:09:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581026975; cv=none; d=google.com; s=arc-20160816; b=Wo/eVojmPRqXDrjII30xE52OHw2BlcopHjoDfd7T97y//4Zr3ElU3+scqjLRld4D8a W7Gtg8HY5xLkiJbcZWlZsIad5i6no91L1R0L5WDI4JlpBLSBGJAWBM7rvCjUJ7x1gGFB SSAUhVOhq9qb7wP7CGzf7fyyFfoKNsSY9ZYWvGLzSbf8SCDzJ6rQs83M1nwJfSX5x8qH KKOTXuCE8TNvdisQ22XTj0BhYm2nwOogAaipAJvIcZ5k8RnPRcNz61mh5puC+Z0cI8V3 7yFPQZjMlq45GwT9vW2XqPcHFElwO5sq6Fj7AkjQWsU5rUchygv1O1jEhyIte05WSWKv /Y1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6JjsDAVFYyQAUBYV8J2rSUul++0ukVr6IxnvxY1H+Qw=; b=eaRJRcYjDH4bZXHmpfVnjOeQU+gDLSstm41NYv2D40oiiYNRs9aDaQOlw/F51DVsTe pbzCKg6Fb5xSZw+oUim2RJEcBJMQttc9rPele1xf2FnHEK2Xtp0WQ6Ik30T3zNaCqAdU eBpIiOYuZSqeGsZ0JwheLPQjApXY5i4vHdVAj+vn+PAZpIWm+VW9QmqF4JGEF1X6vzz9 NNnoxPDKtZZ/HPtPh719Q0744AWnRaHZHCTivGjhB9iuixh+Hr/hppyTGQLG9fJQUa3z eH2mqq5oUqSYvqv9Mqks7/f5f98pw/RyAPgpz8BPzf3pTk0MXZFuCrqbvcoDosJsfjbQ vWpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v26si586062otj.0.2020.02.06.14.09.23; Thu, 06 Feb 2020 14:09:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727773AbgBFWHd (ORCPT + 99 others); Thu, 6 Feb 2020 17:07:33 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45040 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727502AbgBFWHb (ORCPT ); Thu, 6 Feb 2020 17:07:31 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id DA470295903 From: Helen Koike To: linux-media@vger.kernel.org Cc: dafna.hirschfeld@collabora.com, hverkuil@xs4all.nl, linux-rockchip@lists.infradead.org, mchehab@kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Helen Koike Subject: [PATCH] media: staging: rkisp1: rsz: don't ignore set format in bayer mainpath Date: Thu, 6 Feb 2020 19:07:10 -0300 Message-Id: <20200206220712.1243438-3-helen.koike@collabora.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200206220712.1243438-1-helen.koike@collabora.com> References: <20200206220712.1243438-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix issue when, in case of raw bayer format in mainpath, VIDIOC_SUBDEV_S_FMT ioctl didn't have any effect, is wasn't updating the format of the pad. There is no crop for mainpath bayer raw data. Remove leftover check in set_format, since check is already done in crop rkisp1_rsz_set_sink_crop() function. Fixes: d65dd85281fb ("media: staging: rkisp1: add Rockchip ISP1 base driver") Signed-off-by: Helen Koike --- drivers/staging/media/rkisp1/rkisp1-resizer.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/staging/media/rkisp1/rkisp1-resizer.c b/drivers/staging/media/rkisp1/rkisp1-resizer.c index 8cdc29c1a178..d986953d268b 100644 --- a/drivers/staging/media/rkisp1/rkisp1-resizer.c +++ b/drivers/staging/media/rkisp1/rkisp1-resizer.c @@ -537,15 +537,6 @@ static void rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz, if (which == V4L2_SUBDEV_FORMAT_ACTIVE) rsz->fmt_type = mbus_info->fmt_type; - if (rsz->id == RKISP1_MAINPATH && - mbus_info->fmt_type == RKISP1_FMT_BAYER) { - sink_crop->left = 0; - sink_crop->top = 0; - sink_crop->width = sink_fmt->width; - sink_crop->height = sink_fmt->height; - return; - } - /* Propagete to source pad */ src_fmt->code = sink_fmt->code; -- 2.24.0