mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	mark a few more ALSA dB values as 'valid' for valgrind
This commit is contained in:
		
							parent
							
								
									0f7954a9f5
								
							
						
					
					
						commit
						bdfec1feba
					
				
					 2 changed files with 16 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -816,6 +816,10 @@ static int source_set_volume_cb(pa_source *s) {
 | 
			
		|||
                if ((err = snd_mixer_selem_get_capture_dB(u->mixer_elem, u->mixer_map[i], &alsa_vol)) < 0)
 | 
			
		||||
                    goto fail;
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
 | 
			
		||||
                VALGRIND_MAKE_MEM_DEFINED(&alsa_vol, sizeof(alsa_vol));
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
                r.values[i] = pa_sw_volume_from_dB((double) (alsa_vol - u->hw_dB_max) / 100.0);
 | 
			
		||||
 | 
			
		||||
            } else {
 | 
			
		||||
| 
						 | 
				
			
			@ -848,6 +852,10 @@ static int source_set_volume_cb(pa_source *s) {
 | 
			
		|||
            if ((err = snd_mixer_selem_get_capture_dB(u->mixer_elem, SND_MIXER_SCHN_MONO, &alsa_vol)) < 0)
 | 
			
		||||
                goto fail;
 | 
			
		||||
 | 
			
		||||
#ifdef HAVE_VALGRIND_MEMCHECK_H
 | 
			
		||||
            VALGRIND_MAKE_MEM_DEFINED(&alsa_vol, sizeof(alsa_vol));
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
            pa_cvolume_set(&r, s->volume.channels, pa_sw_volume_from_dB((double) (alsa_vol - u->hw_dB_max) / 100.0));
 | 
			
		||||
 | 
			
		||||
        } else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue