Skip to content

spa/v4l2: better device product names on current kernels

P V requested to merge pvir/pipewire:v4l2-product-name into master

udev/kernel sometimes give "Video Capture N" as ID_V4L_PRODUCT, which is bogus as a device product name. The ID_MODEL* field seem to always have a sensible product name.

Get device.product.name always from ID_MODEL*, and use ID_V4L_PRODUCT only as the last fallback.


Fixes #2035 (closed)

Discussion on linux-media about this, since it breaks all apps: https://lore.kernel.org/linux-media/20211207003840.1212374-1-ribalda@chromium.org/

Using ID_MODEL* probably remains OK even if it is fixed.

Edited by P V

Merge request reports