Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4483454imb; Wed, 6 Mar 2019 14:44:25 -0800 (PST) X-Google-Smtp-Source: APXvYqydpsoeWKEmeX+1rB3/9b7NPY+NEBIsezX7q/gW2PSWrrhN4ecHzUIUr7GyG9JwemGjYqO/ X-Received: by 2002:a17:902:7682:: with SMTP id m2mr9559195pll.311.1551912264980; Wed, 06 Mar 2019 14:44:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551912264; cv=none; d=google.com; s=arc-20160816; b=anWEEeaZ0edcAp66Pa9oOesn9VQOKhdMUiUwo7GEgy1TgthBp8U5AomCy5FgNT6kL8 hmQkFArpau21h/rjMVw1BXW2a8XAAw3dXkMzg11g27qUvDgbDY4AhpRhg0Ulhd9NgIWD t4KabGUZbo4TnRfkR7b0eBGmBWxpkOQsZEx4PVm9P7K84s6TS00zwN/1hYwfbcBp3piU NhoaO2KHNXXzj47i37eNbynu/tEi8St4d0cWimANJUsU6mwb4a7ioDe4orpTOunas9TF lFLmmbVEB8lT7darqkGcMxBoYLIypxUKKuFZ32gkQYjytJ35R5pq8W0oaj6q6r392uyF W1fQ== 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=LDWzeo7c1NxJ4dR/+z1YmbZKDZIU0kR3+aQvUCIYiiM=; b=c/+ghZg+U8Qi5tdjH7JN9UHsarU9P9kNF9jOGoO5C3CflBiDWqBIuR1rJR5GXZLHfW jsTschR5HqFiZ1SuDi/cHUwa+NMrhcUf2itJFKyqTO7frEgGPCNSHN3lFCSKwDdV+MJ5 S8Ext4NWNMpALKMGhAOLSnmrJwgz+36hF4uOFul/wI/UE00GP2ZbgPOYd1HFA4JJ/rda qYL1efpC1OzH3Fml2fg/f0ckak8XJedIEMNzfr/hWNtRnKXQvQ/JslZwj6VzShmir4rS Mjn6L9inRMwHvXJou9fSMsfCpuXlCqP5wQZ2vlkjFU0U+/W766OHDH0aL0TQevWq8ijX Rf5w== 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 y18si2401425pgf.247.2019.03.06.14.44.09; Wed, 06 Mar 2019 14:44:24 -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 S1726332AbfCFWnV (ORCPT + 99 others); Wed, 6 Mar 2019 17:43:21 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:60850 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726186AbfCFWnU (ORCPT ); Wed, 6 Mar 2019 17:43:20 -0500 Received: from localhost.localdomain (unknown [IPv6:2804:431:9719:798c:6bb0:a97a:4a09:e6d8]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id C704628036E; Wed, 6 Mar 2019 22:43:12 +0000 (GMT) From: Helen Koike To: linux-media@vger.kernel.org Cc: lucmaga@gmail.com, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org, andrealmeid@collabora.com, Hans Verkuil , kernel@collabora.com Subject: [PATCH 3/8] media: vimc: cap: fix step width/height in enum framesize Date: Wed, 6 Mar 2019 19:42:39 -0300 Message-Id: <20190306224244.21070-4-helen.koike@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190306224244.21070-1-helen.koike@collabora.com> References: <20190306224244.21070-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 The type V4L2_FRMSIZE_TYPE_CONTINUOUS expects a step of 1. This fixes v4l2-compliance test error: fail: v4l2-test-formats.cpp(184): invalid step_width/height for continuous framesize test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL Signed-off-by: Helen Koike --- drivers/media/platform/vimc/vimc-capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/vimc/vimc-capture.c b/drivers/media/platform/vimc/vimc-capture.c index 3d433361d297..e976a9d6b460 100644 --- a/drivers/media/platform/vimc/vimc-capture.c +++ b/drivers/media/platform/vimc/vimc-capture.c @@ -187,8 +187,8 @@ static int vimc_cap_enum_framesizes(struct file *file, void *fh, fsize->stepwise.max_width = VIMC_FRAME_MAX_WIDTH; fsize->stepwise.min_height = VIMC_FRAME_MIN_HEIGHT; fsize->stepwise.max_height = VIMC_FRAME_MAX_HEIGHT; - fsize->stepwise.step_width = 2; - fsize->stepwise.step_height = 2; + fsize->stepwise.step_width = 1; + fsize->stepwise.step_height = 1; return 0; } -- 2.20.1