From patchwork Wed Jun 10 23:05:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 11599013 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5629C175A for ; Wed, 10 Jun 2020 23:06:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 482A42078D for ; Wed, 10 Jun 2020 23:06:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726778AbgFJXGD (ORCPT ); Wed, 10 Jun 2020 19:06:03 -0400 Received: from bin-mail-out-05.binero.net ([195.74.38.228]:26526 "EHLO bin-mail-out-05.binero.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726553AbgFJXGC (ORCPT ); Wed, 10 Jun 2020 19:06:02 -0400 X-Halon-ID: effdd561-ab6e-11ea-933e-005056917a89 Authorized-sender: niklas@soderlund.pp.se Received: from bismarck.berto.se (p4fca2eca.dip0.t-ipconnect.de [79.202.46.202]) by bin-vsp-out-01.atm.binero.net (Halon) with ESMTPA id effdd561-ab6e-11ea-933e-005056917a89; Thu, 11 Jun 2020 01:05:55 +0200 (CEST) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Hans Verkuil , Laurent Pinchart , linux-media@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH 4/5] mc-device.c: Report graph complete to user-space Date: Thu, 11 Jun 2020 01:05:40 +0200 Message-Id: <20200610230541.1603067-5-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200610230541.1603067-1-niklas.soderlund+renesas@ragnatech.se> References: <20200610230541.1603067-1-niklas.soderlund+renesas@ragnatech.se> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org If the graph in the media device is complete report it to userspace by setting the MEDIA_TOPOLOGY_FLAG_COMPLETE flag. Signed-off-by: Niklas Söderlund Reviewed-by: Laurent Pinchart --- drivers/media/mc/mc-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/mc/mc-device.c b/drivers/media/mc/mc-device.c index c2ef5bb512a5fba0..d63792cc014279fc 100644 --- a/drivers/media/mc/mc-device.c +++ b/drivers/media/mc/mc-device.c @@ -242,7 +242,7 @@ static long media_device_get_topology(struct media_device *mdev, void *arg) int ret = 0; topo->topology_version = mdev->topology_version; - topo->flags = 0; + topo->flags = mdev->complete ? MEDIA_TOPOLOGY_FLAG_COMPLETE : 0; /* Get entities and number of entities */ i = 0;