mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	alsa-pcm: limit channels to MAX
We don't support more than MAX channels See #507
This commit is contained in:
		
							parent
							
								
									392fcda01f
								
							
						
					
					
						commit
						c81fe38285
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -379,6 +379,8 @@ spa_alsa_enum_format(struct state *state, int seq, uint32_t start, uint32_t num,
 | 
			
		|||
		if (max > state->default_channels)
 | 
			
		||||
			max = state->default_channels;
 | 
			
		||||
	}
 | 
			
		||||
	min = SPA_MIN(min, SPA_AUDIO_MAX_CHANNELS);
 | 
			
		||||
	max = SPA_MIN(max, SPA_AUDIO_MAX_CHANNELS);
 | 
			
		||||
 | 
			
		||||
	spa_pod_builder_prop(&b, SPA_FORMAT_AUDIO_channels, 0);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue