mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	check for $PULSE_INTERNAL before enabling padsp
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2321 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									18ad6f845e
								
							
						
					
					
						commit
						4f99c431d0
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
					@ -302,7 +302,6 @@ static int padsp_disabled(void) {
 | 
				
			||||||
    if (!sym_resolved) {
 | 
					    if (!sym_resolved) {
 | 
				
			||||||
        sym = (int*) dlsym(RTLD_DEFAULT, "__padsp_disabled__");
 | 
					        sym = (int*) dlsym(RTLD_DEFAULT, "__padsp_disabled__");
 | 
				
			||||||
        sym_resolved = 1;
 | 
					        sym_resolved = 1;
 | 
				
			||||||
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    pthread_mutex_unlock(&func_mutex);
 | 
					    pthread_mutex_unlock(&func_mutex);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -316,7 +315,7 @@ static int dsp_cloak_enable(void) {
 | 
				
			||||||
    if (padsp_disabled() & 1)
 | 
					    if (padsp_disabled() & 1)
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (getenv("PADSP_NO_DSP"))
 | 
					    if (getenv("PADSP_NO_DSP") || getenv("PULSE_INTERNAL"))
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 1;
 | 
					    return 1;
 | 
				
			||||||
| 
						 | 
					@ -326,7 +325,7 @@ static int sndstat_cloak_enable(void) {
 | 
				
			||||||
    if (padsp_disabled() & 2)
 | 
					    if (padsp_disabled() & 2)
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (getenv("PADSP_NO_SNDSTAT"))
 | 
					    if (getenv("PADSP_NO_SNDSTAT") || getenv("PULSE_INTERNAL"))
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 1;
 | 
					    return 1;
 | 
				
			||||||
| 
						 | 
					@ -336,7 +335,7 @@ static int mixer_cloak_enable(void) {
 | 
				
			||||||
    if (padsp_disabled() & 4)
 | 
					    if (padsp_disabled() & 4)
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (getenv("PADSP_NO_MIXER"))
 | 
					    if (getenv("PADSP_NO_MIXER") || getenv("PULSE_INTERNAL"))
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 1;
 | 
					    return 1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue