mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa-mixer: Add support for HP Thunderbolt Dock
The HP Thunderbolt Dock [1] has two separate USB cards, a headset jack and an optional module which is a speakerphone. This patch adds new description for them, and mark the intended-roles as phone for the speakerphone module. [1] https://store.hp.com/us/en/pdp/hp-thunderbolt-dock-120w-g2-with-audio
This commit is contained in:
		
							parent
							
								
									69ba5a2b58
								
							
						
					
					
						commit
						05c373d939
					
				
					 5 changed files with 70 additions and 1 deletions
				
			
		| 
						 | 
					@ -1367,7 +1367,9 @@ dist_alsaprofilesets_DATA = \
 | 
				
			||||||
		modules/alsa/mixer/profile-sets/steelseries-arctis-common-usb-audio.conf \
 | 
							modules/alsa/mixer/profile-sets/steelseries-arctis-common-usb-audio.conf \
 | 
				
			||||||
		modules/alsa/mixer/profile-sets/usb-gaming-headset.conf \
 | 
							modules/alsa/mixer/profile-sets/usb-gaming-headset.conf \
 | 
				
			||||||
		modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf \
 | 
							modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf \
 | 
				
			||||||
		modules/alsa/mixer/profile-sets/cmedia-high-speed-true-hdaudio.conf
 | 
							modules/alsa/mixer/profile-sets/cmedia-high-speed-true-hdaudio.conf \
 | 
				
			||||||
 | 
							modules/alsa/mixer/profile-sets/hp-tbt-dock-120w-g2.conf \
 | 
				
			||||||
 | 
							modules/alsa/mixer/profile-sets/hp-tbt-dock-audio-module.conf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if HAVE_UDEV
 | 
					if HAVE_UDEV
 | 
				
			||||||
dist_udevrules_DATA = \
 | 
					dist_udevrules_DATA = \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -111,6 +111,8 @@ ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinec
 | 
				
			||||||
ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
 | 
					ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
 | 
				
			||||||
ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
 | 
					ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
 | 
				
			||||||
ATTRS{idVendor}=="08bb", ATTRS{idProduct}=="2902", ENV{PULSE_PROFILE_SET}="behringer-umc22.conf"
 | 
					ATTRS{idVendor}=="08bb", ATTRS{idProduct}=="2902", ENV{PULSE_PROFILE_SET}="behringer-umc22.conf"
 | 
				
			||||||
 | 
					ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0269", ENV{PULSE_PROFILE_SET}="hp-tbt-dock-120w-g2.conf"
 | 
				
			||||||
 | 
					ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0567", ENV{PULSE_PROFILE_SET}="hp-tbt-dock-audio-module.conf"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ID 1038:12ad is for the 2018 refresh of the Arctis 7.
 | 
					# ID 1038:12ad is for the 2018 refresh of the Arctis 7.
 | 
				
			||||||
# ID 1038:1294 is for Arctis Pro Wireless (which works with the Arctis 7 configuration).
 | 
					# ID 1038:1294 is for Arctis Pro Wireless (which works with the Arctis 7 configuration).
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -4404,6 +4404,8 @@ static int mapping_verify(pa_alsa_mapping *m, const pa_channel_map *bonus) {
 | 
				
			||||||
         * multichannel-input and multichannel-output. */
 | 
					         * multichannel-input and multichannel-output. */
 | 
				
			||||||
        { "analog-stereo-input",    N_("Analog Stereo") },
 | 
					        { "analog-stereo-input",    N_("Analog Stereo") },
 | 
				
			||||||
        { "analog-stereo-output",   N_("Analog Stereo") },
 | 
					        { "analog-stereo-output",   N_("Analog Stereo") },
 | 
				
			||||||
 | 
					        { "analog-stereo-headset",  N_("Headset") },
 | 
				
			||||||
 | 
					        { "analog-stereo-speakerphone",  N_("Speakerphone") },
 | 
				
			||||||
        { "multichannel-input",     N_("Multichannel") },
 | 
					        { "multichannel-input",     N_("Multichannel") },
 | 
				
			||||||
        { "multichannel-output",    N_("Multichannel") },
 | 
					        { "multichannel-output",    N_("Multichannel") },
 | 
				
			||||||
        { "analog-surround-21",     N_("Analog Surround 2.1") },
 | 
					        { "analog-surround-21",     N_("Analog Surround 2.1") },
 | 
				
			||||||
| 
						 | 
					@ -4560,6 +4562,8 @@ static int profile_verify(pa_alsa_profile *p) {
 | 
				
			||||||
    static const struct description_map well_known_descriptions[] = {
 | 
					    static const struct description_map well_known_descriptions[] = {
 | 
				
			||||||
        { "output:analog-mono+input:analog-mono",     N_("Analog Mono Duplex") },
 | 
					        { "output:analog-mono+input:analog-mono",     N_("Analog Mono Duplex") },
 | 
				
			||||||
        { "output:analog-stereo+input:analog-stereo", N_("Analog Stereo Duplex") },
 | 
					        { "output:analog-stereo+input:analog-stereo", N_("Analog Stereo Duplex") },
 | 
				
			||||||
 | 
					        { "output:analog-stereo-headset+input:analog-stereo-headset", N_("Headset") },
 | 
				
			||||||
 | 
					        { "output:analog-stereo-speakerphone+input:analog-stereo-speakerphone", N_("Speakerphone") },
 | 
				
			||||||
        { "output:iec958-stereo+input:iec958-stereo", N_("Digital Stereo Duplex (IEC958)") },
 | 
					        { "output:iec958-stereo+input:iec958-stereo", N_("Digital Stereo Duplex (IEC958)") },
 | 
				
			||||||
        { "output:multichannel-output+input:multichannel-input", N_("Multichannel Duplex") },
 | 
					        { "output:multichannel-output+input:multichannel-input", N_("Multichannel Duplex") },
 | 
				
			||||||
        { "output:unknown-stereo+input:unknown-stereo", N_("Stereo Duplex") },
 | 
					        { "output:unknown-stereo+input:unknown-stereo", N_("Stereo Duplex") },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										30
									
								
								src/modules/alsa/mixer/profile-sets/hp-tbt-dock-120w-g2.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								src/modules/alsa/mixer/profile-sets/hp-tbt-dock-120w-g2.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,30 @@
 | 
				
			||||||
 | 
					# 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, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; HP Thunderbolt Dock Audio Headset
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					; This card has one stereo input and one stereo output.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[General]
 | 
				
			||||||
 | 
					auto-profiles = no
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Mapping analog-stereo-headset]
 | 
				
			||||||
 | 
					device-strings = hw:%f,0,0
 | 
				
			||||||
 | 
					channel-map = left,right
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Profile output:analog-stereo-headset+input:analog-stereo-headset]
 | 
				
			||||||
 | 
					output-mappings = analog-stereo-headset
 | 
				
			||||||
 | 
					input-mappings = analog-stereo-headset
 | 
				
			||||||
 | 
					skip-probe = yes
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,31 @@
 | 
				
			||||||
 | 
					# 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, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					; HP Thunderbolt Dock Audio Module
 | 
				
			||||||
 | 
					;
 | 
				
			||||||
 | 
					; This card has one stereo input and one stereo output.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[General]
 | 
				
			||||||
 | 
					auto-profiles = no
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Mapping analog-stereo-speakerphone]
 | 
				
			||||||
 | 
					device-strings = hw:%f,0,0
 | 
				
			||||||
 | 
					channel-map = left,right
 | 
				
			||||||
 | 
					intended-roles = phone
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[Profile output:analog-stereo-speakerphone+input:analog-stereo-speakerphone]
 | 
				
			||||||
 | 
					output-mappings = analog-stereo-speakerphone
 | 
				
			||||||
 | 
					input-mappings = analog-stereo-speakerphone
 | 
				
			||||||
 | 
					skip-probe = yes
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue