From: GitHub issues - opened <github@alsa-project.org>
To: alsa-devel@alsa-project.org
Subject: UCM Path condition type does not support variables as file path
Date: Wed, 24 Apr 2024 12:06:16 +0200 (CEST) [thread overview]
Message-ID: <20240424100616.ADB9CF80423@alsa1.perex.cz> (raw)
In-Reply-To: <1713953171087199926-webhooks-bot@alsa-project.org>
alsa-project/alsa-lib issue #395 was opened from singalsu:
To control audio processing in SOF I want to do do this:
```
Define.SpeakerIirBlob "${ConfTopDir}/sof/ipc4/eq_iir/highpass_100hz_0db_48khz.blob"
Define.SpeakerFirBlob "${ConfTopDir}/sof/ipc4/eq_fir/pass.blob"
Define.SpeakerDrcBlob "${ConfTopDir}/sof/ipc4/drc/spk_default.blob"
Define.HeadphoneIirBlob "${ConfTopDir}/sof/ipc4/eq_iir/pass.blob"
Define.HeadphoneFirBlob "${ConfTopDir}/sof/ipc4/eq_fir/pass.blob"
Define.ProductConfigSOF "/sof/product_configs/${CardLongName}.conf"
Define.FullPathToIt "${ConfTopDir}${var:ProductConfigSOF}"
If.HasProductConfig {
Condition {
Type Path
Mode read
Path "${var:FullPathToIt}"
}
True {
Include.product-config.File "${var:ProductConfigSOF}"
}
}
```
However if I replace line as "Path "/usr/share/alsa/ucm2/sof/product_configs/ACME-2000--foobar.conf" (product name obfuscated for confidentiality) the True condition is achieved. It looks like Path is not evaluating variables.
This feature was added in commit 2f57b404b1c1c376316ca0c6bb5e789e2066298f where the usage is explained.
Issue URL : https://github.com/alsa-project/alsa-lib/issues/395
Repository URL: https://github.com/alsa-project/alsa-lib
parent reply other threads:[~2024-04-24 10:06 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1713953171087199926-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=20240424100616.ADB9CF80423@alsa1.perex.cz \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).