mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: Handle the "profile" modarg in module-alsa-card
This commit is contained in:
		
							parent
							
								
									9a1eee5c43
								
							
						
					
					
						commit
						12fe756993
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -294,6 +294,7 @@ int pa__init(pa_module *m) {
 | 
			
		|||
    struct userdata *u;
 | 
			
		||||
    pa_reserve_wrapper *reserve = NULL;
 | 
			
		||||
    const char *description;
 | 
			
		||||
    const char *profile = NULL;
 | 
			
		||||
    char *fn = NULL;
 | 
			
		||||
    pa_bool_t namereg_fail = FALSE;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -390,6 +391,9 @@ int pa__init(pa_module *m) {
 | 
			
		|||
        goto fail;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if ((profile = pa_modargs_get_value(ma, "profile", NULL)))
 | 
			
		||||
        pa_card_new_data_set_profile(&data, profile);
 | 
			
		||||
 | 
			
		||||
    u->card = pa_card_new(m->core, &data);
 | 
			
		||||
    pa_card_new_data_done(&data);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue