Jaroslav Kysela
ae921dc1c9
ucm: Include directive - add optional behaviour
...
It may be useful to skip the include when the file does not exist
(make it optional).
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-12-04 12:11:41 +01:00
Jaroslav Kysela
9ab488b86c
ucm: replace uc_error with snd_error calls
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2025-11-07 18:09:26 +01:00
Jaroslav Kysela
7474518a96
ucm: fix memory leak in the error path (Include)
...
The included configuration tree must be freed
in the error path, too.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2022-05-23 13:29:39 +02:00
Jaroslav Kysela
aa04023565
ucm: substitute the before/after identifiers
...
This allows to handle correctly declarations like:
Before.SectionDevice "${var:DeviceMic}"
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-09-01 11:05:51 +02:00
Jaroslav Kysela
0325f4357d
ucm: compound_merge() - fix use after free (and logic)
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-06-03 09:00:51 +02:00
Jaroslav Kysela
6b72840569
ucm: compound_merge - use snd_config_merge()
...
It's useful to do the full tree merge (append).
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/92
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-05-24 12:14:47 +02:00
Jaroslav Kysela
32addac948
ucm: substitute the merged tree completely
...
We need to define the common shared configuration like for multiple
HDMI devices or so. Substitute the whole merged configuration tree
including identifiers.
Fixes: https://github.com/alsa-project/alsa-lib/issues/67
Fixes: dcef48f13d
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-07-06 16:34:35 +02:00
Jaroslav Kysela
7036ea07c8
ucm: include - fix compound_merge for arrays
...
There is a case where the original array has already new indexes
(the merged array is placed before the original nodes).
Set the temporary index string identifiers to unique strings.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-06-15 19:49:27 +02:00
Jaroslav Kysela
f60e0d5fdc
ucm: shuffle code in compound_merge()
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-06-02 19:11:22 +02:00
Jaroslav Kysela
6cc6024ac5
ucm: config - substitute File string to allow variables in include
...
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-05-25 19:20:53 +02:00
Jaroslav Kysela
3edfebc522
ucm: configuration - implement in-place Include
...
An example:
Include {
File "Inc.conf"
Before.SectionDevice "Mic"
}
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-05-25 19:20:53 +02:00