From eb80d6ce667e707e5a1ee7444203aa03fdb6b2e0 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 7 Oct 2021 10:33:11 +0200 Subject: [PATCH] usb_webcam: on/off dependent on capture client This commit removes the report service from the usb_webcam pkg, which was used to enable or disable the webcam driver. The on/off state is instead controlled by the presence of a capture client. That is, once a capture client appears, the webcam driver is started. Vice versa, once no capture client exists, the webcam driver is removed automatically. Internally, the detection of presence of a capture client is based on nitpicker's 'displays' report, which is consumed as input of the rom_filter, which in turn generates the configuration of a dynamic sub init. Fixes #4287 --- repos/libports/recipes/pkg/usb_webcam/runtime | 2 +- .../recipes/raw/usb_webcam/usb_webcam.config | 26 ++++++++++--------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/repos/libports/recipes/pkg/usb_webcam/runtime b/repos/libports/recipes/pkg/usb_webcam/runtime index cbb2476ae9..ea7354a3f7 100644 --- a/repos/libports/recipes/pkg/usb_webcam/runtime +++ b/repos/libports/recipes/pkg/usb_webcam/runtime @@ -1,5 +1,5 @@ - + diff --git a/repos/libports/recipes/raw/usb_webcam/usb_webcam.config b/repos/libports/recipes/raw/usb_webcam/usb_webcam.config index cc137ba03d..a017619f88 100644 --- a/repos/libports/recipes/raw/usb_webcam/usb_webcam.config +++ b/repos/libports/recipes/raw/usb_webcam/usb_webcam.config @@ -12,7 +12,6 @@ - @@ -22,11 +21,13 @@ + + @@ -36,25 +37,28 @@ - + - + - - + + + + - - + + + @@ -82,13 +86,11 @@ - + - - - + @@ -98,7 +100,7 @@ - +