mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	card-restore: we don't need to save card data that came from the database
This commit is contained in:
		
							parent
							
								
									d773638b20
								
							
						
					
					
						commit
						59bd793734
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -197,8 +197,9 @@ static pa_hook_result_t card_new_hook_callback(pa_core *c, pa_card_new_data *new
 | 
				
			||||||
    if ((e = read_entry(u, new_data->name)) && e->profile[0]) {
 | 
					    if ((e = read_entry(u, new_data->name)) && e->profile[0]) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!new_data->active_profile) {
 | 
					        if (!new_data->active_profile) {
 | 
				
			||||||
            pa_card_new_data_set_profile(new_data, e->profile);
 | 
					 | 
				
			||||||
            pa_log_info("Restoring profile for card %s.", new_data->name);
 | 
					            pa_log_info("Restoring profile for card %s.", new_data->name);
 | 
				
			||||||
 | 
					            pa_card_new_data_set_profile(new_data, e->profile);
 | 
				
			||||||
 | 
					            new_data->save_profile = FALSE;
 | 
				
			||||||
        } else
 | 
					        } else
 | 
				
			||||||
            pa_log_debug("Not restoring profile for card %s, because already set.", new_data->name);
 | 
					            pa_log_debug("Not restoring profile for card %s, because already set.", new_data->name);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue