Blame SOURCES/alsa-ucm-git.patch

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