Received: by 2002:ac0:a874:0:0:0:0:0 with SMTP id c49csp602916ima; Fri, 15 Mar 2019 09:45:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwW+iRvn+XOtMiCvNvVCsWBt743+yM4zzvhQYAe+0qsDIz5YC0wtHI7YVSfO5C83By6Hq9B X-Received: by 2002:a17:902:6b8a:: with SMTP id p10mr5280949plk.109.1552668355629; Fri, 15 Mar 2019 09:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552668355; cv=none; d=google.com; s=arc-20160816; b=K+Nmgbe6L3o9lViwNOXzrP5DbXyo4w+0UQXYJzsPOTNAHGTo3ylvGha7m+k243Y7+q g98IK28gI869k/FZBE1r3iZJfNGkWdKdvDOWj//yiz6OZVj6qoebJMhNCgO6u8MVuL1b FOKGLgL6yVEbbcy662CFSLOq2JqZv57Gg1FXwSzauACSyxkwXHP2Ez8KPo9SPr6JcjzC qbPmwqzYkVgc+EdynExJvN91XqeWg4gJoQM/lM1ZyAuvw5lLOMI37UzRn63zSLy5Hzlt 1qdCGRIlyfdaLQ9VJQwgxkPDtH4oUZdRfQiuGHItkpVg4wsWqadBft9sMZJh+moAZGMS eVuA== 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; bh=o1zX/kgJCbb3I+FgkvdsB4W9mTpxMslhiDYQ27EJ3wY=; b=01dXyVh4O35+wK6pXvTfYjqSa4kh0d0DtcUJvGvyGu/+3jsHkYFdypcB8yQWm4Lqxk IVuGiOp3jJr6SwpLNflT/o1aDN1JWtEUIQvH2PkarvHqzuNMuIOP6Xc6gYmp+tlvPnDB VQezkZeNSbdcvv+0VgTv9rak9oh3uYylAg1G6kkafeJBuszZB937/v0KGU/+2ugoNide mEkkMxB565iLiEjD9SYWT/sPBXs4aJAXk6p6bAFmtSr1YYAVRK7VKT02TJHrmEVzyjHq NF2JyDpKRGsTtBezwz9XRNeUSY64/MqQvIllamz/w3OYi28y8UiAuNskH4/FJfSbUw/N XUkA== 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 f3si2161291pgq.206.2019.03.15.09.45.39; Fri, 15 Mar 2019 09:45:55 -0700 (PDT) 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 S1729633AbfCOQo7 (ORCPT + 99 others); Fri, 15 Mar 2019 12:44:59 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:48966 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728182AbfCOQo7 (ORCPT ); Fri, 15 Mar 2019 12:44:59 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: tonyk) with ESMTPSA id 85D952820A3 From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, hverkuil@xs4all.nl, helen.koike@collabora.com, lucmaga@gmail.com, linux-kernel@vger.kernel.org, kernel@collabora.com Subject: [PATCH 00/16] media: vimc: Add support for multiplanar formats Date: Fri, 15 Mar 2019 13:43:43 -0300 Message-Id: <20190315164359.626-1-andrealmeid@collabora.com> X-Mailer: git-send-email 2.21.0 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 Hello, This series implements support for multiplane pixel formats at vimc. A lot of changes were required since vimc support for singleplane was "hardcoded". The code has been adapted in order to support both formats. When was possible, the functions were written generically, avoiding functions for just one type of pixel format (single/multi) and favoring code reuse. The debayer subdevice is the only one that currently doesn't supports multiplanar formats. Documentation to each device will be made in a future patch. Thanks, André André Almeida (16): media: Move sp2mp functions to v4l2-common media: vimc: Remove unnecessary stream check media: vimc: Check if the stream is on using ved.stream media: vimc: cap: Change vimc_cap_device.format type media: vimc: Create multiplanar parameter media: vimc: cap: Dynamically define stream pixelformat media: vimc: cap: Add handler for singleplanar fmt ioctls media: vimc: cap: Add handler for multiplanar fmt ioctls media: vimc: cap: Add multiplanar formats media: vimc: cap: Add multiplanar default format media: vimc: cap: Allocate and verify mplanar buffers media: vimc: Add and use new struct vimc_frame media: vimc: sen: Add support for multiplanar formats media: vimc: sca: Add support for multiplanar formats media: vimc: cap: Add support for multiplanar formats media: vimc: cap: Dynamically define device caps drivers/media/platform/vimc/vimc-capture.c | 310 +++++++++++++++--- drivers/media/platform/vimc/vimc-common.c | 37 +++ drivers/media/platform/vimc/vimc-common.h | 50 ++- drivers/media/platform/vimc/vimc-core.c | 8 + drivers/media/platform/vimc/vimc-debayer.c | 38 +-- drivers/media/platform/vimc/vimc-scaler.c | 125 ++++--- drivers/media/platform/vimc/vimc-sensor.c | 62 ++-- drivers/media/platform/vimc/vimc-streamer.c | 2 +- drivers/media/platform/vivid/vivid-vid-cap.c | 6 +- .../media/platform/vivid/vivid-vid-common.c | 59 ---- .../media/platform/vivid/vivid-vid-common.h | 9 - drivers/media/platform/vivid/vivid-vid-out.c | 6 +- drivers/media/v4l2-core/v4l2-common.c | 62 ++++ include/media/v4l2-common.h | 31 ++ 14 files changed, 580 insertions(+), 225 deletions(-) -- 2.21.0