mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	add new introspection data field for sinks/sources: a flags field which specifies whether the sink/source supports hw volume control and latency querying
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@661 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									272ab200c2
								
							
						
					
					
						commit
						f6d95b7291
					
				
					 4 changed files with 26 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1232,6 +1232,7 @@ static void sink_fill_tagstruct(pa_tagstruct *t, pa_sink *sink) {
 | 
			
		|||
        PA_TAG_STRING, sink->monitor_source->name,
 | 
			
		||||
        PA_TAG_USEC, pa_sink_get_latency(sink),
 | 
			
		||||
        PA_TAG_STRING, sink->driver,
 | 
			
		||||
        PA_TAG_U32, (sink->get_hw_volume ? PA_SINK_HW_VOLUME_CTRL : 0) | (sink->get_latency ? PA_SINK_LATENCY : 0),
 | 
			
		||||
        PA_TAG_INVALID);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1251,6 +1252,7 @@ static void source_fill_tagstruct(pa_tagstruct *t, pa_source *source) {
 | 
			
		|||
        PA_TAG_STRING, source->monitor_of ? source->monitor_of->name : NULL,
 | 
			
		||||
        PA_TAG_USEC, pa_source_get_latency(source),
 | 
			
		||||
        PA_TAG_STRING, source->driver,
 | 
			
		||||
        PA_TAG_U32, (source->get_hw_volume ? PA_SOURCE_HW_VOLUME_CTRL : 0) | (source->get_latency ? PA_SOURCE_LATENCY : 0),
 | 
			
		||||
        PA_TAG_INVALID);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue