mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	devices: Set certain sink/source flags automatically.
Some sink flags are really just a product of what callbacks are set on the device. We still enforce a degree of sanity that the flags match the callbacks set, but we also set the flags automatically in our callback setter functions to help ensure that a) people use them and b) flags & callbacks are kept in sync.
This commit is contained in:
		
							parent
							
								
									ded07a5898
								
							
						
					
					
						commit
						a9cf320bc1
					
				
					 13 changed files with 100 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -1178,7 +1178,7 @@ int pa__init(pa_module*m) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    u->sink = pa_sink_new(m->core, &sink_data,
 | 
			
		||||
                          PA_SINK_HW_MUTE_CTRL|PA_SINK_HW_VOLUME_CTRL|PA_SINK_DECIBEL_VOLUME|
 | 
			
		||||
                          PA_SINK_DECIBEL_VOLUME|
 | 
			
		||||
                          (master->flags & (PA_SINK_LATENCY|PA_SINK_DYNAMIC_LATENCY)));
 | 
			
		||||
    pa_sink_new_data_done(&sink_data);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue