Message ID | 20200610230541.1603067-5-niklas.soderlund+renesas@ragnatech.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | media-device: Report if graph is complete | expand |
Hi Niklas, Thank you for the patch. On Thu, Jun 11, 2020 at 01:05:40AM +0200, Niklas Söderlund wrote: > 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 <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > 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;
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;
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 <niklas.soderlund+renesas@ragnatech.se> --- drivers/media/mc/mc-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)