Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3025736pxk; Mon, 21 Sep 2020 03:26:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3lZXK2grIHhlMk6lZ3mjBRAqzU4tPJC49duhZQUqwbXu22TsCWAbNmNPOsW+lYHXdXa/f X-Received: by 2002:a50:ec12:: with SMTP id g18mr41921105edr.309.1600683967270; Mon, 21 Sep 2020 03:26:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600683967; cv=none; d=google.com; s=arc-20160816; b=ao6j5dOQkJmQbKXymA48hFFBI3mAeh24kzSOL34nJJGKn3xb3ngjVpUKBC23Fsi2ZS aomsdIgKvUB2V4FhSSIpJ2oc9YqlFYArh6Y9NS2bzKM51AQQsL2dIQUChjVNd8xlS3xN sG5Yc8fcaxGJHDMx5jU9LKcmxMN9u6tWUD/qRicnSM8NCOMxcqDB9obUhia2Y5o0zYfY 6zLhXU1rY3ndEMteGWpO8oP6J0TED3NT5Z983+5AMiJG4mT+qv//pKqlQJqdolsI9FCS BsTYXICfgKi5O1NFDY8vVUfmMIlQy+90dK4GoDSEAKDuUP9Tqii5OioWi1IvKnZxS7vY 1WDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Go04h4cBZb8oManNnBUCEv0xT9mbFOVFD/8tb3hzAWA=; b=hhQj6Hgd9QcoXmKj/m/jp3l16fvvNyo3GlPYwOYvZvWeFI5lXXqiqIwKlA1isg8UAm 3cDDXq6U5jKLETFQC4WcYc1VWaBFRyfxBiFSMkvAL40PRyPnC3idvWWU3ZaTZg/dpiIf 5T46iEL39j14+GyLjrkRv9PRQUBneubk/FT1E+4SRxSo5P7tzHuD2i7YO5u/XLGRzVao 6RuiX/k5JYCCMSgXnyi8JtGOfMxhCV90eV1IkIOVnGIhKDsAe9sqLCz4yLySwYnDHnNl QhzoGntbe10Yo73ryi3sQlPbsUvvh7Dof6gxuFHdk92H24ffN1Piuq7z8nYPcgqwEH77 LTLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=B0KJNIuj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b14si8118305edw.199.2020.09.21.03.25.43; Mon, 21 Sep 2020 03:26:07 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=B0KJNIuj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727014AbgIUKVo (ORCPT + 99 others); Mon, 21 Sep 2020 06:21:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbgIUKVO (ORCPT ); Mon, 21 Sep 2020 06:21:14 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22ED3C0613D0 for ; Mon, 21 Sep 2020 03:21:14 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l9so12025126wme.3 for ; Mon, 21 Sep 2020 03:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Go04h4cBZb8oManNnBUCEv0xT9mbFOVFD/8tb3hzAWA=; b=B0KJNIujqWSJKiTDeZnTlqwipUX6r3YfWEvq0cg/FTY1nbvCf44+V12zE/P+TK8yc4 IYJMTjR653cKibE9xcUEnJXi/bcA6biRg626F6nkeixexu3kBXmM+EaMFJ7ex+L6QatM IMdqzflT53PYZViuhqE9bVztQ959JmLH6cbkK6lnMv5ayh0JId6a+5gowWauFiivSiPq LQsMn/hJtPZ8+hjrO8OVN6MYO+bZNdCWBU43/2biQSM9VxjIutjMrg2pwXkyWM8nP2e0 lm0zNJTdizABDmwyy6uVAeNjkv6/+HHrAYJi1/rQMyEkxI713J6IcqvUykAl/OR2KR8c /BVw== 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:in-reply-to :references; bh=Go04h4cBZb8oManNnBUCEv0xT9mbFOVFD/8tb3hzAWA=; b=rIl7yFLZ1OwwsyUNhGyeh32ZSRKGmfIgWEo/ICzMhzfGTO0os2r2r449PYkoKJ29Hr VR75BWv63gWsZeGkGmMFBlx/NDnExevATTH8q81e44kMkErrqF/aHqeuJ4hAw6ojQF9r 8V+zt6sgcQMbNcePUJQdHZpT8jyrET5zvCs/yM2ut2KM0jY4qfsEaJhwJ5uSRmgelvy6 MoDiTXaPhdv7Y1Unxa38KIZ6BlQXT3feuEcmVXA4GWZ9UWocWVpUVHfGHwjBvxnB62nk HPkBz6A2O/bGRBJJZcTPixzF0DSYHaqu+OmEbYXaK/yH7xkbWP+Lzy+My0HxUVVS07te vLjQ== X-Gm-Message-State: AOAM531XFioF+TxGAIrh/T1pJZSdKdmI+7UXtxUMYplkvmCR2uRBpzAt VP+qSbS5YTo+QZCZSTDUTbPwqA== X-Received: by 2002:a7b:c0ca:: with SMTP id s10mr29337577wmh.103.1600683672894; Mon, 21 Sep 2020 03:21:12 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id l17sm18804629wme.11.2020.09.21.03.21.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Sep 2020 03:21:12 -0700 (PDT) From: Corentin Labbe To: gregkh@linuxfoundation.org, laurent.pinchart@skynet.be, mchehab@kernel.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Corentin Labbe Subject: [PATCH RFT/RFC 43/49] staging: media: zoran: add vidioc_g_parm Date: Mon, 21 Sep 2020 10:20:18 +0000 Message-Id: <1600683624-5863-44-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600683624-5863-1-git-send-email-clabbe@baylibre.com> References: <1600683624-5863-1-git-send-email-clabbe@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding vidioc_g_parm made v4l compliance happy. Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_driver.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zoran/zoran_driver.c index 0b4bfc184b57..46bf8b32d57a 100644 --- a/drivers/staging/media/zoran/zoran_driver.c +++ b/drivers/staging/media/zoran/zoran_driver.c @@ -2120,6 +2120,14 @@ static int zoran_mmap(struct file *file, struct vm_area_struct *vma) return res; } +static int zoran_g_parm(struct file *file, void *priv, struct v4l2_streamparm *parm) +{ + if (parm->type != V4L2_BUF_TYPE_VIDEO_CAPTURE) + return -EINVAL; + + return 0; +} + /* * Output is disabled temporarily * Zoran is picky about jpeg data it accepts. At least it seems to unsupport COM and APPn. @@ -2127,6 +2135,7 @@ static int zoran_mmap(struct file *file, struct vm_area_struct *vma) */ static const struct v4l2_ioctl_ops zoran_ioctl_ops = { .vidioc_querycap = zoran_querycap, + .vidioc_g_parm = zoran_g_parm, .vidioc_s_selection = zoran_s_selection, .vidioc_g_selection = zoran_g_selection, .vidioc_enum_input = zoran_enum_input, -- 2.26.2