From patchwork Fri Aug 14 20:54:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 247743 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp677851ilo; Fri, 14 Aug 2020 13:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywC1N3Gu8/aXpi9pRWrOJu2TaVGaLbPIFmwodzMceNlqx3mOebWRCfBOdbSIiV2JDjW1JT X-Received: by 2002:a17:906:e115:: with SMTP id gj21mr4082548ejb.505.1597438481320; Fri, 14 Aug 2020 13:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597438481; cv=none; d=google.com; s=arc-20160816; b=YFE957u4Ae/qLW3ELsaUvyYnonb3THbGdibX82Mk+fCQCxKQAXVaBGCzZk6W7W05kf bbrcfGRSC3lOjG0r8GXPGqDYGyCq+aYesUJh1/5XvhcOQ3ayJ8MM9qyZIGFZHq8vF0LA hfTMHidKc8V1IgjdjHAKToV28Jhn/9Smopzmt9GC5sw2zQzsKBegmzAlON7vXPahRQXV nyx1F3jtUpymEKmhE8KPO7+d3monIF13G0eR9nKwxzi40W/xMO8zrQ8gDWKZQ49FYxNN op3oA0coeLO0ghEnQBWWw8EqB6GX4NWUMT8AJ9qDxsSZ+LJG8P/wbDVnktqw2A1p1mac zIvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=1FDKw0O5eWt4YU9CAFYlMQLGqQJ37dmu6qNrHuMqcRQ=; b=XxUXOGTc+cOzkbkCx0hprQtaVIUUPmrPsobejslUnv41boj83qEdxWisMs2oqQti1L fz/Pfk4gaAGJ+Jtgx02E77XQmT4ThEVeffSSs+6XSLOiSi+PSuuoKeOC6Idhc2GLOM1Z 2A9eGtX9TG/cJDNYtSKKSXp7VyeXjyzExeCvh8Pi14Tk+CSRr8ff+Zzx/z+mLYNJ5O6r 6tJ/Tf83eMuxAoGg+ixJeIhTE2mObkJwfrGYh/F1Hqtea3aqAGGP0ehkO7Sh+/EOOEK4 kSLR/hcA1dyvKMTk9WF/b2+1TYUAsLAZWvdRRP8rldoWse6Dhqy8kBfcSFdfv1qva6Xr dKeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=arhmDL8v; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si6054935edv.492.2020.08.14.13.54.41; Fri, 14 Aug 2020 13:54:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-media-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=@linaro.org header.s=google header.b=arhmDL8v; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgHNUyj (ORCPT + 4 others); Fri, 14 Aug 2020 16:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgHNUyi (ORCPT ); Fri, 14 Aug 2020 16:54:38 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E718C061386 for ; Fri, 14 Aug 2020 13:54:38 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id h19so11286331ljg.13 for ; Fri, 14 Aug 2020 13:54:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=1FDKw0O5eWt4YU9CAFYlMQLGqQJ37dmu6qNrHuMqcRQ=; b=arhmDL8vT23JBvzxpJv91eUUdxiZXfmUexqllb1641LB0jGGd+HkHFMfCe3n3UDz3S dMUKeWEZwQYhpfYmGD/43DeFiRPlX8/536nYrg/WvhEqZOabilD0V9JYMjINp7jEAjJ5 uDZXWUSaRky02uqIayG9p8wT1uq7Uunp7ArTqKk5JGC1DT12IR6DRgqbmSgyakg9/Edm E7dhMR6zP+9azLjLYkWUGo/a0oUGBvdyP4INGy3FuSk1vYGE1x9a28udmHb7ZKW8R4GR yRt+5pQyM7pVx3Q7jjtkydu3a62isTD+46eotZSyNxw3sLYfrAReo52CNCK3txPlppq4 WDIw== 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; bh=1FDKw0O5eWt4YU9CAFYlMQLGqQJ37dmu6qNrHuMqcRQ=; b=l+jZ7ZCU8EoV1y34yXCvX7ZItnaDw9DzSPNcFj6oJ1zDjENU7fwEE7kqWH3kB/p4xM VVQulLtXD8DLAJkKc5SYeM+Zb70KSOtT8MRBMqVzVzhqrjv8dKcBTcPb2Tkm4wc6m/d6 XQRM15xEiabth4+Ye2R9lIQ4Kvjn6JNpoh2tttkB5h9NANIAbOG3Oi3fQMDlLJgZcf8B fTX86G7iXlMeghXITn+PrR/Ol8vuhWQTm/ZncRzuOvCuF18yr0tjAzjkdYY5lVcYMfch EmYy4V3/HxyyL4Nxpuus66oHbR+Wr+ZXrR34Nv0qPFBrwU9WoJsixua06JPUmkzJMI4F 8K/A== X-Gm-Message-State: AOAM530uemTOQrLUB2ATm9lu3Y3K0pjQ1ofVbjmA1weYOHIZJHNsLG/e euAv37sbgAeu/iIg9qgTkskxGX0zM3acDQ== X-Received: by 2002:a2e:2a84:: with SMTP id q126mr2054347ljq.289.1597438476455; Fri, 14 Aug 2020 13:54:36 -0700 (PDT) Received: from localhost.localdomain (37-144-159-139.broadband.corbina.ru. [37.144.159.139]) by smtp.googlemail.com with ESMTPSA id j26sm1963601lja.111.2020.08.14.13.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 13:54:35 -0700 (PDT) From: Andrey Konovalov To: mchehab@kernel.org, robert.foss@linaro.org Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, peter.griffin@linaro.org, Andrey Konovalov Subject: [PATCH 0/3] media: camss: extend VIDIOC_ENUM_* ioctls support Date: Fri, 14 Aug 2020 23:54:00 +0300 Message-Id: <20200814205403.27639-1-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The first two patches add mbus_code filtering support to VIDIOC_ENUM_FMT implementation, and VIDIOC_ENUM_FRAMESIZES support. The minimum and the maximum frame size values are deduced from __video_try_fmt() code. The third patch replaces harcoded limits in __video_try_fmt() with the definitions introduced by the second patch. Andrey Konovalov (3): media: camss: Make use of V4L2_CAP_IO_MC media: camss: add support for vidioc_enum_framesizes ioctl media: camss: __video_try_fmt(): don't use hardcoded constants .../media/platform/qcom/camss/camss-video.c | 112 +++++++++++++++--- 1 file changed, 95 insertions(+), 17 deletions(-) -- 2.17.1