Blame SOURCES/alsa-ucm-git.patch

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