Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1032105imu; Wed, 9 Jan 2019 10:20:53 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XWh62nwZd0roVf3uSTIbsIrGNKXYHS2h2oD2mUgmLh3tCvEsi4dvSV3IACsBlbpO6IFl3 X-Received: by 2002:a17:902:b406:: with SMTP id x6mr6765201plr.329.1547058053444; Wed, 09 Jan 2019 10:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547058053; cv=none; d=google.com; s=arc-20160816; b=Wy87avZyd/hQA94NGQIwatkd1v5Nn85oOnDelM1HS9Iwmj98H2wiHy4m7XQePYmu+X N1RbZZZAWvTnBwFPpqIZu9elW+mdQ9oPrjIRYrdDRp0yjZbFrBZ1DIkNN7rz6CfTS5nD DlZPkyW4bPQp6fqM+fgXjIkYroe+umA6CgXOObn/WwQ5gmLe7DsGrRHnezZtC8cVEczE 7f/s050rAoZJEMItDX74HiUHEjnAUNDZdd0ehiGmtVJDShQJtIlpu/ZHDDx96uiV64c7 qHDt/YsEKHDAU4d70vDcN2uNcFc9GxPG5Qt+/JuBlHYipv1R5GyTEcP445E4x6qqKryY 5Q1w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=f/Exw1NcVYYqGrDV4q3XAZMtf+t2lHH10SHKVIs+s0M=; b=vLIokmuARIApAmGnH3nE6SUtEsG1FChjYoTtnRwO1QXfnl2fH8tKz7KTmcwMTrvMrQ 92Ik2UTly7U6x0jUpQ+U3nW4N85uGc0RBmD4C4RGIv4TMvpauVvQrdKYY5uc7nSO5fOc G6FVsIwZiJqOOwk2fNhLImxEn9JltwToA2MAcJglSqJJOINeST83lVcadnT36d6x4QeB kV4XW5v5cifc7cDyd+wZycHLjedLDMJNoc84AUVP81joheZRcCEZcRqb8XQaNw9aTCUm 3c5H44uqRCj3xYuV+rjkfK8Jc4H+K/6EH2aFHxilzLX/VTac4WjQLCIv6rI3FY/HJQly tgoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nN3l1YHT; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d127si69772610pfg.255.2019.01.09.10.20.38; Wed, 09 Jan 2019 10:20:53 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nN3l1YHT; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727262AbfAISAv (ORCPT + 99 others); Wed, 9 Jan 2019 13:00:51 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40343 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbfAISAu (ORCPT ); Wed, 9 Jan 2019 13:00:50 -0500 Received: by mail-lf1-f67.google.com with SMTP id v5so6325475lfe.7; Wed, 09 Jan 2019 10:00:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f/Exw1NcVYYqGrDV4q3XAZMtf+t2lHH10SHKVIs+s0M=; b=nN3l1YHTwyNvgXU5aHouPLyz5RKleujjsUrUQZNpon475ZWiOOpJhVfzvr8J8jmsyo 4J80CT+b2kpk0JndsiBspEE2vT08vfhyAM8SZVxkeRTpqrE+fZI3qhAHWCyeCLZZXdw7 HJuNtqnIKTOJiT+q1ZvS0vh87pBnDs8B2HWKr462Hk/xGzwy7gVb+C6tqI2j0rBi1BwK 2WQu75lAirxUOH+Vwvou68ojYlRqFHKaRzPSJ4gRa5+5rj7DyoRX7yhttS/3hO/qz6dP LTPlb/LnyO6SwXkP2Xp3VgG7tsmX97plEXlJHE56QAbKQ+w2O0qvTtVSWndptRT4KCuF K4Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=f/Exw1NcVYYqGrDV4q3XAZMtf+t2lHH10SHKVIs+s0M=; b=bkxAhdSPLFtfHGHMxxTAZquGM6CA9kn3Mem8ydeCGqxBZv9lvI0Z9tKShduobbKfwS z8HubQTJekWTA01PH/iL1tdy4ZwIlRg6v2fCvpmslRFKfcMWN2xvXR//YzY3OqyZmi/I tCq3OEgNnYNBN3Z67qVdnICwTz4Os/2tGWbNkByaEqWcRNfJa37QH7TEWtJ8CniCCh8k hKz4EKriCdUxxgOgmQaBbxp/XjBiO6Xxs8KVsyW9RDWtxemAzgXOmZ9o7hSJMyGnUkfz 55A7GY/ASOYC6zn2b1fJD8xd/k/tMiB+F1uk3EI1ySlEDIvEa4IhG7cDB218e/9xKEBR HQxQ== X-Gm-Message-State: AJcUukdW9NY5QVzPfZ1IQF8UbOwi+lmkxTd1nFD1yv2UEJ947qcApUmu /z07zEcjyLoxaY7o/wWtt7wzxdu8CHP5OA== X-Received: by 2002:a19:660a:: with SMTP id a10mr4350637lfc.146.1547056847286; Wed, 09 Jan 2019 10:00:47 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:c1c3:bc43:64cd:2432]) by smtp.googlemail.com with ESMTPSA id p67sm13817510lfe.14.2019.01.09.10.00.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 10:00:46 -0800 (PST) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: andrzej.p@samsung.com Cc: jacek.anaszewski@gmail.com, mchehab@kernel.org, s.nawrocki@samsung.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH] media: s5p-jpeg: Correct step and max values for V4L2_CID_JPEG_RESTART_INTERVAL Date: Wed, 9 Jan 2019 19:00:41 +0100 Message-Id: <20190109180041.31052-1-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit corrects max and step values for v4l2 control for V4L2_CID_JPEG_RESTART_INTERVAL. Max should be 0xffff and step should be 1. It was found by using v4l2-compliance tool and checking result of VIDIOC_QUERY_EXT_CTRL/QUERYMENU test. Previously it was complaining that step was bigger than difference between max and min. Fixes: 15f4bc3b1f42 ("[media] s5p-jpeg: Add JPEG controls support") Signed-off-by: Paweł Chmiel --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 3f9000b70385..33e9927db9a0 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -2002,7 +2002,7 @@ static int s5p_jpeg_controls_create(struct s5p_jpeg_ctx *ctx) v4l2_ctrl_new_std(&ctx->ctrl_handler, &s5p_jpeg_ctrl_ops, V4L2_CID_JPEG_RESTART_INTERVAL, - 0, 3, 0xffff, 0); + 0, 0xffff, 1, 0); if (ctx->jpeg->variant->version == SJPEG_S5P) mask = ~0x06; /* 422, 420 */ } -- 2.17.1