From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7D6E1C10F15 for ; Wed, 24 Apr 2024 10:06:56 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A9B25E85; Wed, 24 Apr 2024 12:06:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A9B25E85 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1713953213; bh=awSVwD04MQGPoIfLjY6MLztUosndOjE9LFw1Y+spunQ=; h=From:To:In-Reply-To:References:Subject:Date:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From; b=soQSjoe1THRcOWQp6kvRskv/HcPMngdEnDAFuQm2yTUg/zumWbB9qkcrryiAkQsCo ZDBoXCiV67lntf9SlMMJs6Y7I12reV3z6y9rDYieNPVXcwFd6vgUXxP97dBxPFRAhG 2bFq0eNw9El0rX0yPH3a/luLbj1SbzFUyHMbmwls= Received: by alsa1.perex.cz (Postfix, from userid 50401) id DFA72F80589; Wed, 24 Apr 2024 12:06:21 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 27EB6F805A1; Wed, 24 Apr 2024 12:06:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ADB9CF80423; Wed, 24 Apr 2024 12:06:16 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (vmi242170.contaboserver.net [207.180.221.201]) by alsa1.perex.cz (Postfix) with ESMTP id 0D223F8003C for ; Wed, 24 Apr 2024 12:06:12 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 0D223F8003C MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub issues - opened To: alsa-devel@alsa-project.org In-Reply-To: <1713953171087199926-webhooks-bot@alsa-project.org> References: <1713953171087199926-webhooks-bot@alsa-project.org> Subject: UCM Path condition type does not support variables as file path Message-Id: <20240424100616.ADB9CF80423@alsa1.perex.cz> Date: Wed, 24 Apr 2024 12:06:16 +0200 (CEST) Message-ID-Hash: C3OBBLNXXWPVJXGHLGWSJW4H6TGURY3G X-Message-ID-Hash: C3OBBLNXXWPVJXGHLGWSJW4H6TGURY3G X-MailFrom: github@alsa-project.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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