mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: add another sequence 'msleep'
Thus, we have two sleep statements:
    msleep <milliseconds>
    usleep <microseconds>
Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
			
			
This commit is contained in:
		
							parent
							
								
									a97aa7f065
								
							
						
					
					
						commit
						26e80c2e32
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -316,6 +316,17 @@ static int parse_sequence(snd_use_case_mgr_t *uc_mgr ATTRIBUTE_UNUSED,
 | 
			
		|||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (strcmp(cmd, "msleep") == 0) {
 | 
			
		||||
			curr->type = SEQUENCE_ELEMENT_TYPE_SLEEP;
 | 
			
		||||
			err = snd_config_get_integer(n, &curr->data.sleep);
 | 
			
		||||
			if (err < 0) {
 | 
			
		||||
				uc_error("error: msleep requires integer!");
 | 
			
		||||
				return err;
 | 
			
		||||
			}
 | 
			
		||||
			curr->data.sleep *= 1000L;
 | 
			
		||||
			continue;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if (strcmp(cmd, "exec") == 0) {
 | 
			
		||||
			curr->type = SEQUENCE_ELEMENT_TYPE_EXEC;
 | 
			
		||||
			err = parse_string(n, &curr->data.exec);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue