mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	modules: use NODE_WANT_DRIVER=true instead of NODE_GROUP
For the modules that require a driver, don't add ourselves to the pipewire.dummy group but instead just use the NODE_WANT_DRIVER property to be assigned to a driver. This makes it possible for the nodes to move to another driver than the dummy driver (which has very high priority) and it avoids resampling in cases where the nodes are linked to an audio source or sink.
This commit is contained in:
		
							parent
							
								
									01b4c4fa64
								
							
						
					
					
						commit
						4ae94a6ca6
					
				
					 9 changed files with 22 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -455,8 +455,8 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
 | 
			
		|||
		pw_properties_set(playback_props, PW_KEY_NODE_NAME, "roc-source");
 | 
			
		||||
	if (pw_properties_get(playback_props, PW_KEY_NODE_DESCRIPTION) == NULL)
 | 
			
		||||
		pw_properties_set(playback_props, PW_KEY_NODE_DESCRIPTION, "ROC Source");
 | 
			
		||||
	if (pw_properties_get(playback_props, PW_KEY_NODE_GROUP) == NULL)
 | 
			
		||||
		pw_properties_set(playback_props, PW_KEY_NODE_GROUP, "pipewire.dummy");
 | 
			
		||||
	if (pw_properties_get(playback_props, PW_KEY_NODE_WANT_DRIVER) == NULL)
 | 
			
		||||
		pw_properties_set(playback_props, PW_KEY_NODE_WANT_DRIVER, "true");
 | 
			
		||||
	if (pw_properties_get(playback_props, PW_KEY_NODE_VIRTUAL) == NULL)
 | 
			
		||||
		pw_properties_set(playback_props, PW_KEY_NODE_VIRTUAL, "true");
 | 
			
		||||
	if (pw_properties_get(playback_props, PW_KEY_NODE_NETWORK) == NULL)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue