Blame SOURCES/alsa-ucm-conf.patch

1e947c
From 0b2aa9d22f8897cbe68f1aa2ffe437ad3194ec4b Mon Sep 17 00:00:00 2001
1e947c
From: Jaroslav Kysela <perex@perex.cz>
1e947c
Date: Mon, 27 Dec 2021 22:05:16 +0100
1e947c
Subject: [PATCH 1/4] HDA-DualCodecs: fix typo in Speaker condition
1e947c
1e947c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1e947c
---
1e947c
 ucm2/HDA/DualCodecs/HiFi.conf | 4 ++--
1e947c
 1 file changed, 2 insertions(+), 2 deletions(-)
1e947c
1e947c
diff --git a/ucm2/HDA/DualCodecs/HiFi.conf b/ucm2/HDA/DualCodecs/HiFi.conf
1e947c
index 7dcd6b0..1f7e58d 100644
1e947c
--- a/ucm2/HDA/DualCodecs/HiFi.conf
1e947c
+++ b/ucm2/HDA/DualCodecs/HiFi.conf
1e947c
@@ -19,7 +19,7 @@ SectionVerb {
1e947c
 If.speaker {
1e947c
 	Condition {
1e947c
 		Type ControlExists
1e947c
-		Control "name='Speaker Volume Switch'"
1e947c
+		Control "name='Speaker Playback Switch'"
1e947c
 	}
1e947c
 	True {
1e947c
 		SectionVerb {
1e947c
@@ -100,7 +100,7 @@ SectionDevice."Headphones" {
1e947c
 	If.speaker {
1e947c
 		Condition {
1e947c
 			Type ControlExists
1e947c
-			Control "name='Speaker Volume Switch'"
1e947c
+			Control "name='Speaker Playback Switch'"
1e947c
 		}
1e947c
 		True.Value.JackHWMute "Speaker"
1e947c
 	}
1e947c
-- 
1e947c
2.34.1
1e947c
1e947c
1e947c
From 369f8b497e15a993d411df81a39ee5c8c1433363 Mon Sep 17 00:00:00 2001
1e947c
From: Jaroslav Kysela <perex@perex.cz>
1e947c
Date: Fri, 7 Jan 2022 10:57:48 +0100
1e947c
Subject: [PATCH 2/4] HDA-acp: avoid to create 'Mic ACP LED' control for the
1e947c
 HDMI card
1e947c
1e947c
BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1849#note_1210933
1e947c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1e947c
---
1e947c
 ucm2/HDA/HDA.conf | 20 ++++++++++++++------
1e947c
 1 file changed, 14 insertions(+), 6 deletions(-)
1e947c
1e947c
diff --git a/ucm2/HDA/HDA.conf b/ucm2/HDA/HDA.conf
1e947c
index 003d941..ab80fa5 100644
1e947c
--- a/ucm2/HDA/HDA.conf
1e947c
+++ b/ucm2/HDA/HDA.conf
1e947c
@@ -43,13 +43,21 @@ If.use {
1e947c
 			Comment "Play HiFi quality Music"
1e947c
 		}
1e947c
 
1e947c
-		Include.init.File "/HDA/init.conf"
1e947c
+		If.analog {
1e947c
+			Condition {
1e947c
+				Type ControlExists
1e947c
+				Control "name='Master Playback Switch'"
1e947c
+			}
1e947c
+			True {
1e947c
+				Include.init.File "/HDA/init.conf"
1e947c
 
1e947c
-		FixedBootSequence [
1e947c
-			cset-new "name='Mic ACP LED Capture Switch' type=bool,count=1 off"
1e947c
-			exec "-/sbin/modprobe snd_ctl_led"
1e947c
-			sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
1e947c
-		]
1e947c
+				FixedBootSequence [
1e947c
+					cset-new "name='Mic ACP LED Capture Switch' type=bool,count=1 off"
1e947c
+					exec "-/sbin/modprobe snd_ctl_led"
1e947c
+					sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:Mic ACP LED Capture Switch"
1e947c
+				]
1e947c
+			}
1e947c
+		}
1e947c
 	}
1e947c
 }
1e947c
 
1e947c
-- 
1e947c
2.34.1
1e947c
1e947c
1e947c
From 642db9b51ff7f8ad022fee0362871ceaa46599bf Mon Sep 17 00:00:00 2001
1e947c
From: Jaroslav Kysela <perex@perex.cz>
1e947c
Date: Thu, 27 Jan 2022 21:50:32 +0100
1e947c
Subject: [PATCH 3/4] acp6x: add initial support for AMD Yellow Carp - ACP6x
1e947c
1e947c
Link: https://github.com/alsa-project/alsa-ucm-conf/issues/136
1e947c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1e947c
---
1e947c
 ucm2/HDA/HDA.conf            | 2 +-
1e947c
 ucm2/conf.d/acp6x/acp6x.conf | 1 +
1e947c
 2 files changed, 2 insertions(+), 1 deletion(-)
1e947c
 create mode 120000 ucm2/conf.d/acp6x/acp6x.conf
1e947c
1e947c
diff --git a/ucm2/HDA/HDA.conf b/ucm2/HDA/HDA.conf
1e947c
index ab80fa5..411f2e7 100644
1e947c
--- a/ucm2/HDA/HDA.conf
1e947c
+++ b/ucm2/HDA/HDA.conf
1e947c
@@ -3,7 +3,7 @@ Syntax 4
1e947c
 Define.Use ""	# a non-empty string to use UCM configuration for HDA devices
1e947c
 Define.Done ""	# a non-empty string to skip the end error
1e947c
 
1e947c
-Define.AcpCardId "$${find-card:field=name,return=id,regex='^acp$'}"
1e947c
+Define.AcpCardId "$${find-card:field=name,return=id,regex='^(acp|acp6x)$'}"
1e947c
 Define.DeviceMic "Mic"
1e947c
 
1e947c
 If.dualcodec {
1e947c
diff --git a/ucm2/conf.d/acp6x/acp6x.conf b/ucm2/conf.d/acp6x/acp6x.conf
1e947c
new file mode 120000
1e947c
index 0000000..7298c24
1e947c
--- /dev/null
1e947c
+++ b/ucm2/conf.d/acp6x/acp6x.conf
1e947c
@@ -0,0 +1 @@
1e947c
+../../common/linked-card.conf
1e947c
\ No newline at end of file
1e947c
-- 
1e947c
2.34.1
1e947c
1e947c
1e947c
From 8170fffa7bad33c67b7c59ef5d98d92c0c742e91 Mon Sep 17 00:00:00 2001
1e947c
From: Jaroslav Kysela <perex@perex.cz>
1e947c
Date: Wed, 9 Feb 2022 16:19:31 +0100
1e947c
Subject: [PATCH 4/4] sof-hda-dsp: fix multiple If.dmic blocks
1e947c
MIME-Version: 1.0
1e947c
Content-Type: text/plain; charset=UTF-8
1e947c
Content-Transfer-Encoding: 8bit
1e947c
1e947c
Fix multiple If.dmic blocks - rename the first to devdmic
1e947c
initialization.
1e947c
1e947c
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/132
1e947c
Reported-by: Kacper Michajłow <kasper93@gmail.com>
1e947c
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1e947c
---
1e947c
 ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf | 2 +-
1e947c
 1 file changed, 1 insertion(+), 1 deletion(-)
1e947c
1e947c
diff --git a/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf b/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf
1e947c
index b47777b..eb243d1 100644
1e947c
--- a/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf
1e947c
+++ b/ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf
1e947c
@@ -3,7 +3,7 @@ Syntax 4
1e947c
 Define.DeviceMic "Mic"
1e947c
 Define.DeviceDmic ""
1e947c
 
1e947c
-If.dmic {
1e947c
+If.devdmic {
1e947c
 	Condition {
1e947c
 		Type String
1e947c
 		Haystack "${CardComponents}"
1e947c
-- 
1e947c
2.34.1
1e947c