mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	udev: use devpath for the sysfs.path property
So that it matches what pulseaudio does. Fixes #2779
This commit is contained in:
		
							parent
							
								
									1aef910dcc
								
							
						
					
					
						commit
						f7c4909243
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -465,7 +465,7 @@ static int emit_object_info(struct impl *this, struct device *device)
 | 
				
			||||||
	if (str && *str) {
 | 
						if (str && *str) {
 | 
				
			||||||
		items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_PATH, 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);
 | 
							items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {
 | 
						if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -266,7 +266,7 @@ static int emit_object_info(struct impl *this, struct device *device)
 | 
				
			||||||
	if (str && *str) {
 | 
						if (str && *str) {
 | 
				
			||||||
		items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_BUS_PATH, 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);
 | 
							items[n_items++] = SPA_DICT_ITEM_INIT(SPA_KEY_DEVICE_SYSFS_PATH, str);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {
 | 
						if ((str = udev_device_get_property_value(dev, "ID_ID")) && *str) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue