Blame SOURCES/alsa-ucm-conf.patch

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