mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: cover Headphone2 mixer element
As seen on some drivers: https://bugzilla.redhat.com/show_bug.cgi?id=498612
This commit is contained in:
		
							parent
							
								
									430e8e2ee5
								
							
						
					
					
						commit
						220ac0a61a
					
				
					 4 changed files with 86 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -143,6 +143,7 @@ EXTRA_DIST = \
 | 
			
		|||
		modules/alsa/mixer/paths/analog-output.conf \
 | 
			
		||||
		modules/alsa/mixer/paths/analog-output.conf.common \
 | 
			
		||||
		modules/alsa/mixer/paths/analog-output-headphones.conf \
 | 
			
		||||
		modules/alsa/mixer/paths/analog-output-headphones-2.conf \
 | 
			
		||||
		modules/alsa/mixer/paths/analog-output-lfe-on-mono.conf \
 | 
			
		||||
		modules/alsa/mixer/paths/analog-output-mono.conf
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										79
									
								
								src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								src/modules/alsa/mixer/paths/analog-output-headphones-2.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,79 @@
 | 
			
		|||
# This file is part of PulseAudio.
 | 
			
		||||
#
 | 
			
		||||
# PulseAudio is free software; you can redistribute it and/or modify
 | 
			
		||||
# it under the terms of the GNU Lesser General Public License as
 | 
			
		||||
# published by the Free Software Foundation; either version 2.1 of the
 | 
			
		||||
# License, or (at your option) any later version.
 | 
			
		||||
#
 | 
			
		||||
# PulseAudio is distributed in the hope that it will be useful, but
 | 
			
		||||
# WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 | 
			
		||||
# General Public License for more details.
 | 
			
		||||
#
 | 
			
		||||
# You should have received a copy of the GNU Lesser General Public License
 | 
			
		||||
# along with PulseAudio; if not, write to the Free Software Foundation,
 | 
			
		||||
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 | 
			
		||||
 | 
			
		||||
; Path for mixers that have a 'Headphone2' control
 | 
			
		||||
;
 | 
			
		||||
; See analog-output.conf.common for an explanation on the directives
 | 
			
		||||
 | 
			
		||||
[General]
 | 
			
		||||
priority = 90
 | 
			
		||||
 | 
			
		||||
[Element Hardware Master]
 | 
			
		||||
switch = mute
 | 
			
		||||
volume = merge
 | 
			
		||||
override-map.1 = all
 | 
			
		||||
override-map.2 = all-left,all-right
 | 
			
		||||
 | 
			
		||||
[Element Master]
 | 
			
		||||
switch = mute
 | 
			
		||||
volume = merge
 | 
			
		||||
override-map.1 = all
 | 
			
		||||
override-map.2 = all-left,all-right
 | 
			
		||||
 | 
			
		||||
[Element Master Mono]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Headphone]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Headphone2]
 | 
			
		||||
required = any
 | 
			
		||||
switch = mute
 | 
			
		||||
volume = merge
 | 
			
		||||
override-map.1 = all
 | 
			
		||||
override-map.2 = all-left,all-right
 | 
			
		||||
 | 
			
		||||
[Element Speaker]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Front]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Rear]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Surround]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Side]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Center]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element LFE]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
.include analog-output.conf.common
 | 
			
		||||
| 
						 | 
				
			
			@ -44,6 +44,10 @@ volume = merge
 | 
			
		|||
override-map.1 = all
 | 
			
		||||
override-map.2 = all-left,all-right
 | 
			
		||||
 | 
			
		||||
[Element Headphone2]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
 | 
			
		||||
[Element Speaker]
 | 
			
		||||
switch = off
 | 
			
		||||
volume = off
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,14 +62,14 @@ auto-profiles = yes
 | 
			
		|||
[Mapping analog-mono]
 | 
			
		||||
device-strings = hw:%f
 | 
			
		||||
channel-map = mono
 | 
			
		||||
paths-output = analog-output analog-output-headphones analog-output-mono analog-output-lfe-on-mono
 | 
			
		||||
paths-output = analog-output analog-output-headphones analog-output-headphones-2 analog-output-mono analog-output-lfe-on-mono
 | 
			
		||||
paths-input = analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line
 | 
			
		||||
priority = 1
 | 
			
		||||
 | 
			
		||||
[Mapping analog-stereo]
 | 
			
		||||
device-strings = front:%f hw:%f
 | 
			
		||||
channel-map = left,right
 | 
			
		||||
paths-output = analog-output analog-output-headphones analog-output-mono analog-output-lfe-on-mono
 | 
			
		||||
paths-output = analog-output analog-output-headphones analog-output-headphones-2 analog-output-mono analog-output-lfe-on-mono
 | 
			
		||||
paths-input = analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line
 | 
			
		||||
priority = 10
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue