mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: Take syncronized HW volume infra into use for alsa-sink
Signed-off-by: Jyri Sarha <jyri.sarha@nokia.com> Reviewed-by: Tanu Kaskinen <tanu.kaskinen@digia.com> Reviewd-by: Colin Guthrie <cguthrie@mandriva.org>
This commit is contained in:
		
							parent
							
								
									5391daf8df
								
							
						
					
					
						commit
						1bea955829
					
				
					 6 changed files with 246 additions and 25 deletions
				
			
		| 
						 | 
				
			
			@ -1108,7 +1108,7 @@ static void source_set_volume_cb(pa_source *s) {
 | 
			
		|||
    /* Shift up by the base volume */
 | 
			
		||||
    pa_sw_cvolume_divide_scalar(&r, &s->volume, s->base_volume);
 | 
			
		||||
 | 
			
		||||
    if (pa_alsa_path_set_volume(u->mixer_path, u->mixer_handle, &s->channel_map, &r) < 0)
 | 
			
		||||
    if (pa_alsa_path_set_volume(u->mixer_path, u->mixer_handle, &s->channel_map, &r, TRUE) < 0)
 | 
			
		||||
        return;
 | 
			
		||||
 | 
			
		||||
    /* Shift down by the base volume, so that 0dB becomes maximum volume */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue