mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa: cover "Internal Mic" elements
https://bugzilla.redhat.com/show_bug.cgi?id=562216
This commit is contained in:
		
							parent
							
								
									7d6bab0d00
								
							
						
					
					
						commit
						0c836aacd8
					
				
					 9 changed files with 98 additions and 0 deletions
				
			
		| 
						 | 
					@ -32,6 +32,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										67
									
								
								src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,67 @@
 | 
				
			||||||
 | 
					# 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.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; For devices where a 'Internal Mic' element exists
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					; See analog-output.conf.common for an explanation on the directives
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[General]
 | 
				
			||||||
 | 
					priority = 90
 | 
				
			||||||
 | 
					name = analog-input-microphone
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Capture]
 | 
				
			||||||
 | 
					switch = mute
 | 
				
			||||||
 | 
					volume = merge
 | 
				
			||||||
 | 
					override-map.1 = all
 | 
				
			||||||
 | 
					override-map.2 = all-left,all-right
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					required = any
 | 
				
			||||||
 | 
					switch = mute
 | 
				
			||||||
 | 
					volume = merge
 | 
				
			||||||
 | 
					override-map.1 = all
 | 
				
			||||||
 | 
					override-map.2 = all-left,all-right
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Line]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Aux]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Video]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Mic/Line]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element TV Tuner]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element FM]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.include analog-input.conf.common
 | 
				
			||||||
 | 
					.include analog-input-mic.conf.common
 | 
				
			||||||
| 
						 | 
					@ -31,6 +31,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
required = any
 | 
					required = any
 | 
				
			||||||
switch = mute
 | 
					switch = mute
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,6 +35,10 @@ volume = merge
 | 
				
			||||||
override-map.1 = all
 | 
					override-map.1 = all
 | 
				
			||||||
override-map.2 = all-left,all-right
 | 
					override-map.2 = all-left,all-right
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,6 +31,10 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					switch = off
 | 
				
			||||||
 | 
					volume = off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
switch = off
 | 
					switch = off
 | 
				
			||||||
volume = off
 | 
					volume = off
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,9 @@ override-map.2 = all-left,all-right
 | 
				
			||||||
[Element Mic]
 | 
					[Element Mic]
 | 
				
			||||||
required-absent = any
 | 
					required-absent = any
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Element Internal Mic]
 | 
				
			||||||
 | 
					required-absent = any
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[Element Line]
 | 
					[Element Line]
 | 
				
			||||||
required-absent = any
 | 
					required-absent = any
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue