mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: implement basic script exec functionality
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
		
							parent
							
								
									116fabd603
								
							
						
					
					
						commit
						265cf2c3ee
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -265,7 +265,9 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
 | 
				
			||||||
			usleep(s->data.sleep);
 | 
								usleep(s->data.sleep);
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		case SEQUENCE_ELEMENT_TYPE_EXEC:
 | 
							case SEQUENCE_ELEMENT_TYPE_EXEC:
 | 
				
			||||||
			uc_error("exec not yet implemented: '%s'", s->data.exec);
 | 
								err = system(s->data.exec);
 | 
				
			||||||
 | 
								if (err < 0)
 | 
				
			||||||
 | 
									goto __fail;
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
		default:
 | 
							default:
 | 
				
			||||||
			uc_error("unknown sequence command %i", s->type);
 | 
								uc_error("unknown sequence command %i", s->type);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue