Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp69964pxj; Fri, 7 May 2021 04:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN/uai95k9z6nOAaaziuVrb1AEB9t9D3//tZSt/lHgqXWINezx6CV/8oZylhOuVzWbFN5H X-Received: by 2002:a17:906:af73:: with SMTP id os19mr9339101ejb.218.1620385347151; Fri, 07 May 2021 04:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620385347; cv=none; d=google.com; s=arc-20160816; b=c/ZJ37ASeIYPf30tupCWQBHDuSihN1Z/tA1PtSwfOT2+jHcLrmLozKzsYQPniOvcS0 zpN+kqqqnXjJs8iSNg0wVTrSvhc8ec2Qcot6v+FOv4yS0879+SmPHPMFJV6u7TXtMHEP GMvJR6+vem40pIiP7O6n+Bv8AXaZbx6otHwR3rRhdvl33YhKywu1pThY3z44S9hWJt+x LoXprX+pBbNQeMKrB9iD4bIwE5qzvQk8OvKuMqV/Gsu8OcMoCg5rMKVYvjGnLHm28En5 i10aSa6QcrgsaxfkuUG63Hl/w4vgwRwO0uEpqa2WvC5HYiEvq+AB86P8oOyuUh0Q/fDT rpzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=8ywzJB7wMfUDOSXlp2CSTJ0B/sg+9NjNljH5gFly/ag=; b=a9dM7k/K4gTPx0W5kqNjJef140+fNQkKZgvA6Pa5qQ/U8Cl+n4WHYlsVaT0gUwAqOd TwVxO6UGPHzRup5CIH2z3frUmsrrTYWzSBUdCgpu5MwJZIu6xF35a4p+CjldQsWUvpqB kPQGuoNW8BjayIypGFI598cmywiM7CH9r9+FE+Adpmxp51ILTg2O8we/xSlGOlZGuY1Y 2gB37siXO8vrsIZm5DvEieDwPxnLykLTlhr/eY8LL+9OJm1hN9o78rXP4F+a2IG7xxTh 6YXHRIrWVyWMLRfiTvJeW2p0ZnNR75RtaE4xjPFgnS7QOmf053iGrhrLNipLqx3OBTYI eTGg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t24si4706508edw.515.2021.05.07.04.01.38; Fri, 07 May 2021 04:02:27 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235668AbhEGHrT (ORCPT + 99 others); Fri, 7 May 2021 03:47:19 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:51509 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235620AbhEGHrQ (ORCPT ); Fri, 7 May 2021 03:47:16 -0400 X-UUID: 202c31077c54477cb32cd62dc0ecd720-20210507 X-UUID: 202c31077c54477cb32cd62dc0ecd720-20210507 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 964811120; Fri, 07 May 2021 15:46:12 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 7 May 2021 15:46:11 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 7 May 2021 15:46:11 +0800 From: Louis Kuo To: , , , , , , , , , , CC: , , , , Subject: [RESENT PATCH V0 2/4] media: subdev: support which in v4l2_subdev_frame_interval Date: Fri, 7 May 2021 15:46:02 +0800 Message-ID: <20210507074604.15079-3-louis.kuo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210507074604.15079-1-louis.kuo@mediatek.com> References: <20210507074604.15079-1-louis.kuo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch is to support try or set of VIDIOC_SUBDEV_ENUM_FRAME_INTERVAL through which parameter. This behavior is already supported in some similar V4L2 IOCTLs such as VIDIOC_SUBDEV_ENUM_FRAME_SIZE for the same reason. Signed-off-by: Louis Kuo --- include/uapi/linux/v4l2-subdev.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/v4l2-subdev.h b/include/uapi/linux/v4l2-subdev.h index d6ffd5981c68..9d64feaa693b 100644 --- a/include/uapi/linux/v4l2-subdev.h +++ b/include/uapi/linux/v4l2-subdev.h @@ -120,12 +120,13 @@ struct v4l2_subdev_frame_size_enum { * struct v4l2_subdev_frame_interval - Pad-level frame rate * @pad: pad number, as reported by the media API * @interval: frame interval in seconds - * @reserved: drivers and applications must zero this array + * @which: format type (from enum v4l2_subdev_format_whence) */ struct v4l2_subdev_frame_interval { __u32 pad; struct v4l2_fract interval; - __u32 reserved[9]; + __u32 which; + __u32 reserved[8]; }; /** -- 2.18.0