aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf')
-rw-r--r--recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf b/recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf
new file mode 100644
index 000000000..0a2a3b639
--- /dev/null
+++ b/recipes-multimedia/wireplumber/files/30-AGL-demo-v4l2.conf
@@ -0,0 +1,22 @@
+# meta-agl-demo WirePlumber V4L2 monitor configuration
+
+monitor.v4l2.rules = [
+ #
+ # Bump the priority of any USB camera
+ # Higher priority means it gets selected as the default if it's present
+ # This makes camera-gstreamer work out of the box in demos with a USB camera
+ #
+ {
+ matches = [
+ {
+ node.name = "~v4l2_input.*usb.*"
+ }
+ ]
+ actions = {
+ update-props = {
+ priority.driver = 1300
+ priority.session = 1300
+ }
+ }
+ }
+]