]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: move HDAudio-*DualCodecs configs to the right card name directory
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 Nov 2019 07:20:37 +0000 (08:20 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 Nov 2019 07:37:18 +0000 (08:37 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf [new file with mode: 0644]
ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf [new symlink]
ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf [new symlink]
ucm2/HDA Intel PCH/HiFi-dual.conf [moved from ucm2/HDAudio-Lenovo-DualCodecs/HiFi.conf with 93% similarity]
ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HDAudio-Gigabyte-ALC1220DualCodecs.conf [deleted file]
ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HiFi.conf [deleted file]
ucm2/HDAudio-Lenovo-DualCodecs/HDAudio-Lenovo-DualCodecs.conf [deleted file]

diff --git a/ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-DualCodecs.conf
new file mode 100644 (file)
index 0000000..8aaabd0
--- /dev/null
@@ -0,0 +1,6 @@
+Syntax 2
+Comment "HDAudio with dual HD-audio codecs"
+SectionUseCase."HiFi" {
+       File "HiFi-dual.conf"
+       Comment "Default"
+}
diff --git a/ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-Gigabyte-ALC1220DualCodecs.conf
new file mode 120000 (symlink)
index 0000000..89801aa
--- /dev/null
@@ -0,0 +1 @@
+HDAudio-DualCodecs.conf
\ No newline at end of file
diff --git a/ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf b/ucm2/HDA Intel PCH/HDAudio-Lenovo-DualCodecs.conf
new file mode 120000 (symlink)
index 0000000..89801aa
--- /dev/null
@@ -0,0 +1 @@
+HDAudio-DualCodecs.conf
\ No newline at end of file
similarity index 93%
rename from ucm2/HDAudio-Lenovo-DualCodecs/HiFi.conf
rename to ucm2/HDA Intel PCH/HiFi-dual.conf
index 364f9a6ab85b915dce560e75d05c4c5bb7428aef..47c1583ee128ef68781bebffe06b38f5d37b221a 100644 (file)
@@ -92,7 +92,15 @@ SectionDevice."LineIn" {
 
        EnableSequence [
                cset "name='Input Source' Line"
-               cset "name='Line Boost Volume' 3"
+               If.0 {
+                       Condition {
+                               Type ControlExists
+                               Control "name='Line Boost Volume'"
+                       }
+                       True {
+                               cset "name='Line Boost Volume' 3"
+                       }
+               }
        ]
 }
 
diff --git a/ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HDAudio-Gigabyte-ALC1220DualCodecs.conf b/ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HDAudio-Gigabyte-ALC1220DualCodecs.conf
deleted file mode 100644 (file)
index d406f8f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Syntax 2
-Comment "Gigabyte mobo with dual HD-audio codecs"
-SectionUseCase."HiFi" {
-       File "HiFi.conf"
-       Comment "Default"
-}
diff --git a/ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HiFi.conf b/ucm2/HDAudio-Gigabyte-ALC1220DualCodecs/HiFi.conf
deleted file mode 100644 (file)
index e4347b5..0000000
+++ /dev/null
@@ -1,135 +0,0 @@
-SectionVerb {
-       Value {
-               TQ "HiFi"
-       }
-
-       EnableSequence [
-               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 [
-               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 [
-               cset "name='Speaker Playback Switch' on"
-               cset "name='Speaker Playback Volume' 100%"
-       ]
-
-       DisableSequence [
-               cset "name='Speaker Playback Volume' 0"
-               cset "name='Speaker Playback Switch' off"
-       ]
-}
-
-SectionDevice."LineOut" {
-       Comment "Line Out"
-
-       Value {
-               PlaybackChannels "2"
-               PlaybackPCM "hw:${CardId},0"
-               JackControl "Line Out Jack"
-               JackHWMute "Speaker"
-       }
-}
-
-SectionDevice."Headphone" {
-       Comment "Headphone"
-
-       Value {
-               PlaybackChannels "2"
-               PlaybackPCM "hw:${CardId},4"
-               JackControl "Front Headphone Jack"
-               JackHWMute "Speaker"
-       }
-
-       ConflictingDevice [
-               "Speaker"
-       ]
-
-       EnableSequence [
-               cset "name='Headphone Playback Switch' on"
-               cset "name='Headphone Playback Volume' 100%"
-       ]
-
-       DisableSequence [
-               cset "name='Headphone Playback Volume' 0"
-               cset "name='Headphone Playback Switch' off"
-       ]
-}
-
-SectionDevice."LineIn" {
-       Comment "Rear Line In"
-
-       Value {
-               CaptureChannels "2"
-               CapturePCM "hw:${CardId},0"
-               JackControl "Line Jack"
-       }
-
-       ConflictingDevice [
-               "RearMic"
-       ]
-
-       EnableSequence [
-               cset "name='Input Source' Line"
-       ]
-}
-
-SectionDevice."RearMic" {
-       Comment "Rear Microphone"
-
-       Value {
-               CaptureChannels "2"
-               CapturePCM "hw:${CardId},0"
-               # CapturePriority "150"
-               JackHWMute "LineIn"
-       }
-
-       ConflictingDevice [
-               "LineIn"
-       ]
-
-       EnableSequence [
-               cset "name='Input Source' Rear Mic"
-       ]
-}
-
-SectionDevice."FrontMic" {
-       Comment "Front Microphone"
-
-       Value {
-               CaptureChannels "2"
-               CapturePCM "hw:${CardId},4"
-               JackControl "Front Mic Jack"
-       }
-
-       EnableSequence [
-               cset "name='Front-Panel Capture Volume' 100%"
-               cset "name='Front-Panel Capture Switch' on"
-       ]
-
-       DisableSequence [
-               cset "name='Front-Panel Capture Volume' 0"
-               cset "name='Front-Panel Capture Switch' off"
-       ]
-}
diff --git a/ucm2/HDAudio-Lenovo-DualCodecs/HDAudio-Lenovo-DualCodecs.conf b/ucm2/HDAudio-Lenovo-DualCodecs/HDAudio-Lenovo-DualCodecs.conf
deleted file mode 100644 (file)
index f5c1ef1..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-Syntax 2
-Comment "Lenovo laptop with dual HD-audio codecs"
-SectionUseCase."HiFi" {
-       File "HiFi.conf"
-       Comment "Default"
-}