From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: Regex question
Date: Tue, 27 May 2025 09:58:07 +0200 (CEST) [thread overview]
Message-ID: <1843535080e42c00-webhooks-bot@alsa-project.org> (raw)
In-Reply-To: <1843535080d02c00-webhooks-bot@alsa-project.org>
alsa-project/alsa-ucm-conf issue #567 was opened from shumingfan:
We have an Intel platform machine that equips the rt722 multi-codecs and rt1320 amplifier.
This machine driver will use the amp of rt722 and rt1320 both.
Therefore, the component string is shown below.
`Components : 'HDA:8086281d,80860101,00100000 cfg-amp:2 hs:rt722 spk:rt722 spk:rt1320'`
I tried to modify the regular expression to capture substrings to SpeakerCodec1 and SpeakerCodec2 variables.
However, I can't get SpeakerCodec2="rt1320", even though I changed the regular expression to
```
SpeakerCodec {
Regex " spk:(rt722)| spk:(rt1320)"
String "${CardComponents}"
}
```
The variable SpeakerCodec2 is still an empty string.
What do I miss?
Issue URL : https://github.com/alsa-project/alsa-ucm-conf/issues/567
Repository URL: https://github.com/alsa-project/alsa-ucm-conf
parent reply other threads:[~2025-05-27 7:58 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1843535080d02c00-webhooks-bot@alsa-project.org>]
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=1843535080e42c00-webhooks-bot@alsa-project.org \
--to=github@alsa-project.org \
--cc=alsa-devel@alsa-project.org \
/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