mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: small cosmetic uc_error change in execute_sequence()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									8a36e38dc4
								
							
						
					
					
						commit
						c01e3d30b8
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -387,15 +387,16 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
 | 
			
		|||
				    strcmp(playback_ctl, capture_ctl) != 0) {
 | 
			
		||||
					free(playback_ctl);
 | 
			
		||||
					free(capture_ctl);
 | 
			
		||||
					uc_error("cdev is not defined!");
 | 
			
		||||
					uc_error("cdev is not equal for playback and capture!");
 | 
			
		||||
					return -EINVAL;
 | 
			
		||||
				}
 | 
			
		||||
				if (playback_ctl != NULL) {
 | 
			
		||||
					cdev = playback_ctl;
 | 
			
		||||
					free(capture_ctl);
 | 
			
		||||
				} else
 | 
			
		||||
				} else {
 | 
			
		||||
					cdev = capture_ctl;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			if (ctl == NULL) {
 | 
			
		||||
				err = uc_mgr_open_ctl(uc_mgr, &ctl, cdev);
 | 
			
		||||
				if (err < 0) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue