mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa-mixer: autodetect the HDMI jack PCM device
This removes the need to hardcode the PCM device index in the HDMI jack names. The hardcoded values don't work with the Intel HDMI LPE driver. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=100488
This commit is contained in:
		
							parent
							
								
									09ff3fca2f
								
							
						
					
					
						commit
						67f11ff301
					
				
					 13 changed files with 73 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -1922,7 +1922,7 @@ static void find_mixer(struct userdata *u, pa_alsa_mapping *mapping, const char
 | 
			
		|||
        if (!(u->mixer_path = pa_alsa_path_synthesize(element, PA_ALSA_DIRECTION_OUTPUT)))
 | 
			
		||||
            goto fail;
 | 
			
		||||
 | 
			
		||||
        if (pa_alsa_path_probe(u->mixer_path, u->mixer_handle, ignore_dB) < 0)
 | 
			
		||||
        if (pa_alsa_path_probe(u->mixer_path, NULL, u->mixer_handle, ignore_dB) < 0)
 | 
			
		||||
            goto fail;
 | 
			
		||||
 | 
			
		||||
        pa_log_debug("Probed mixer path %s:", u->mixer_path->name);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue