From: Maciej Strozek <mstrozek@opensource.cirrus.com>
To: <perex@perex.cz>
Cc: <alsa-devel@alsa-project.org>, <patches@opensource.cirrus.com>,
"Maciej Strozek" <mstrozek@opensource.cirrus.com>
Subject: [PATCH alsa-ucm-conf v3 2/2] sof-soundwire: Add sequence for controlling Mic Mute LED
Date: Fri, 11 Oct 2024 11:57:10 +0100 [thread overview]
Message-ID: <20241011105710.1998823-2-mstrozek@opensource.cirrus.com> (raw)
In-Reply-To: <20241011105710.1998823-1-mstrozek@opensource.cirrus.com>
Also ensure the unused microphone is disabled so that currently used mic
can fully control the LED.
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
---
v3: Add Headset Microphone, ensure unused mic is disabled
v2: no changes
---
ucm2/codecs/cs42l43/init.conf | 7 +++++++
ucm2/sof-soundwire/cs42l43-dmic.conf | 2 ++
ucm2/sof-soundwire/cs42l43.conf | 1 +
3 files changed, 10 insertions(+)
diff --git a/ucm2/codecs/cs42l43/init.conf b/ucm2/codecs/cs42l43/init.conf
index b2796e2..c2f52ad 100644
--- a/ucm2/codecs/cs42l43/init.conf
+++ b/ucm2/codecs/cs42l43/init.conf
@@ -18,3 +18,10 @@ LibraryConfig.remap.Config {
}
}
}
+
+FixedBootSequence [
+ exec "-/sbin/modprobe snd_ctl_led"
+ sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 1 Switch"
+ sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 3 Switch"
+ sysw "-/class/sound/ctl-led/mic/card${CardNumber}/attach:cs42l43 Decimator 4 Switch"
+]
diff --git a/ucm2/sof-soundwire/cs42l43-dmic.conf b/ucm2/sof-soundwire/cs42l43-dmic.conf
index b68a70d..70ce40f 100644
--- a/ucm2/sof-soundwire/cs42l43-dmic.conf
+++ b/ucm2/sof-soundwire/cs42l43-dmic.conf
@@ -13,6 +13,8 @@ SectionDevice."Mic" {
]
DisableSequence [
+ cset "name='cs42l43 Decimator 3 Switch' 0"
+ cset "name='cs42l43 Decimator 4 Switch' 0"
cset "name='cs42l43 DP1TX1 Input' 'None'"
cset "name='cs42l43 DP1TX2 Input' 'None'"
]
diff --git a/ucm2/sof-soundwire/cs42l43.conf b/ucm2/sof-soundwire/cs42l43.conf
index 7e74fb8..af3fd03 100644
--- a/ucm2/sof-soundwire/cs42l43.conf
+++ b/ucm2/sof-soundwire/cs42l43.conf
@@ -33,6 +33,7 @@ SectionDevice."Headset" {
]
DisableSequence [
+ cset "name='cs42l43 Decimator 1 Switch' 0"
cset "name='cs42l43 DP1TX1 Input' 'None'"
cset "name='cs42l43 DP1TX2 Input' 'None'"
]
--
2.39.5
next prev parent reply other threads:[~2024-10-11 10:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 10:57 [PATCH alsa-ucm-conf v3 1/2] sof-soundwire: Change map control names to make them unique and user friendly Maciej Strozek
2024-10-11 10:57 ` Maciej Strozek [this message]
2024-10-14 9:53 ` Charles Keepax
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241011105710.1998823-2-mstrozek@opensource.cirrus.com \
--to=mstrozek@opensource.cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox