udev: use devpath for the sysfs.path property

So that it matches what pulseaudio does.

Fixes #2779
This commit is contained in:
Wim Taymans 2022-10-20 16:44:37 +02:00
parent 1aef910dcc
commit f7c4909243
2 changed files with 2 additions and 2 deletions

View file

@ -465,7 +465,7 @@ static int emit_object_info(struct impl *this, struct device *device)
if (str && *str) {
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_PATH, str);
}
if ((str = udev_device_get_syspath(dev)) && *str) {
if ((str = udev_device_get_devpath(dev)) && *str) {
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str);
}
if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {

View file

@ -266,7 +266,7 @@ static int emit_object_info(struct impl *this, struct device *device)
if (str && *str) {
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_PATH, str);
}
if ((str = udev_device_get_syspath(dev)) && *str) {
if ((str = udev_device_get_devpath(dev)) && *str) {
items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str);
}
if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {