Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2119378ybh; Fri, 24 Jul 2020 05:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNLbWY0DN5h62Hl0EqNNmGuzCzrztTNvZkAkZEdOKYLO+yJcHGIxHKpcyzNHoCgB5gC71U X-Received: by 2002:aa7:db06:: with SMTP id t6mr8646349eds.369.1595592193076; Fri, 24 Jul 2020 05:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595592193; cv=none; d=google.com; s=arc-20160816; b=bg5bMDr5ue7WL0VN0Ha/6UNmF1Uid7dJG6fGW1h4ml/1E1e+zWXc2uZHVSXSJqNGJm hDUoqZy1QP66XgHpsunf45Qjn8uHxNN1+k539IDxXDrgKFpMhKxNflskgMLXbrXO44M8 ZMdeirKpSb28EubX0GOVfRP3lNwrZ0d87MLCT7u9o/+19vyGjcqHA2/h9nbKKGgUwSNE QegSpdpw0KR3QNcFUN+FUM/wlaiVpQxrXbfq7m1LEJmrZd8KTE7xU7xzc+UeZHt0JQS6 YVctEaymeH7XPlcSrg4fQ0Z6OBV87bNgsDrbrXvxwZwTG58OD81DYAFEwU6h0ROGIe7e ReFw== 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=jD9j6opAZjPsy3NUA4rBVj0Mn4JgNhzYg7OVCYAcm1o=; b=hbx2snSvYO3hjEGMCr0OzKEBdlsm4gTOR0i4xRuHSe+ipaz+ThaoNSrbFw7JrGujvt vHJZnWJnq8GwY3i4P7h1J9g7h/oEgzK7HKMRbhnhDX3cStfYi1Iaimrb/odow9qeFdv7 W35N7fLKNedrcAcUkU0hEl96KlwIoBT/oKcAKJXzcTPhyf1tTNyx1QMJuqGQYv3SioLG wgPiDagyVQiSiwjVLnTlXnMv1ZCixsSPT0SLm+vSe8MZBtqh7bxyjgsfJKSWfpnoF3k1 nWqxvCIzuZtgH9KIla95bKkTbLqPI6kkSRp0RrlpwKuRzv6STL52kW4AMofl6y4YDazv PvvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=WjefxjKp; 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=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si445972ejv.28.2020.07.24.05.02.45; Fri, 24 Jul 2020 05:03:13 -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=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=WjefxjKp; 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=QUARANTINE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727770AbgGXMCe (ORCPT + 99 others); Fri, 24 Jul 2020 08:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726689AbgGXMC2 (ORCPT ); Fri, 24 Jul 2020 08:02:28 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45005C0619D3 for ; Fri, 24 Jul 2020 05:02:28 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id 1so4985175pfn.9 for ; Fri, 24 Jul 2020 05:02:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jD9j6opAZjPsy3NUA4rBVj0Mn4JgNhzYg7OVCYAcm1o=; b=WjefxjKpwQYRJAw8+fhmEXe7R2Z9Ykf1di6zK8tOvYlFU3CZWul7kx1m3QMHmFmh8i lbnjKbf79tLW+MpJScjd8llgAkR48TvpGKH6/D29dRaMPJMwfJ3Ohu6KlOA9IGHZDzln we61sxpM/OJUwk5UgrsnEWVQz+yYIwC3acOtlHMx+qhJU6s6sl0DCn7xwQKQM3E2+6vJ zWaBd7zZKHgKC7qWf3GO7jyjt4zZlEmi9gj7u19zr/37JxI0eeMdFkb4GnRfSyI4e1UT pu/xZ0q5ytjhSXcxW4G41dS/ylaZVcHen4Wc35xt83Rd3Ym1SaJ1kAsF197sUmTooNrD m5Zg== 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=jD9j6opAZjPsy3NUA4rBVj0Mn4JgNhzYg7OVCYAcm1o=; b=mdORb3tGIEtTnsY5OOTQ013NUO6UUchfCu/gcRPR3JlOGzALH+kgLppJXEdiUG2qYk 2r3XKHtOr/HNi1y6MRqBFaCOKZm0Fp/MxQjEmPNzssCwcrWtS6cY8btCi4PnBi3E5yON niZoYZ6rdq5cGlKVWEYIuXe6VlIa990xs3WAEpMHMy55SqOpTFdcRLgdYfcPCCo66GGE mwwyDVtdDrIjuQO6ctoEqeBR/zWKzkqWBeag0paC5zn8FkD6cOe9X0GOZVzOCVqvD9nc Rg1LkBeLL8llLfX7yJ0BmyW5kkNHAyvakJMbwVDG45LkdYqaP1QwZXS1QBv+zhW+FANY QGpg== X-Gm-Message-State: AOAM531OkklsEngbSu6MoU311menoA7FP4iOwfxOryiandXsTyFbAwaf FHVpfCkhe6eyfqfHQCn0+cV0Tg== X-Received: by 2002:a63:29c8:: with SMTP id p191mr8499852pgp.333.1595592147687; Fri, 24 Jul 2020 05:02:27 -0700 (PDT) Received: from kaaira-HP-Pavilion-Notebook ([103.113.213.178]) by smtp.gmail.com with ESMTPSA id c23sm6154734pfo.32.2020.07.24.05.02.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jul 2020 05:02:26 -0700 (PDT) From: Kaaira Gupta To: Helen Koike , Shuah Khan , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , =?UTF-8?q?Niklas=20S=C3=B6derlund?= Cc: Kaaira Gupta Subject: [PATCH v2 0/3] media: vimc: Allow multiple capture devices to use the same sensor Date: Fri, 24 Jul 2020 17:32:10 +0530 Message-Id: <20200724120213.17119-1-kgupta@es.iitr.ac.in> 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 is version 2 of the patch series posted by Niklas for allowing multiple streams in VIMC. The original series can be found here: https://patchwork.kernel.org/cover/10948831/ This series adds support for two (or more) capture devices to be connected to the same sensors and run simultaneously. Each capture device can be started and stopped independent of each other. Patch 1/3 and 2/3 deals with solving the issues that arises once two capture devices can be part of the same pipeline. While 3/3 allows for two capture devices to be part of the same pipeline and thus allows for simultaneously use. Changes since v1: - All three patches rebased on latest media-tree. Patch 3: - Search for an entity with a non-NULL pipe instead of searching for sensor. This terminates the search at output itself. Kaaira Gupta (3): media: vimc: Add usage count to subdevices media: vimc: Serialize vimc_streamer_s_stream() media: vimc: Join pipeline if one already exists .../media/test-drivers/vimc/vimc-capture.c | 35 ++++++++++++++++++- .../media/test-drivers/vimc/vimc-debayer.c | 8 +++++ drivers/media/test-drivers/vimc/vimc-scaler.c | 8 +++++ drivers/media/test-drivers/vimc/vimc-sensor.c | 9 ++++- .../media/test-drivers/vimc/vimc-streamer.c | 23 +++++++----- 5 files changed, 73 insertions(+), 10 deletions(-) -- 2.17.1