diff options
author | Wim Taymans <wtaymans@redhat.com> | 2019-08-16 21:52:32 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2019-08-16 21:52:32 +0200 |
commit | 774e11bc1010b787f956d0dd455e76e8af173075 (patch) | |
tree | a580d8c8da4df75f4b9d777ffce2f951eb2bad51 | |
parent | 9807e7fdab0378a8dbefc173d08b95152834b377 (diff) |
keys: rename device.id to device.bus-id
-rw-r--r-- | spa/include/spa/monitor/device.h | 2 | ||||
-rw-r--r-- | spa/plugins/alsa/alsa-monitor.c | 2 | ||||
-rw-r--r-- | spa/plugins/v4l2/v4l2-monitor.c | 2 | ||||
-rw-r--r-- | src/examples/alsa-monitor.c | 2 | ||||
-rw-r--r-- | src/examples/v4l2-monitor.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/spa/include/spa/monitor/device.h b/spa/include/spa/monitor/device.h index 44879453..47ac74a6 100644 --- a/spa/include/spa/monitor/device.h +++ b/spa/include/spa/monitor/device.h @@ -241,7 +241,6 @@ struct spa_device_methods { #define SPA_KEY_DEVICE_NAME "device.name" /**< the name of the device */ #define SPA_KEY_DEVICE_ALIAS "device.alias" /**< altenative name of the device */ #define SPA_KEY_DEVICE_NICK "device.nick" /**< the device short name */ -#define SPA_KEY_DEVICE_ID "device.id" /**< the device id */ #define SPA_KEY_DEVICE_DESCRIPTION "device.description" /**< a device description */ #define SPA_KEY_DEVICE_ICON "device.icon" /**< icon for the device. A base64 blob * containing PNG image data */ @@ -249,6 +248,7 @@ struct spa_device_methods { * Ex. "sound-card-speakers-usb" */ #define SPA_KEY_DEVICE_PLUGGED_USEC "device.plugged.usec" /**< when the device was plugged */ +#define SPA_KEY_DEVICE_BUS_ID "device.bus-id" /**< the device bus-id */ #define SPA_KEY_DEVICE_BUS_PATH "device.bus-path" /**< bus path to the device in the OS' * format. * Ex. "pci-0000:00:14.0-usb-0:3.2:1.0" */ diff --git a/spa/plugins/alsa/alsa-monitor.c b/spa/plugins/alsa/alsa-monitor.c index 1f6c2dab..4831a50e 100644 --- a/spa/plugins/alsa/alsa-monitor.c +++ b/spa/plugins/alsa/alsa-monitor.c @@ -226,7 +226,7 @@ static int emit_object_info(struct impl *this, uint32_t id, struct udev_device * items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str); } if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) { - items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_ID, str); + items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_ID, str); } if ((str = udev_device_get_property_value(dev, "ID_BUS")) && *str) { items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS, str); diff --git a/spa/plugins/v4l2/v4l2-monitor.c b/spa/plugins/v4l2/v4l2-monitor.c index b4eb2172..2069f9f1 100644 --- a/spa/plugins/v4l2/v4l2-monitor.c +++ b/spa/plugins/v4l2/v4l2-monitor.c @@ -203,7 +203,7 @@ static int emit_object_info(struct impl *this, uint32_t id, struct udev_device * items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str); } if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) { - items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_ID, str); + items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_ID, str); } if ((str = udev_device_get_property_value(dev, "ID_BUS")) && *str) { items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS, str); diff --git a/src/examples/alsa-monitor.c b/src/examples/alsa-monitor.c index 16a83843..37149301 100644 --- a/src/examples/alsa-monitor.c +++ b/src/examples/alsa-monitor.c @@ -226,7 +226,7 @@ static int update_device_props(struct alsa_object *obj) char temp[32]; if ((s = pw_properties_get(p, SPA_KEY_DEVICE_NAME)) == NULL) { - if ((s = pw_properties_get(p, SPA_KEY_DEVICE_ID)) == NULL) { + if ((s = pw_properties_get(p, SPA_KEY_DEVICE_BUS_ID)) == NULL) { if ((s = pw_properties_get(p, SPA_KEY_DEVICE_BUS_PATH)) == NULL) { snprintf(temp, sizeof(temp), "%d", obj->id); s = temp; diff --git a/src/examples/v4l2-monitor.c b/src/examples/v4l2-monitor.c index 08f6e588..b273553d 100644 --- a/src/examples/v4l2-monitor.c +++ b/src/examples/v4l2-monitor.c @@ -220,7 +220,7 @@ static int v4l2_update_device_props(struct v4l2_object *obj) char temp[32]; if ((s = pw_properties_get(p, SPA_KEY_DEVICE_NAME)) == NULL) { - if ((s = pw_properties_get(p, SPA_KEY_DEVICE_ID)) == NULL) { + if ((s = pw_properties_get(p, SPA_KEY_DEVICE_BUS_ID)) == NULL) { if ((s = pw_properties_get(p, SPA_KEY_DEVICE_BUS_PATH)) == NULL) { snprintf(temp, sizeof(temp), "%d", obj->id); s = temp; |