Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp776396ybt; Wed, 17 Jun 2020 13:46:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5GtS9LUPtOACNRuNJtfqfEieMzm62pl2rGADN+bX3t8O8A4Jgg7SaA1zGJuS6J+5yBJnb X-Received: by 2002:a05:6402:2d5:: with SMTP id b21mr978671edx.293.1592426814076; Wed, 17 Jun 2020 13:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592426814; cv=none; d=google.com; s=arc-20160816; b=J1cxJ0qI+a1UbQPJwIpzOnNYbg1H2M9zPalm2J6fdbNY1OurBeul+DDeuw2mIWJ3Hf m+HojnBymbT+3uQgiWwLwbwwGJns7302Hgo53069FgN34HmeDmsO6+LdxnIEcfmDiLWk 4ZZIxid1EENS3IQasiGP9P7aPER9mm4hFg8sRfTOlvLov6IZDshUGuuJNnTvh+JKP2xr mtK/2MNDbdXyCxuOdQaJq8Yu+1ImzlbQq6jRo0CTVRa4FdXPQ9J89TLSqUEFsnAN3wUW HgT2TkLSSnyoO3AW2vJZ+p31ZgODAeNxAfgWd/8JdvjAm3kl+xjTAV206s8ZSd/hxUe3 R/tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=izNQ/AUBePYNQ9lFfRhkbYFYOvim7jrWfUSC8PuNm50=; b=eHBSzYFbn21fD2BCB/Q7vPJhthKwt4DDBkp/LUEEyNGQU0lInTyrfYz9T5RTHDV6LB tTNX/N/CO7FqiAA0iVqOnFGgw2jQq2gthuf7i2NFq78+mHHqX7htZBt2Z0wr2k9fHOrE dfFcTFk6ke6pf2pXjzlHQNNSTnIysrdwQfiHE560vZ+0HLKuE+H5VOE7+60zrxYqZYcM zz3WB6yGJLLvcj+rxDHTgPXr/yCaZH7dbYcqqTFshkOBoBIH4kfK/i5b8ASPvjuW2lT8 v0AK7vvKq0zo9yCHhbIbxG4rhPXF8fSlAZOec2xpf9wXLVPhbhIS+NrFqPYlXc9/Yl62 A+5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IXuESxTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si665805eda.569.2020.06.17.13.46.31; Wed, 17 Jun 2020 13:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=IXuESxTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726763AbgFQUoa (ORCPT + 99 others); Wed, 17 Jun 2020 16:44:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726879AbgFQUo3 (ORCPT ); Wed, 17 Jun 2020 16:44:29 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A044C061755 for ; Wed, 17 Jun 2020 13:44:29 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id a6so1845657wrm.4 for ; Wed, 17 Jun 2020 13:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=izNQ/AUBePYNQ9lFfRhkbYFYOvim7jrWfUSC8PuNm50=; b=IXuESxTW1GDtdZdcUhaUxCMmqR0alOzlFYEBB6cNiOWNqNKga8hTG5Hpk8e+jPgfs7 gKRbcrFHT/bWqDDjWW1Tu0YTxMUPgU3/zaO7ZYFVAB7sZ5/odoojGtjQaAjqQcISTIRV 21JjuFUVAp2SULD0ievL+VDKAIV4k3A7ZvwkkUpYlqJyABsW/fENnkF9JkHDsmSI8BPu lTx1kIP34vOyLqlII9KESAAKJppWEmMCqsPsjTAr9hgHKVBogXM1wNRzyliJEEMpb4Fs wM9VKEIlU+zdEi8dgAC6gR4OOYEJEiqf/0YobEdxc2vAIUU4tWPB0ACvaZ+E1SxG3EjY tp8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=izNQ/AUBePYNQ9lFfRhkbYFYOvim7jrWfUSC8PuNm50=; b=LVXffu3/dx7HvUi2R5avxOuYGcbP93s0ugxvj6nkG8ZjDW7JGCo5stN1KXe5MNkxRv YnfABmegUDqodB8/oHNa+0i4wj6U7FmobQa+Ygge/iNJ5eLfUgCXuCCazC8Dh+kqwWXT eg+r+VXXmAU+s5t5B1Q/z3psfW3z6ncQbaIJ5z/CcAsMqxjj7q0jx1GurSscsXUaHZ75 /4cBCV0YdWHMcoyt642AD17AS3Tle2sD08VxD11Q4VZMfIN5+Jx8bcYD/LZP+6D1GxCr WYmiueDAsD/Geb9guikVr6sRvsBfj8hp7+oX5JUZyheCFAcSJ7T7I3dnCXs+6fk+OBM2 DROA== X-Gm-Message-State: AOAM533SN9+FY/fqR+5gb/9qqZsCoKZMsxCne+5Qe5Vml3giyGhZp/E2 R9AwOhd+6PSGS4toGxwmQBtBRG7964qztyhuKEYf2w== X-Received: by 2002:adf:9c12:: with SMTP id f18mr1114248wrc.105.1592426668016; Wed, 17 Jun 2020 13:44:28 -0700 (PDT) MIME-Version: 1.0 References: <20200617180801.158331-1-helen.koike@collabora.com> In-Reply-To: <20200617180801.158331-1-helen.koike@collabora.com> From: Tomasz Figa Date: Wed, 17 Jun 2020 22:44:16 +0200 Message-ID: Subject: Re: [PATCH] media: staging: rkisp1: rsz: fix resolution limitation on sink pad To: Helen Koike Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Dafna Hirschfeld , Linux Kernel Mailing List , Hans Verkuil , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 8:08 PM Helen Koike wrote: > > Resizer sink pad is limited by what the ISP can generate. > The configurations describes what the resizer can produce. > > This was tested on a Scarlet device with ChromiumOs, where the selfpath > receives 2592x1944 and produces 1600x1200 (which isn't possible without > this fix). > > Fixes: 56e3b29f9f6b2 ("media: staging: rkisp1: add streaming paths") > Signed-off-by: Helen Koike > > --- > > drivers/staging/media/rkisp1/rkisp1-resizer.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/media/rkisp1/rkisp1-resizer.c b/drivers/staging/media/rkisp1/rkisp1-resizer.c > index d049374413dcf..0d41f43b5339f 100644 > --- a/drivers/staging/media/rkisp1/rkisp1-resizer.c > +++ b/drivers/staging/media/rkisp1/rkisp1-resizer.c > @@ -553,11 +553,11 @@ static void rkisp1_rsz_set_sink_fmt(struct rkisp1_resizer *rsz, > src_fmt->code = sink_fmt->code; > > sink_fmt->width = clamp_t(u32, format->width, > - rsz->config->min_rsz_width, > - rsz->config->max_rsz_width); > + RKISP1_ISP_MIN_WIDTH, > + RKISP1_ISP_MAX_WIDTH); > sink_fmt->height = clamp_t(u32, format->height, > - rsz->config->min_rsz_height, > - rsz->config->max_rsz_height); > + RKISP1_ISP_MIN_HEIGHT, > + RKISP1_ISP_MAX_HEIGHT); > > *format = *sink_fmt; > > -- > 2.26.0 > Reviewed-by: Tomasz Figa Best regards, Tomasz