pipewire/spa
Barnabás Pőcze 3bbccccd05 spa: v4l2: use a separate watch for each device
Instead of watching /dev, use a separate watch for each device.
This is supposed to achieve the same result as the now reverted
88f0dbd6fc ("v4l2: don't set inotify on /dev"):

  Doing inotify on /dev is not a good idea because we will be woken up by
  a lot of unrelated events.

  There is a report of a performance regression on some IO benchmark
  because of lock contention within the fsnotify subsystem due to this.

  Instead, just watch for attribute changes on the /dev/videoX files
  directly. We are only interested in attribute changes, udev should
  notify us when the file is added or removed.

Fixes #3439
2023-09-07 10:17:29 +02:00
..
examples treewide: mark some functions static 2023-07-03 19:40:31 +02:00
include alsa-compress-offload: Add device object and udev based autodetection 2023-09-02 08:28:22 +00:00
plugins spa: v4l2: use a separate watch for each device 2023-09-07 10:17:29 +02:00
tests treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
tools treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
meson.build meson.build: enable LC3 by default 2023-07-25 07:26:21 +00:00