Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2011950ybv; Thu, 6 Feb 2020 14:10:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzuLaR1d1bYuafEpPJAXZphopDv5MkC81pqUXMZFZF3U4a1DsfOAukuy2DwdEsyNHr5JvaN X-Received: by 2002:a9d:806:: with SMTP id 6mr224965oty.90.1581027023568; Thu, 06 Feb 2020 14:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581027023; cv=none; d=google.com; s=arc-20160816; b=V9FGplJv//gefdJvXqDS99AqyRrhID8ZddaMpDKc7oIcfH09lqWDyBCbpGaXdTB+pt b/9hRSmHScfY1JPA8wbd/PtLZ7xV0pFnvZUQGf3QX/ixCriHZGm6ZuClHzwf1TKTAo78 +rPdhvfVKms3U6IoINEx6WWCaZRFJ0o0f3ZvvMr0o7UuAQHKU8+A29862miUoZMGj5ZT l0bqXPzm7N9NZEdWdN6A+tXpSWzk1Pij8aNPw3S1BME44RwkWlh6qdxvhpitSymFKTGe QMNqrwYxqlSasq2oSLFS+YMkXylTRtzJAusLu9adQM/AMnvxSPy9E5Kvs2M+CR4b3kYj zPLA== 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=x5rxf4TfJ8/bOZd6QpxBDzUa/O2E6xDGPeBJyK7uBjI=; b=yqU6lNpgQEwArXYTBenbE7bBV651vdldoGuF/XaD2LeG/rnBoqAs/PB/A+IWsW8ilW twYyYus5dxFmU8LJgLaLzkUBzqT3FP6oQJy6rPpaAxBnB9NDSI52yrA6BAN5NXfDXZPV BMe6mIAR2rGHvy8YCictmYVzsCHEEYZjGF66AHMTDMz3V4mLYmn2GQQkwvgzVk0EeKiC mX/I1ppdyTrPL/qhbDffhiX+ycgimzd4KOLg4BUf/jyIVa3cLjjNejWwKK5zxo6kLlRC eRogq6KypS5xJ/QC9G/HSCexmPqjs9gYR9OQRDVZEQ5oeRrqHj8u5Q4oVKgX5qdPnLej rnWQ== 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 m14si494937otr.131.2020.02.06.14.10.11; Thu, 06 Feb 2020 14:10:23 -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 S1727895AbgBFWHm (ORCPT + 99 others); Thu, 6 Feb 2020 17:07:42 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:45048 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727797AbgBFWHe (ORCPT ); Thu, 6 Feb 2020 17:07:34 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 80441294421 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: return to userspace the crop value in bayer mainpath Date: Thu, 6 Feb 2020 19:07:11 -0300 Message-Id: <20200206220712.1243438-4-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 If bayer format is set in mainpath, then crop is not supported. The core was just reseting crop but wasn't returning the values back to user space. Return values taken in consideration by the driver to userpace. Signed-off-by: Helen Koike --- drivers/staging/media/rkisp1/rkisp1-resizer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/media/rkisp1/rkisp1-resizer.c b/drivers/staging/media/rkisp1/rkisp1-resizer.c index d986953d268b..9de6744f0900 100644 --- a/drivers/staging/media/rkisp1/rkisp1-resizer.c +++ b/drivers/staging/media/rkisp1/rkisp1-resizer.c @@ -503,6 +503,8 @@ static void rkisp1_rsz_set_sink_crop(struct rkisp1_resizer *rsz, sink_crop->top = 0; sink_crop->width = sink_fmt->width; sink_crop->height = sink_fmt->height; + + *r = *sink_crop; return; } -- 2.24.0