OSDN Git Service

ucm: Set default include path
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Nov 2018 15:25:41 +0000 (16:25 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 24 Sep 2019 11:09:18 +0000 (13:09 +0200)
Many UCM profiles include the UCM profile components under ucm/*
subdirectories and thusly put <searchdir:ucm> at each place.  This is
rather cumbersome.

This patch makes the UCM parser to set the default include path, so
that each profile no longer needs to set searchdir.  All the
<searchdir:ucm> lines currently found in the profiles are removed
gracefully, too.

For the needed implementation, a new helper,
_snd_config_load_with_include() is introduced.  It's not exported,
only for the use inside alsa-lib.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
18 files changed:
ucm/PIPO-W2S-Defaultstring-CherryTrailCR/HiFi.conf
ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf
ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf
ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf
ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf
ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf
ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf
ucm/bytcr-rt5640/HiFi.conf
ucm/bytcr-rt5651-mono-spk-in1-mic/HiFi.conf
ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf
ucm/bytcr-rt5651-mono-spk-in2-mic/HiFi.conf
ucm/bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf
ucm/bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf
ucm/bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf
ucm/bytcr-rt5651/HiFi.conf
ucm/chtnau8824/HiFi.conf
ucm/chtrt5645/HiFi.conf
ucm/cube-i1_TF-Defaultstring-CherryTrailCR/HiFi.conf

index c78cdfb..0e21d6e 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 34a5d53..d8ca499 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 0aa0c02..e4fb28d 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index e358d4f..bb31bf5 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 097560d..9474a64 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 8a018f6..478130e 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 20ebe2d..54dd251 100644 (file)
@@ -1,6 +1,5 @@
 # Use case Configuration for bytcr-rt5640
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index ca8a7d9..b93e0be 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 60ef6b3..ef04862 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index e75210d..c324c14 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 2b7675b..aa1a1cd 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 7a8c94b..343aed2 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 45c7837..6f6d74c 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index d3928e9..fddd8a3 100644 (file)
@@ -1,6 +1,5 @@
 # Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
 
-<searchdir:ucm>
 
 SectionVerb {
        EnableSequence [
index 97a7ac7..845cbca 100644 (file)
@@ -1,4 +1,3 @@
-<searchdir:ucm>
 
 SectionVerb {
 
index 6a3c687..422f3b7 100644 (file)
@@ -1,4 +1,3 @@
-<searchdir:ucm>
 
 SectionVerb {
        # ALSA PCM