mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	conf/ucm: Add Gigabyte mobo UCM profile with dual HD-audio codecs
Like the previous Lenovo laptops, some Gigabyte mobos have dual HD-audio codecs and need to switch dynamically via UCM profile. Reuse the same profile as Lenovo dual codecs, so far. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									b7e56af82a
								
							
						
					
					
						commit
						d1e08d2db3
					
				
					 5 changed files with 156 additions and 0 deletions
				
			
		| 
						 | 
					@ -716,6 +716,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
 | 
				
			||||||
	  src/conf/ucm/DAISY-I2S/Makefile \
 | 
						  src/conf/ucm/DAISY-I2S/Makefile \
 | 
				
			||||||
	  src/conf/ucm/DB410c/Makefile \
 | 
						  src/conf/ucm/DB410c/Makefile \
 | 
				
			||||||
	  src/conf/ucm/GoogleNyan/Makefile \
 | 
						  src/conf/ucm/GoogleNyan/Makefile \
 | 
				
			||||||
 | 
						  src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \
 | 
				
			||||||
	  src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \
 | 
						  src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \
 | 
				
			||||||
	  src/conf/ucm/PandaBoard/Makefile \
 | 
						  src/conf/ucm/PandaBoard/Makefile \
 | 
				
			||||||
	  src/conf/ucm/PandaBoardES/Makefile \
 | 
						  src/conf/ucm/PandaBoardES/Makefile \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					Comment "Gigabyte mobo with dual HD-audio codecs"
 | 
				
			||||||
 | 
					SectionUseCase."HiFi" {
 | 
				
			||||||
 | 
						File "HiFi.conf"
 | 
				
			||||||
 | 
						Comment "Default"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										145
									
								
								src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/HiFi.conf
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										145
									
								
								src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/HiFi.conf
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,145 @@
 | 
				
			||||||
 | 
					SectionVerb {
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							TQ "HiFi"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Front Playback Volume' 100%"
 | 
				
			||||||
 | 
							cset "name='Front Playback Switch' on"
 | 
				
			||||||
 | 
							cset "name='Rear-Panel Capture Volume' 100%"
 | 
				
			||||||
 | 
							cset "name='Rear-Panel Capture Switch' on"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						DisableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Front Playback Volume' 0"
 | 
				
			||||||
 | 
							cset "name='Front Playback Switch' off"
 | 
				
			||||||
 | 
							cset "name='Rear-Panel Capture Volume' 0"
 | 
				
			||||||
 | 
							cset "name='Rear-Panel Capture Switch' off"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."Speaker" {
 | 
				
			||||||
 | 
						Comment "Speaker"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							PlaybackChannels "2"
 | 
				
			||||||
 | 
							PlaybackPCM "hw:PCH,4"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ConflictingDevice [
 | 
				
			||||||
 | 
							"Headphone"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Speaker Playback Switch' on"
 | 
				
			||||||
 | 
							cset "name='Speaker Playback Volume' 100%"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						DisableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Speaker Playback Volume' 0"
 | 
				
			||||||
 | 
							cset "name='Speaker Playback Switch' off"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."LineOut" {
 | 
				
			||||||
 | 
						Comment "Line Out"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							PlaybackChannels "2"
 | 
				
			||||||
 | 
							PlaybackPCM "hw:PCH,0"
 | 
				
			||||||
 | 
							JackControl "Line Out Jack"
 | 
				
			||||||
 | 
							JackHWMute "Speaker"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."Headphone" {
 | 
				
			||||||
 | 
						Comment "Headphone"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							PlaybackChannels "2"
 | 
				
			||||||
 | 
							PlaybackPCM "hw:PCH,4"
 | 
				
			||||||
 | 
							JackControl "Front Headphone Jack"
 | 
				
			||||||
 | 
							JackHWMute "Speaker"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ConflictingDevice [
 | 
				
			||||||
 | 
							"Speaker"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Headphone Playback Switch' on"
 | 
				
			||||||
 | 
							cset "name='Headphone Playback Volume' 100%"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						DisableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Headphone Playback Volume' 0"
 | 
				
			||||||
 | 
							cset "name='Headphone Playback Switch' off"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."LineIn" {
 | 
				
			||||||
 | 
						Comment "Rear Line In"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							CaptureChannels "2"
 | 
				
			||||||
 | 
							CapturePCM "hw:PCH,0"
 | 
				
			||||||
 | 
							JackControl "Line Jack"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ConflictingDevice [
 | 
				
			||||||
 | 
							"RearMic"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Input Source' Line"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."RearMic" {
 | 
				
			||||||
 | 
						Comment "Rear Microphone"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							CaptureChannels "2"
 | 
				
			||||||
 | 
							CapturePCM "hw:PCH,0"
 | 
				
			||||||
 | 
							# CapturePriority "150"
 | 
				
			||||||
 | 
							JackHWMute "LineIn"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ConflictingDevice [
 | 
				
			||||||
 | 
							"LineIn"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Input Source' Rear Mic"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					SectionDevice."FrontMic" {
 | 
				
			||||||
 | 
						Comment "Front Microphone"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						Value {
 | 
				
			||||||
 | 
							CaptureChannels "2"
 | 
				
			||||||
 | 
							CapturePCM "hw:PCH,4"
 | 
				
			||||||
 | 
							JackControl "Front Mic Jack"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						EnableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Front-Panel Capture Volume' 100%"
 | 
				
			||||||
 | 
							cset "name='Front-Panel Capture Switch' on"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						DisableSequence [
 | 
				
			||||||
 | 
							cdev "hw:PCH"
 | 
				
			||||||
 | 
							cset "name='Front-Panel Capture Volume' 0"
 | 
				
			||||||
 | 
							cset "name='Front-Panel Capture Switch' off"
 | 
				
			||||||
 | 
						]
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					alsaconfigdir = @ALSA_CONFIG_DIR@
 | 
				
			||||||
 | 
					ucmdir = $(alsaconfigdir)/ucm/HDAudio-Gigabyte-ALC1220DualCodecs
 | 
				
			||||||
 | 
					ucm_DATA = HDAudio-Gigabyte-ALC1220DualCodecs.conf HiFi.conf
 | 
				
			||||||
 | 
					EXTRA_DIST = $(ucm_DATA)
 | 
				
			||||||
| 
						 | 
					@ -6,6 +6,7 @@ chtrt5645 \
 | 
				
			||||||
DAISY-I2S \
 | 
					DAISY-I2S \
 | 
				
			||||||
DB410c \
 | 
					DB410c \
 | 
				
			||||||
GoogleNyan \
 | 
					GoogleNyan \
 | 
				
			||||||
 | 
					HDAudio-Gigabyte-ALC1220DualCodecs \
 | 
				
			||||||
HDAudio-Lenovo-DualCodecs \
 | 
					HDAudio-Lenovo-DualCodecs \
 | 
				
			||||||
PandaBoard \
 | 
					PandaBoard \
 | 
				
			||||||
PandaBoardES \
 | 
					PandaBoardES \
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue