mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-monitor: use max channels on non-ACP devices
Otherwise, they might still negotiate to something less than the max channels.
This commit is contained in:
		
							parent
							
								
									80368ab8ae
								
							
						
					
					
						commit
						5e15411af4
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -232,6 +232,9 @@ static struct node *alsa_create_node(struct device *device, uint32_t id,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	pw_properties_set(node->props, PW_KEY_FACTORY_NAME, info->factory_name);
 | 
						pw_properties_set(node->props, PW_KEY_FACTORY_NAME, info->factory_name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (!device->use_acp && pw_properties_get(node->props, PW_KEY_AUDIO_CHANNELS) == NULL)
 | 
				
			||||||
 | 
							pw_properties_setf(node->props, PW_KEY_AUDIO_CHANNELS, "%d", SPA_AUDIO_MAX_CHANNELS);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((dev = pw_properties_get(node->props, SPA_KEY_API_ALSA_PCM_DEVICE)) == NULL)
 | 
						if ((dev = pw_properties_get(node->props, SPA_KEY_API_ALSA_PCM_DEVICE)) == NULL)
 | 
				
			||||||
		if ((dev = pw_properties_get(node->props, "alsa.device")) == NULL)
 | 
							if ((dev = pw_properties_get(node->props, "alsa.device")) == NULL)
 | 
				
			||||||
			dev = "0";
 | 
								dev = "0";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue