Blame SOURCES/alsa-ucm-git.patch

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