conf: Move UCM profile snippets into components subdirectory
PATCH v2 1/1 conf: Move UCM profile snippets into components subdirectory
We have placed UCM profile snippets to be included by the main config
files also in the same directory, src/conf/ucm, it confuses alsaucm
program that scans over all subdirectories. It thinks such a file is
also the main config file, and spews errors like:
% alsaucm
ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/bytcr/bytcr.conf ALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr
alsaucm: unable to obtain card list: No such file or directory
Actually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here.
One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps).
---
configure.ac | 10 ++++++----
src/conf/ucm/Makefile.am | 6 ++----
.../HiFi.conf | 14 ++++++-------
.../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf | 14 ++++++-------
.../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf | 14 ++++++-------
.../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf | 14 ++++++-------
.../HiFi.conf | 14 ++++++-------
.../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf | 14 ++++++-------
.../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf | 14 ++++++-------
src/conf/ucm/bytcr-rt5640/HiFi.conf | 20 +++++++++----------
.../bytcr-rt5651-mono-spk-in1-mic/HiFi.conf | 14 ++++++-------
.../HiFi.conf | 14 ++++++-------
.../bytcr-rt5651-mono-spk-in2-mic/HiFi.conf | 14 ++++++-------
.../bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf | 14 ++++++-------
.../HiFi.conf | 14 ++++++-------
.../bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf | 14 ++++++-------
src/conf/ucm/bytcr-rt5651/HiFi.conf | 20 +++++++++----------
src/conf/ucm/chtnau8824/HiFi.conf | 14 ++++++-------
src/conf/ucm/chtrt5645/HiFi.conf | 2 +-
src/conf/ucm/codecs/Makefile.am | 4 ++++
.../ucm/{ => codecs}/nau8824/EnableSeq.conf | 0
.../ucm/{ => codecs}/nau8824/HeadPhones.conf | 0
.../ucm/{ => codecs}/nau8824/HeadsetMic.conf | 0
.../ucm/{ => codecs}/nau8824/InternalMic.conf | 0
src/conf/ucm/{ => codecs}/nau8824/Makefile.am | 2 +-
.../ucm/{ => codecs}/nau8824/MonoSpeaker.conf | 0
.../ucm/{ => codecs}/nau8824/Speaker.conf | 0
.../ucm/{ => codecs}/rt5640/DigitalMics.conf | 0
.../ucm/{ => codecs}/rt5640/EnableSeq.conf | 0
.../ucm/{ => codecs}/rt5640/HeadPhones.conf | 0
.../ucm/{ => codecs}/rt5640/HeadsetMic.conf | 0
.../{ => codecs}/rt5640/IN1-InternalMic.conf | 0
.../{ => codecs}/rt5640/IN3-InternalMic.conf | 0
src/conf/ucm/{ => codecs}/rt5640/Makefile.am | 2 +-
.../ucm/{ => codecs}/rt5640/MonoSpeaker.conf | 0
src/conf/ucm/{ => codecs}/rt5640/Speaker.conf | 0
.../ucm/{ => codecs}/rt5651/EnableSeq.conf | 0
.../rt5651/HeadPhones-swapped.conf | 0
.../ucm/{ => codecs}/rt5651/HeadPhones.conf | 0
.../{ => codecs}/rt5651/IN1-InternalMic.conf | 0
.../{ => codecs}/rt5651/IN12-InternalMic.conf | 0
.../{ => codecs}/rt5651/IN2-InternalMic.conf | 0
.../{ => codecs}/rt5651/IN3-HeadsetMic.conf | 0
src/conf/ucm/{ => codecs}/rt5651/Makefile.am | 2 +-
.../ucm/{ => codecs}/rt5651/MonoSpeaker.conf | 0
src/conf/ucm/{ => codecs}/rt5651/Speaker.conf | 0
.../HiFi.conf | 14 ++++++-------
src/conf/ucm/platforms/Makefile.am | 2 ++
.../ucm/{ => platforms}/bytcr/Makefile.am | 2 +-
.../bytcr/PlatformDisableSeq.conf | 0
.../bytcr/PlatformEnableSeq.conf | 0
src/ucm/parser.c | 1 +
52 files changed, 145 insertions(+), 138 deletions(-)
create mode 100644 src/conf/ucm/codecs/Makefile.am
rename src/conf/ucm/{ => codecs}/nau8824/EnableSeq.conf (100%)
rename src/conf/ucm/{ => codecs}/nau8824/HeadPhones.conf (100%)
rename src/conf/ucm/{ => codecs}/nau8824/HeadsetMic.conf (100%)
rename src/conf/ucm/{ => codecs}/nau8824/InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/nau8824/Makefile.am (79%)
rename src/conf/ucm/{ => codecs}/nau8824/MonoSpeaker.conf (100%)
rename src/conf/ucm/{ => codecs}/nau8824/Speaker.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/DigitalMics.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/EnableSeq.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/HeadPhones.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/HeadsetMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/IN1-InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/IN3-InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/Makefile.am (82%)
rename src/conf/ucm/{ => codecs}/rt5640/MonoSpeaker.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5640/Speaker.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/EnableSeq.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones-swapped.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/IN1-InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/IN12-InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/IN2-InternalMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/IN3-HeadsetMic.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/Makefile.am (85%)
rename src/conf/ucm/{ => codecs}/rt5651/MonoSpeaker.conf (100%)
rename src/conf/ucm/{ => codecs}/rt5651/Speaker.conf (100%)
create mode 100644 src/conf/ucm/platforms/Makefile.am
rename src/conf/ucm/{ => platforms}/bytcr/Makefile.am (71%)
rename src/conf/ucm/{ => platforms}/bytcr/PlatformDisableSeq.conf (100%)
rename src/conf/ucm/{ => platforms}/bytcr/PlatformEnableSeq.conf (100%)configure.ac +6 -4
@@ -720,7 +720,6 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/Makefile \ src/conf/ucm/broadwell-rt286/Makefile \ src/conf/ucm/broxton-rt298/Makefile \ - src/conf/ucm/bytcr/Makefile \ src/conf/ucm/bytcr-rt5640/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/Makefile \
@@ -747,18 +746,21 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \ src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \ src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \ - src/conf/ucm/nau8824/Makefile \ src/conf/ucm/PandaBoard/Makefile \ src/conf/ucm/PandaBoardES/Makefile \ src/conf/ucm/PAZ00/Makefile \ src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/Makefile \ - src/conf/ucm/rt5640/Makefile \ - src/conf/ucm/rt5651/Makefile \ src/conf/ucm/SDP4430/Makefile \ src/conf/ucm/skylake-rt286/Makefile \ src/conf/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR/Makefile \ src/conf/ucm/tegraalc5632/Makefile \ src/conf/ucm/VEYRON-I2S/Makefile \ + src/conf/ucm/codecs/Makefile \ + src/conf/ucm/codecs/nau8824/Makefile \ + src/conf/ucm/codecs/rt5640/Makefile \ + src/conf/ucm/codecs/rt5651/Makefile \ + src/conf/ucm/platforms/Makefile \ + src/conf/ucm/platforms/bytcr/Makefile \ src/conf/topology/Makefile \ src/conf/topology/broadwell/Makefile \ modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
src/conf/ucm/Makefile.am +2 -4
@@ -1,8 +1,9 @@ SUBDIRS=\ +codecs \ +platforms \ ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \ broadwell-rt286 \ broxton-rt298 \ -bytcr \ bytcr-rt5640 \ bytcr-rt5640-mono-spk-dmic1-mic \ bytcr-rt5640-mono-spk-in1-mic \
@@ -29,13 +30,10 @@ gpd-win-pocket-rt5645 \ HDAudio-Gigabyte-ALC1220DualCodecs \ HDAudio-Lenovo-DualCodecs \ LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \ -nau8824 \ PandaBoard \ PandaBoardES \ PAZ00 \ PIPO-W2S-Defaultstring-CherryTrailCR \ -rt5640 \ -rt5651 \ SDP4430 \ skylake-rt286 \ TECLAST-X80Pro-Defaultstring-CherryTrailCR \
src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/HiFi.conf +7 -7
@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf +7 -7
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5640/HiFi.conf +10 -10
@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -21,11 +21,11 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones-swapped.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones-swapped.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf +7 -7
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/bytcr-rt5651/HiFi.conf +10 -10
@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {
@@ -20,11 +20,11 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>
src/conf/ucm/chtnau8824/HiFi.conf +7 -7
@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/Speaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/Speaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>
src/conf/ucm/chtrt5645/HiFi.conf +1 -1
@@ -11,7 +11,7 @@ SectionVerb { EnableSequence [ cdev "hw:chtrt5645" - <bytcr/PlatformEnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> # Output Configuration cset "name='DAC1 L Mux' IF1 DAC"
src/conf/ucm/codecs/Makefile.am new file +4 -0
@@ -0,0 +1,4 @@ +SUBDIRS=\ +rt5640 \ +rt5651 \ +nau8824
src/conf/ucm/codecs/nau8824/EnableSeq.conf renamed from src/conf/ucm/nau8824/EnableSeq.conf +0 -0
src/conf/ucm/codecs/nau8824/HeadPhones.conf renamed from src/conf/ucm/nau8824/HeadPhones.conf +0 -0
src/conf/ucm/codecs/nau8824/HeadsetMic.conf renamed from src/conf/ucm/nau8824/HeadsetMic.conf +0 -0
src/conf/ucm/codecs/nau8824/InternalMic.conf renamed from src/conf/ucm/nau8824/InternalMic.conf +0 -0
src/conf/ucm/codecs/nau8824/Makefile.am renamed from src/conf/ucm/nau8824/Makefile.am +1 -1
@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/nau8824 +ucmdir = $(alsaconfigdir)/ucm/codecs/nau8824 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadsetMic.conf InternalMic.conf \ MonoSpeaker.conf Speaker.conf EXTRA_DIST = $(ucm_DATA)
src/conf/ucm/codecs/nau8824/MonoSpeaker.conf renamed from src/conf/ucm/nau8824/MonoSpeaker.conf +0 -0
src/conf/ucm/codecs/nau8824/Speaker.conf renamed from src/conf/ucm/nau8824/Speaker.conf +0 -0
src/conf/ucm/codecs/rt5640/DigitalMics.conf renamed from src/conf/ucm/rt5640/DigitalMics.conf +0 -0
src/conf/ucm/codecs/rt5640/EnableSeq.conf renamed from src/conf/ucm/rt5640/EnableSeq.conf +0 -0
src/conf/ucm/codecs/rt5640/HeadPhones.conf renamed from src/conf/ucm/rt5640/HeadPhones.conf +0 -0
src/conf/ucm/codecs/rt5640/HeadsetMic.conf renamed from src/conf/ucm/rt5640/HeadsetMic.conf +0 -0
src/conf/ucm/codecs/rt5640/IN1-InternalMic.conf renamed from src/conf/ucm/rt5640/IN1-InternalMic.conf +0 -0
src/conf/ucm/codecs/rt5640/IN3-InternalMic.conf renamed from src/conf/ucm/rt5640/IN3-InternalMic.conf +0 -0
src/conf/ucm/codecs/rt5640/Makefile.am renamed from src/conf/ucm/rt5640/Makefile.am +1 -1
@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5640 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5640 ucm_DATA = DigitalMics.conf EnableSeq.conf HeadPhones.conf HeadsetMic.conf \ IN1-InternalMic.conf IN3-InternalMic.conf MonoSpeaker.conf Speaker.conf EXTRA_DIST = $(ucm_DATA)
src/conf/ucm/codecs/rt5640/MonoSpeaker.conf renamed from src/conf/ucm/rt5640/MonoSpeaker.conf +0 -0
src/conf/ucm/codecs/rt5640/Speaker.conf renamed from src/conf/ucm/rt5640/Speaker.conf +0 -0
src/conf/ucm/codecs/rt5651/EnableSeq.conf renamed from src/conf/ucm/rt5651/EnableSeq.conf +0 -0
src/conf/ucm/codecs/rt5651/HeadPhones-swapped.conf renamed from src/conf/ucm/rt5651/HeadPhones-swapped.conf +0 -0
src/conf/ucm/codecs/rt5651/HeadPhones.conf renamed from src/conf/ucm/rt5651/HeadPhones.conf +0 -0
src/conf/ucm/codecs/rt5651/IN1-InternalMic.conf renamed from src/conf/ucm/rt5651/IN1-InternalMic.conf +0 -0
src/conf/ucm/codecs/rt5651/IN12-InternalMic.conf renamed from src/conf/ucm/rt5651/IN12-InternalMic.conf +0 -0
src/conf/ucm/codecs/rt5651/IN2-InternalMic.conf renamed from src/conf/ucm/rt5651/IN2-InternalMic.conf +0 -0
src/conf/ucm/codecs/rt5651/IN3-HeadsetMic.conf renamed from src/conf/ucm/rt5651/IN3-HeadsetMic.conf +0 -0
src/conf/ucm/codecs/rt5651/Makefile.am renamed from src/conf/ucm/rt5651/Makefile.am +1 -1
@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5651 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5651 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadPhones-swapped.conf \ IN1-InternalMic.conf IN2-InternalMic.conf IN12-InternalMic.conf \ IN3-HeadsetMic.conf Speaker.conf MonoSpeaker.conf
src/conf/ucm/codecs/rt5651/MonoSpeaker.conf renamed from src/conf/ucm/rt5651/MonoSpeaker.conf +0 -0
src/conf/ucm/codecs/rt5651/Speaker.conf renamed from src/conf/ucm/rt5651/Speaker.conf +0 -0
src/conf/ucm/cube-i1_TF-Defaultstring-CherryTrailCR/HiFi.conf +7 -7
@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>
src/conf/ucm/platforms/Makefile.am new file +2 -0
@@ -0,0 +1,2 @@ +SUBDIRS=\ +bytcr
src/conf/ucm/platforms/bytcr/Makefile.am renamed from src/conf/ucm/bytcr/Makefile.am +1 -1
@@ -1,4 +1,4 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/bytcr +ucmdir = $(alsaconfigdir)/ucm/platforms/bytcr ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf EXTRA_DIST = $(ucm_DATA)
src/conf/ucm/platforms/bytcr/PlatformDisableSeq.conf renamed from src/conf/ucm/bytcr/PlatformDisableSeq.conf +0 -0
src/conf/ucm/platforms/bytcr/PlatformEnableSeq.conf renamed from src/conf/ucm/bytcr/PlatformEnableSeq.conf +0 -0
src/ucm/parser.c +1 -0
@@ -53,6 +53,7 @@static const char *const component_dir[] = {"codecs" ,/* for off-soc codecs */ "dsps" ,/* for DSPs embedded in SoC */ +"platforms" ,/* for common platform implementations */ NULL ,/* terminator */ };
Signature · 1 line
2.19.1
I'm still not see '<searchdir:ucm>' in the src/conf/ucm/chtrt5645/HiFi.conf, if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files? bytcr-rt5640/HiFi.conf, bytcr-rt5651/HiFi.conf, chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?
my understand, no '<searchdir:ucm>', '<platforms/bytcr/PlatformEnableSeq.conf>' won't work.
EnableSequence [
cdev "hw:chtrt5645"
<platforms/bytcr/PlatformEnableSeq.conf>
# Output Configuration
cset "name='DAC1 L Mux' IF1 DAC"
cset "name='DAC1 R Mux' IF1 DAC"
2018-11-28 17:56 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 1,007 lines
We have placed UCM profile snippets to be included by the main config files also in the same directory, src/conf/ucm, it confuses alsaucm program that scans over all subdirectories. It thinks such a file is also the main config file, and spews errors like:
% alsaucm
ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file/usr/share/alsa/ucm/bytcr/bytcr.conf
ALSA lib parser.c:1427:(load_master_config) error: could not parse
configuration for card bytcr
alsaucm: unable to obtain card list: No such file or directoryActually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here.
One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps).
Suggested-by Hans de Goede <[email protected]>Acked-by Jaroslav Kysela <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- configure.ac | 10 ++++++---- src/conf/ucm/Makefile.am | 6 ++---- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5640/HiFi.conf | 20 +++++++++---------- .../bytcr-rt5651-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-mono-spk-in2-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5651/HiFi.conf | 20 +++++++++---------- src/conf/ucm/chtnau8824/HiFi.conf | 14 ++++++------- src/conf/ucm/chtrt5645/HiFi.conf | 2 +- src/conf/ucm/codecs/Makefile.am | 4 ++++ .../ucm/{ => codecs}/nau8824/EnableSeq.conf | 0 .../ucm/{ => codecs}/nau8824/HeadPhones.conf | 0 .../ucm/{ => codecs}/nau8824/HeadsetMic.conf | 0 .../ucm/{ => codecs}/nau8824/InternalMic.conf | 0 src/conf/ucm/{ => codecs}/nau8824/Makefile.am | 2 +- .../ucm/{ => codecs}/nau8824/MonoSpeaker.conf | 0 .../ucm/{ => codecs}/nau8824/Speaker.conf | 0 .../ucm/{ => codecs}/rt5640/DigitalMics.conf | 0 .../ucm/{ => codecs}/rt5640/EnableSeq.conf | 0 .../ucm/{ => codecs}/rt5640/HeadPhones.conf | 0 .../ucm/{ => codecs}/rt5640/HeadsetMic.conf | 0 .../{ => codecs}/rt5640/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5640/IN3-InternalMic.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5640/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Speaker.conf | 0 .../ucm/{ => codecs}/rt5651/EnableSeq.conf | 0 .../rt5651/HeadPhones-swapped.conf | 0 .../ucm/{ => codecs}/rt5651/HeadPhones.conf | 0 .../{ => codecs}/rt5651/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN12-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN2-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN3-HeadsetMic.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5651/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Speaker.conf | 0 .../HiFi.conf | 14 ++++++------- src/conf/ucm/platforms/Makefile.am | 2 ++ .../ucm/{ => platforms}/bytcr/Makefile.am | 2 +- .../bytcr/PlatformDisableSeq.conf | 0 .../bytcr/PlatformEnableSeq.conf | 0 src/ucm/parser.c | 1 + 52 files changed, 145 insertions(+), 138 deletions(-) create mode 100644 src/conf/ucm/codecs/Makefile.am rename src/conf/ucm/{ => codecs}/nau8824/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/Makefile.am (79%) rename src/conf/ucm/{ => codecs}/nau8824/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/Speaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/DigitalMics.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/IN1-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/IN3-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/Makefile.am (82%) rename src/conf/ucm/{ => codecs}/rt5640/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/Speaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones-swapped.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN1-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN12-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN2-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN3-HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/Makefile.am (85%) rename src/conf/ucm/{ => codecs}/rt5651/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/Speaker.conf (100%) create mode 100644 src/conf/ucm/platforms/Makefile.am rename src/conf/ucm/{ => platforms}/bytcr/Makefile.am (71%) rename src/conf/ucm/{ => platforms}/bytcr/PlatformDisableSeq.conf (100%) rename src/conf/ucm/{ => platforms}/bytcr/PlatformEnableSeq.conf (100%)configure.ac +0
-1@@ -720,7 +720,6 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/Makefile \ src/conf/ucm/broadwell-rt286/Makefile \ src/conf/ucm/broxton-rt298/Makefile \ - src/conf/ucm/bytcr/Makefile \ src/conf/ucm/bytcr-rt5640/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/Makefile \configure.ac +6
-3src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/Makefile \@@ -747,18 +746,21 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \ src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \ src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \ - src/conf/ucm/nau8824/Makefile \ src/conf/ucm/PandaBoard/Makefile \ src/conf/ucm/PandaBoardES/Makefile \ src/conf/ucm/PAZ00/Makefile \ src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/Makefile \ - src/conf/ucm/rt5640/Makefile \ - src/conf/ucm/rt5651/Makefile \ src/conf/ucm/SDP4430/Makefile \ src/conf/ucm/skylake-rt286/Makefile \ src/conf/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR/Makefile \ src/conf/ucm/tegraalc5632/Makefile \ src/conf/ucm/VEYRON-I2S/Makefile \ + src/conf/ucm/codecs/Makefile \ + src/conf/ucm/codecs/nau8824/Makefile \ + src/conf/ucm/codecs/rt5640/Makefile \ + src/conf/ucm/codecs/rt5651/Makefile \ + src/conf/ucm/platforms/Makefile \ + src/conf/ucm/platforms/bytcr/Makefile \ src/conf/topology/Makefile \ src/conf/topology/broadwell/Makefile \configure.ac +0
-0modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \src/conf/ucm/Makefile.am +2
-4@@ -1,8 +1,9 @@ SUBDIRS=\ +codecs \ +platforms \ ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \ broadwell-rt286 \ broxton-rt298 \ -bytcr \ bytcr-rt5640 \ bytcr-rt5640-mono-spk-dmic1-mic \ bytcr-rt5640-mono-spk-in1-mic \@@ -29,13 +30,10 @@ gpd-win-pocket-rt5645 \ HDAudio-Gigabyte-ALC1220DualCodecs \ HDAudio-Lenovo-DualCodecs \ LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \ -nau8824 \ PandaBoard \ PandaBoardES \ PAZ00 \ PIPO-W2S-Defaultstring-CherryTrailCR \ -rt5640 \ -rt5651 \ SDP4430 \ skylake-rt286 \ TECLAST-X80Pro-Defaultstring-CherryTrailCR \src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640/HiFi.conf +10
-10@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,11 +21,11 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones-swapped.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones-swapped.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651/HiFi.conf +10
-10@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,11 +20,11 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/chtnau8824/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/Speaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/Speaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/chtrt5645/HiFi.conf +1
-1@@ -11,7 +11,7 @@ SectionVerb { EnableSequence [ cdev "hw:chtrt5645" - <bytcr/PlatformEnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> # Output Configuration cset "name='DAC1 L Mux' IF1 DAC"src/conf/ucm/codecs/Makefile.am new file +4
-0@@ -0,0 +1,4 @@ +SUBDIRS=\ +rt5640 \ +rt5651 \ +nau8824src/conf/ucm/codecs/nau8824/EnableSeq.conf renamed from src/conf/ucm/nau8824/EnableSeq.conf +0
-0src/conf/ucm/codecs/nau8824/HeadPhones.conf renamed from src/conf/ucm/nau8824/HeadPhones.conf +0
-0src/conf/ucm/codecs/nau8824/HeadsetMic.conf renamed from src/conf/ucm/nau8824/HeadsetMic.conf +0
-0src/conf/ucm/codecs/nau8824/InternalMic.conf renamed from src/conf/ucm/nau8824/InternalMic.conf +0
-0src/conf/ucm/codecs/nau8824/Makefile.am renamed from src/conf/ucm/nau8824/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/nau8824 +ucmdir = $(alsaconfigdir)/ucm/codecs/nau8824 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadsetMic.conf InternalMic.conf \ MonoSpeaker.conf Speaker.conf
EXTRA_DIST= $(ucm_DATA)src/conf/ucm/codecs/nau8824/MonoSpeaker.conf renamed from src/conf/ucm/nau8824/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/nau8824/Speaker.conf renamed from src/conf/ucm/nau8824/Speaker.conf +0
-0src/conf/ucm/codecs/rt5640/DigitalMics.conf renamed from src/conf/ucm/rt5640/DigitalMics.conf +0
-0src/conf/ucm/codecs/rt5640/EnableSeq.conf renamed from src/conf/ucm/rt5640/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5640/HeadPhones.conf renamed from src/conf/ucm/rt5640/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5640/HeadsetMic.conf renamed from src/conf/ucm/rt5640/HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN1-InternalMic.conf renamed from src/conf/ucm/rt5640/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN3-InternalMic.conf renamed from src/conf/ucm/rt5640/IN3-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/Makefile.am renamed from src/conf/ucm/rt5640/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5640 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5640 ucm_DATA = DigitalMics.conf EnableSeq.conf HeadPhones.conf HeadsetMic.conf \ IN1-InternalMic.conf IN3-InternalMic.conf MonoSpeaker.conf Speaker.conf
EXTRA_DIST= $(ucm_DATA)src/conf/ucm/codecs/rt5640/MonoSpeaker.conf renamed from src/conf/ucm/rt5640/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5640/Speaker.conf renamed from src/conf/ucm/rt5640/Speaker.conf +0
-0src/conf/ucm/codecs/rt5651/EnableSeq.conf renamed from src/conf/ucm/rt5651/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones-swapped.conf renamed from src/conf/ucm/rt5651/HeadPhones-swapped.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones.conf renamed from src/conf/ucm/rt5651/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5651/IN1-InternalMic.conf renamed from src/conf/ucm/rt5651/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN12-InternalMic.conf renamed from src/conf/ucm/rt5651/IN12-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN2-InternalMic.conf renamed from src/conf/ucm/rt5651/IN2-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN3-HeadsetMic.conf renamed from src/conf/ucm/rt5651/IN3-HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5651/Makefile.am renamed from src/conf/ucm/rt5651/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5651 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5651 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadPhones-swapped.conf \ IN1-InternalMic.conf IN2-InternalMic.conf IN12-InternalMic.conf \ IN3-HeadsetMic.conf Speaker.conf MonoSpeaker.confsrc/conf/ucm/codecs/rt5651/MonoSpeaker.conf renamed from src/conf/ucm/rt5651/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5651/Speaker.conf renamed from src/conf/ucm/rt5651/Speaker.conf +0
-0src/conf/ucm/cube-i1_TF-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/platforms/Makefile.am new file +2
-0@@ -0,0 +1,2 @@ +SUBDIRS=\ +bytcrsrc/conf/ucm/platforms/bytcr/Makefile.am renamed from src/conf/ucm/bytcr/Makefile.am +1
-1@@ -1,4 +1,4 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/bytcr +ucmdir = $(alsaconfigdir)/ucm/platforms/bytcr ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf EXTRA_DIST = $(ucm_DATA)src/conf/ucm/platforms/bytcr/PlatformDisableSeq.conf renamed from src/conf/ucm/bytcr/PlatformDisableSeq.conf +0
-0src/conf/ucm/platforms/bytcr/PlatformEnableSeq.conf renamed from src/conf/ucm/bytcr/PlatformEnableSeq.conf +0
-0src/ucm/parser.c +1
-1@@ -53,6 +53,7 @@static const char *const component_dir[] = {"codecs" ,/* for off-soc codecs */ "dsps" ,/* for DSPs embedded in SoC */ +"platforms" ,/* for common platform implementations */ NULL ,/* terminator */ }; --2.19.1
Quoted 8 lines · On Wed, 28 Nov 2018 11:40:56 +0100, youling 257 wrote:
I'm still not see '<searchdir:ucm>' in the
src/conf/ucm/chtrt5645/HiFi.conf, if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files?bytcr-rt5640/HiFi.conf,bytcr-rt5651/HiFi.conf,chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?my understand, no '<searchdir:ucm>', '<
platforms/bytcr/PlatformEnableSeq.conf>' won't work.
OK, point taken. Yes, it's a missing piece.
So, just adding <searchdir:ucm> makes things working on your machine, right?
If so, I'll refresh the patch to address it.
thanks,
Takashi
Quoted 1,019 lines
EnableSequence [
cdev "hw:chtrt5645"<
platforms/bytcr/PlatformEnableSeq.conf># Output Configuration
cset "name='DAC1 L Mux' IF1 DAC"
cset "name='DAC1 R Mux' IF1 DAC"2018-11-28 17:56 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 1,007 lines
We have placed UCM profile snippets to be included by the main config files also in the same directory, src/conf/ucm, it confuses alsaucm program that scans over all subdirectories. It thinks such a file is also the main config file, and spews errors like:
% alsaucm
ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file/usr/share/alsa/ucm/bytcr/bytcr.conf
ALSA lib parser.c:1427:(load_master_config) error: could not parse
configuration for card bytcr
alsaucm: unable to obtain card list: No such file or directoryActually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here.
One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps).
Suggested-by Hans de Goede <[email protected]>Acked-by Jaroslav Kysela <[email protected]>Signed-off-by Takashi Iwai <[email protected]>--- configure.ac | 10 ++++++---- src/conf/ucm/Makefile.am | 6 ++---- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5640/HiFi.conf | 20 +++++++++---------- .../bytcr-rt5651-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-mono-spk-in2-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5651/HiFi.conf | 20 +++++++++---------- src/conf/ucm/chtnau8824/HiFi.conf | 14 ++++++------- src/conf/ucm/chtrt5645/HiFi.conf | 2 +- src/conf/ucm/codecs/Makefile.am | 4 ++++ .../ucm/{ => codecs}/nau8824/EnableSeq.conf | 0 .../ucm/{ => codecs}/nau8824/HeadPhones.conf | 0 .../ucm/{ => codecs}/nau8824/HeadsetMic.conf | 0 .../ucm/{ => codecs}/nau8824/InternalMic.conf | 0 src/conf/ucm/{ => codecs}/nau8824/Makefile.am | 2 +- .../ucm/{ => codecs}/nau8824/MonoSpeaker.conf | 0 .../ucm/{ => codecs}/nau8824/Speaker.conf | 0 .../ucm/{ => codecs}/rt5640/DigitalMics.conf | 0 .../ucm/{ => codecs}/rt5640/EnableSeq.conf | 0 .../ucm/{ => codecs}/rt5640/HeadPhones.conf | 0 .../ucm/{ => codecs}/rt5640/HeadsetMic.conf | 0 .../{ => codecs}/rt5640/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5640/IN3-InternalMic.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5640/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Speaker.conf | 0 .../ucm/{ => codecs}/rt5651/EnableSeq.conf | 0 .../rt5651/HeadPhones-swapped.conf | 0 .../ucm/{ => codecs}/rt5651/HeadPhones.conf | 0 .../{ => codecs}/rt5651/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN12-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN2-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN3-HeadsetMic.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5651/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Speaker.conf | 0 .../HiFi.conf | 14 ++++++------- src/conf/ucm/platforms/Makefile.am | 2 ++ .../ucm/{ => platforms}/bytcr/Makefile.am | 2 +- .../bytcr/PlatformDisableSeq.conf | 0 .../bytcr/PlatformEnableSeq.conf | 0 src/ucm/parser.c | 1 + 52 files changed, 145 insertions(+), 138 deletions(-) create mode 100644 src/conf/ucm/codecs/Makefile.am rename src/conf/ucm/{ => codecs}/nau8824/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/Makefile.am (79%) rename src/conf/ucm/{ => codecs}/nau8824/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/nau8824/Speaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/DigitalMics.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/IN1-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/IN3-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/Makefile.am (82%) rename src/conf/ucm/{ => codecs}/rt5640/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5640/Speaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/EnableSeq.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones-swapped.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/HeadPhones.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN1-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN12-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN2-InternalMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/IN3-HeadsetMic.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/Makefile.am (85%) rename src/conf/ucm/{ => codecs}/rt5651/MonoSpeaker.conf (100%) rename src/conf/ucm/{ => codecs}/rt5651/Speaker.conf (100%) create mode 100644 src/conf/ucm/platforms/Makefile.am rename src/conf/ucm/{ => platforms}/bytcr/Makefile.am (71%) rename src/conf/ucm/{ => platforms}/bytcr/PlatformDisableSeq.conf (100%) rename src/conf/ucm/{ => platforms}/bytcr/PlatformEnableSeq.conf (100%)configure.ac +0
-1@@ -720,7 +720,6 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/Makefile \ src/conf/ucm/broadwell-rt286/Makefile \ src/conf/ucm/broxton-rt298/Makefile \ - src/conf/ucm/bytcr/Makefile \ src/conf/ucm/bytcr-rt5640/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/Makefile \configure.ac +6
-3src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/Makefile \@@ -747,18 +746,21 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \ src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \ src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \ - src/conf/ucm/nau8824/Makefile \ src/conf/ucm/PandaBoard/Makefile \ src/conf/ucm/PandaBoardES/Makefile \ src/conf/ucm/PAZ00/Makefile \ src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/Makefile \ - src/conf/ucm/rt5640/Makefile \ - src/conf/ucm/rt5651/Makefile \ src/conf/ucm/SDP4430/Makefile \ src/conf/ucm/skylake-rt286/Makefile \ src/conf/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR/Makefile \ src/conf/ucm/tegraalc5632/Makefile \ src/conf/ucm/VEYRON-I2S/Makefile \ + src/conf/ucm/codecs/Makefile \ + src/conf/ucm/codecs/nau8824/Makefile \ + src/conf/ucm/codecs/rt5640/Makefile \ + src/conf/ucm/codecs/rt5651/Makefile \ + src/conf/ucm/platforms/Makefile \ + src/conf/ucm/platforms/bytcr/Makefile \ src/conf/topology/Makefile \ src/conf/topology/broadwell/Makefile \configure.ac +0
-0modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \src/conf/ucm/Makefile.am +2
-4@@ -1,8 +1,9 @@ SUBDIRS=\ +codecs \ +platforms \ ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \ broadwell-rt286 \ broxton-rt298 \ -bytcr \ bytcr-rt5640 \ bytcr-rt5640-mono-spk-dmic1-mic \ bytcr-rt5640-mono-spk-in1-mic \@@ -29,13 +30,10 @@ gpd-win-pocket-rt5645 \ HDAudio-Gigabyte-ALC1220DualCodecs \ HDAudio-Lenovo-DualCodecs \ LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \ -nau8824 \ PandaBoard \ PandaBoardES \ PAZ00 \ PIPO-W2S-Defaultstring-CherryTrailCR \ -rt5640 \ -rt5651 \ SDP4430 \ skylake-rt286 \ TECLAST-X80Pro-Defaultstring-CherryTrailCR \src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640/HiFi.conf +10
-10@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,11 +21,11 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones-swapped.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones-swapped.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651/HiFi.conf +10
-10@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,11 +20,11 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/chtnau8824/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/Speaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/Speaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/chtrt5645/HiFi.conf +1
-1@@ -11,7 +11,7 @@ SectionVerb { EnableSequence [ cdev "hw:chtrt5645" - <bytcr/PlatformEnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> # Output Configuration cset "name='DAC1 L Mux' IF1 DAC"src/conf/ucm/codecs/Makefile.am new file +4
-0@@ -0,0 +1,4 @@ +SUBDIRS=\ +rt5640 \ +rt5651 \ +nau8824src/conf/ucm/codecs/nau8824/EnableSeq.conf renamed from src/conf/ucm/nau8824/EnableSeq.conf +0
-0src/conf/ucm/codecs/nau8824/HeadPhones.conf renamed from src/conf/ucm/nau8824/HeadPhones.conf +0
-0src/conf/ucm/codecs/nau8824/HeadsetMic.conf renamed from src/conf/ucm/nau8824/HeadsetMic.conf +0
-0src/conf/ucm/codecs/nau8824/InternalMic.conf renamed from src/conf/ucm/nau8824/InternalMic.conf +0
-0src/conf/ucm/codecs/nau8824/Makefile.am renamed from src/conf/ucm/nau8824/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/nau8824 +ucmdir = $(alsaconfigdir)/ucm/codecs/nau8824 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadsetMic.conf InternalMic.conf \ MonoSpeaker.conf Speaker.conf
EXTRA_DIST= $(ucm_DATA)src/conf/ucm/codecs/nau8824/MonoSpeaker.conf renamed from src/conf/ucm/nau8824/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/nau8824/Speaker.conf renamed from src/conf/ucm/nau8824/Speaker.conf +0
-0src/conf/ucm/codecs/rt5640/DigitalMics.conf renamed from src/conf/ucm/rt5640/DigitalMics.conf +0
-0src/conf/ucm/codecs/rt5640/EnableSeq.conf renamed from src/conf/ucm/rt5640/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5640/HeadPhones.conf renamed from src/conf/ucm/rt5640/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5640/HeadsetMic.conf renamed from src/conf/ucm/rt5640/HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN1-InternalMic.conf renamed from src/conf/ucm/rt5640/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN3-InternalMic.conf renamed from src/conf/ucm/rt5640/IN3-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/Makefile.am renamed from src/conf/ucm/rt5640/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5640 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5640 ucm_DATA = DigitalMics.conf EnableSeq.conf HeadPhones.conf HeadsetMic.conf \ IN1-InternalMic.conf IN3-InternalMic.conf MonoSpeaker.conf Speaker.conf
EXTRA_DIST= $(ucm_DATA)src/conf/ucm/codecs/rt5640/MonoSpeaker.conf renamed from src/conf/ucm/rt5640/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5640/Speaker.conf renamed from src/conf/ucm/rt5640/Speaker.conf +0
-0src/conf/ucm/codecs/rt5651/EnableSeq.conf renamed from src/conf/ucm/rt5651/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones-swapped.conf renamed from src/conf/ucm/rt5651/HeadPhones-swapped.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones.conf renamed from src/conf/ucm/rt5651/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5651/IN1-InternalMic.conf renamed from src/conf/ucm/rt5651/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN12-InternalMic.conf renamed from src/conf/ucm/rt5651/IN12-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN2-InternalMic.conf renamed from src/conf/ucm/rt5651/IN2-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN3-HeadsetMic.conf renamed from src/conf/ucm/rt5651/IN3-HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5651/Makefile.am renamed from src/conf/ucm/rt5651/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5651 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5651 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadPhones-swapped.conf \ IN1-InternalMic.conf IN2-InternalMic.conf IN12-InternalMic.conf \ IN3-HeadsetMic.conf Speaker.conf MonoSpeaker.confsrc/conf/ucm/codecs/rt5651/MonoSpeaker.conf renamed from src/conf/ucm/rt5651/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5651/Speaker.conf renamed from src/conf/ucm/rt5651/Speaker.conf +0
-0src/conf/ucm/cube-i1_TF-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/platforms/Makefile.am new file +2
-0@@ -0,0 +1,2 @@ +SUBDIRS=\ +bytcrsrc/conf/ucm/platforms/bytcr/Makefile.am renamed from src/conf/ucm/bytcr/Makefile.am +1
-1@@ -1,4 +1,4 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/bytcr +ucmdir = $(alsaconfigdir)/ucm/platforms/bytcr ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf EXTRA_DIST = $(ucm_DATA)src/conf/ucm/platforms/bytcr/PlatformDisableSeq.conf renamed from src/conf/ucm/bytcr/PlatformDisableSeq.conf +0
-0src/conf/ucm/platforms/bytcr/PlatformEnableSeq.conf renamed from src/conf/ucm/bytcr/PlatformEnableSeq.conf +0
-0src/ucm/parser.c +1
-1@@ -53,6 +53,7 @@static const char *const component_dir[] = {"codecs" ,/* for off-soc codecs */ "dsps" ,/* for DSPs embedded in SoC */ +"platforms" ,/* for common platform implementations */ NULL ,/* terminator */ }; --2.19.1
src/conf/ucm/chtrt5645/HiFi.conf, a lot of cset command, why quote PlatformEnableSeq.conf? although PlatformEnableSeq.conf is custom command for bytcr/chtbsw platform.
if chtrt5645/HiFi.conf <searchdir:ucm> and <platforms/bytcr/PlatformEnableSeq.conf>, do you think the code is not neat?
so i said revert "conf/ucm: bytcr-rt5645: Use the generic bytcr/PlatformEnableSeq.conf". chtrt5645-mono-speaker-analog-mic/HiFi.conf not quote PlatformEnableSeq.conf.
2018-11-28 18:48 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 35 lines
Quoted 10 lines · On Wed, 28 Nov 2018 11:40:56 +0100, youling 257 wrote:
I'm still not see '<searchdir:ucm>' in the
src/conf/ucm/chtrt5645/HiFi.conf,
if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files?bytcr-rt5640/HiFi.conf,bytcr-rt5651/HiFi.conf,chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?my understand, no '<searchdir:ucm>', '<
platforms/bytcr/PlatformEnableSeq.conf>' won't work.OK, point taken. Yes, it's a missing piece.
So, just adding <searchdir:ucm> makes things working on your machine, right?
If so, I'll refresh the patch to address it.
thanks,
Takashi
Quoted 10 lines
EnableSequence [
cdev "hw:chtrt5645"<
platforms/bytcr/PlatformEnableSeq.conf># Output Configuration
cset "name='DAC1 L Mux' IF1 DAC"
cset "name='DAC1 R Mux' IF1 DAC"
Quoted 10 lines · On Wed, 28 Nov 2018 12:09:17 +0100, youling 257 wrote:
src/conf/ucm/chtrt5645/HiFi.conf, a lot of cset command, why quote PlatformEnableSeq.conf? although PlatformEnableSeq.conf is custom command for bytcr/chtbsw platform.
ifchtrt5645/HiFi.conf<searchdir:ucm> and <platforms/bytcr/PlatformEnableSeq.conf>, do you think the code is not neat?
so i said revert "conf/ucm: bytcr-rt5645: Use the genericbytcr/PlatformEnableSeq.conf".chtrt5645-mono-speaker-analog-mic/HiFi.confnot quote PlatformEnableSeq.conf.
I don't get it. The inclusion of PlatformEnableSeq.conf certainly reduces lots of open cset calls that exited in cht5645/HiFi.conf. That makes config more readable and maintainable. Why this has to be reverted?
There are still additional csets, yes. But the inclusion of conf snippet doesn't mean to replace all with the common pattern, in general.
thanks,
Takashi
Quoted 38 lines
2018-11-28 18:48 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 35 lines
Quoted 10 lines · On Wed, 28 Nov 2018 11:40:56 +0100, youling 257 wrote:
I'm still not see '<searchdir:ucm>' in the
src/conf/ucm/chtrt5645/HiFi.conf,
if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files?bytcr-rt5640/HiFi.conf,bytcr-rt5651/HiFi.conf,chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?my understand, no '<searchdir:ucm>', '<
platforms/bytcr/PlatformEnableSeq.conf>' won't work.OK, point taken. Yes, it's a missing piece.
So, just adding <searchdir:ucm> makes things working on your machine, right?
If so, I'll refresh the patch to address it.
thanks,
Takashi
Quoted 10 lines
EnableSequence [
cdev "hw:chtrt5645"<
platforms/bytcr/PlatformEnableSeq.conf># Output Configuration
cset "name='DAC1 L Mux' IF1 DAC"
cset "name='DAC1 R Mux' IF1 DAC"
2018-11-28 18:48 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 10 lines
Quoted 8 lines · On Wed, 28 Nov 2018 11:40:56 +0100, youling 257 wrote:
I'm still not see '<searchdir:ucm>' in the
src/conf/ucm/chtrt5645/HiFi.conf,
if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files?bytcr-rt5640/HiFi.conf,bytcr-rt5651/HiFi.conf,chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?
Quoted 7 lines
Quoted 2 lines
my understand, no '<searchdir:ucm>', '<
platforms/bytcr/PlatformEnableSeq.conf>' won't work.OK, point taken. Yes, it's a missing piece.
So, just adding <searchdir:ucm> makes things working on your machine, right?
Yes.
Quoted 6 lines
If so, I'll refresh the patch to address it.
thanks,
Takashi
Agree.
Quoted 12 lines · On Wed, 28 Nov 2018 13:19:38 +0100, youling 257 wrote:
2018-11-28 18:48 GMT+08:00, Takashi Iwai <[email protected]>:
Quoted 10 lines
Quoted 8 lines · On Wed, 28 Nov 2018 11:40:56 +0100, youling 257 wrote:
I'm still not see '<searchdir:ucm>' in the
src/conf/ucm/chtrt5645/HiFi.conf,
if needn't '<searchdir:ucm>', so can remove '<searchdir:ucm>' in other files?bytcr-rt5640/HiFi.conf,bytcr-rt5651/HiFi.conf,chtnau8824/HiFi.conf, ......, remove <searchdir:ucm>?
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines
my understand, no '<searchdir:ucm>', '<
platforms/bytcr/PlatformEnableSeq.conf>' won't work.OK, point taken. Yes, it's a missing piece.
So, just adding <searchdir:ucm> makes things working on your machine, right?
Yes.
OK, good to hear. Let's go forward, then.
thanks,
Takashi
Hi,
Quoted 13 lines · Takashi Iwai
We have placed UCM profile snippets to be included by the main config
files also in the same directory, src/conf/ucm, it confuses alsaucm
program that scans over all subdirectories. It thinks such a file is
also the main config file, and spews errors like:
% alsaucm
ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file/usr/share/alsa/ucm/bytcr/bytcr.confALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr
alsaucm: unable to obtain card list: No such file or directoryActually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here.
Quoted 7 lines
One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps).
Suggested-by Hans de Goede <[email protected]>Acked-by Jaroslav Kysela <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Thank you, looks good to me. I've also given this a test run on a bytcr device with a rt5640 codec and everything still works fine:
Regards,
Hans
Quoted 929 lines
--- configure.ac | 10 ++++++---- src/conf/ucm/Makefile.am | 6 ++---- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-mono-spk-in3-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5640/HiFi.conf | 20 +++++++++---------- .../bytcr-rt5651-mono-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-mono-spk-in2-mic/HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf | 14 ++++++------- .../HiFi.conf | 14 ++++++------- .../bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf | 14 ++++++------- src/conf/ucm/bytcr-rt5651/HiFi.conf | 20 +++++++++---------- src/conf/ucm/chtnau8824/HiFi.conf | 14 ++++++------- src/conf/ucm/chtrt5645/HiFi.conf | 2 +- src/conf/ucm/codecs/Makefile.am | 4 ++++ .../ucm/{ => codecs}/nau8824/EnableSeq.conf | 0 .../ucm/{ => codecs}/nau8824/HeadPhones.conf | 0 .../ucm/{ => codecs}/nau8824/HeadsetMic.conf | 0 .../ucm/{ => codecs}/nau8824/InternalMic.conf | 0 src/conf/ucm/{ => codecs}/nau8824/Makefile.am | 2 +- .../ucm/{ => codecs}/nau8824/MonoSpeaker.conf | 0 .../ucm/{ => codecs}/nau8824/Speaker.conf | 0 .../ucm/{ => codecs}/rt5640/DigitalMics.conf | 0 .../ucm/{ => codecs}/rt5640/EnableSeq.conf | 0 .../ucm/{ => codecs}/rt5640/HeadPhones.conf | 0 .../ucm/{ => codecs}/rt5640/HeadsetMic.conf | 0 .../{ => codecs}/rt5640/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5640/IN3-InternalMic.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5640/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5640/Speaker.conf | 0 .../ucm/{ => codecs}/rt5651/EnableSeq.conf | 0 .../rt5651/HeadPhones-swapped.conf | 0 .../ucm/{ => codecs}/rt5651/HeadPhones.conf | 0 .../{ => codecs}/rt5651/IN1-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN12-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN2-InternalMic.conf | 0 .../{ => codecs}/rt5651/IN3-HeadsetMic.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Makefile.am | 2 +- .../ucm/{ => codecs}/rt5651/MonoSpeaker.conf | 0 src/conf/ucm/{ => codecs}/rt5651/Speaker.conf | 0 .../HiFi.conf | 14 ++++++------- src/conf/ucm/platforms/Makefile.am | 2 ++ .../ucm/{ => platforms}/bytcr/Makefile.am | 2 +- .../bytcr/PlatformDisableSeq.conf | 0 .../bytcr/PlatformEnableSeq.conf | 0 src/ucm/parser.c | 1 + 52 files changed, 145 insertions(+), 138 deletions(-)create mode 100644 src/conf/ucm/codecs/Makefile.am
rename src/conf/ucm/{ =>codecs}/nau8824/EnableSeq.conf(100%) rename src/conf/ucm/{ =>codecs}/nau8824/HeadPhones.conf(100%) rename src/conf/ucm/{ =>codecs}/nau8824/HeadsetMic.conf(100%) rename src/conf/ucm/{ =>codecs}/nau8824/InternalMic.conf(100%) rename src/conf/ucm/{ => codecs}/nau8824/Makefile.am (79%) rename src/conf/ucm/{ =>codecs}/nau8824/MonoSpeaker.conf(100%) rename src/conf/ucm/{ =>codecs}/nau8824/Speaker.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/DigitalMics.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/EnableSeq.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/HeadPhones.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/HeadsetMic.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/IN1-InternalMic.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/IN3-InternalMic.conf(100%) rename src/conf/ucm/{ => codecs}/rt5640/Makefile.am (82%) rename src/conf/ucm/{ =>codecs}/rt5640/MonoSpeaker.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5640/Speaker.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/EnableSeq.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/HeadPhones-swapped.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/HeadPhones.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/IN1-InternalMic.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/IN12-InternalMic.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/IN2-InternalMic.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/IN3-HeadsetMic.conf(100%) rename src/conf/ucm/{ => codecs}/rt5651/Makefile.am (85%) rename src/conf/ucm/{ =>codecs}/rt5651/MonoSpeaker.conf(100%) rename src/conf/ucm/{ =>codecs}/rt5651/Speaker.conf(100%) create mode 100644 src/conf/ucm/platforms/Makefile.am
rename src/conf/ucm/{ => platforms}/bytcr/Makefile.am (71%) rename src/conf/ucm/{ =>platforms}/bytcr/PlatformDisableSeq.conf(100%) rename src/conf/ucm/{ =>platforms}/bytcr/PlatformEnableSeq.conf(100%)configure.ac +6
-4@@ -720,7 +720,6 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN/Makefile \ src/conf/ucm/broadwell-rt286/Makefile \ src/conf/ucm/broxton-rt298/Makefile \ - src/conf/ucm/bytcr/Makefile \ src/conf/ucm/bytcr-rt5640/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/Makefile \ src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/Makefile \@@ -747,18 +746,21 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/HDAudio-Gigabyte-ALC1220DualCodecs/Makefile \ src/conf/ucm/HDAudio-Lenovo-DualCodecs/Makefile \ src/conf/ucm/LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216/Makefile \ - src/conf/ucm/nau8824/Makefile \ src/conf/ucm/PandaBoard/Makefile \ src/conf/ucm/PandaBoardES/Makefile \ src/conf/ucm/PAZ00/Makefile \ src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/Makefile \ - src/conf/ucm/rt5640/Makefile \ - src/conf/ucm/rt5651/Makefile \ src/conf/ucm/SDP4430/Makefile \ src/conf/ucm/skylake-rt286/Makefile \ src/conf/ucm/TECLAST-X80Pro-Defaultstring-CherryTrailCR/Makefile \ src/conf/ucm/tegraalc5632/Makefile \ src/conf/ucm/VEYRON-I2S/Makefile \ + src/conf/ucm/codecs/Makefile \ + src/conf/ucm/codecs/nau8824/Makefile \ + src/conf/ucm/codecs/rt5640/Makefile \ + src/conf/ucm/codecs/rt5651/Makefile \ + src/conf/ucm/platforms/Makefile \ + src/conf/ucm/platforms/bytcr/Makefile \ src/conf/topology/Makefile \ src/conf/topology/broadwell/Makefile \ modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \src/conf/ucm/Makefile.am +2
-4@@ -1,8 +1,9 @@ SUBDIRS=\ +codecs \ +platforms \ ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \ broadwell-rt286 \ broxton-rt298 \ -bytcr \ bytcr-rt5640 \ bytcr-rt5640-mono-spk-dmic1-mic \ bytcr-rt5640-mono-spk-in1-mic \@@ -29,13 +30,10 @@ gpd-win-pocket-rt5645 \ HDAudio-Gigabyte-ALC1220DualCodecs \ HDAudio-Lenovo-DualCodecs \ LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 \ -nau8824 \ PandaBoard \ PandaBoardES \ PAZ00 \ PIPO-W2S-Defaultstring-CherryTrailCR \ -rt5640 \ -rt5651 \ SDP4430 \ skylake-rt286 \ TECLAST-X80Pro-Defaultstring-CherryTrailCR \src/conf/ucm/PIPO-W2S-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-mono-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-dmic1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/HiFi.conf +7
-7@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,8 +21,8 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5640/HiFi.conf +10
-10@@ -6,13 +6,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformEnableSeq.conf> - <rt5640/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5640/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5640" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -21,11 +21,11 @@ SectionVerb { } } -<rt5640/Speaker.conf> -<rt5640/MonoSpeaker.conf> -<rt5640/HeadPhones.conf> +<codecs/rt5640/Speaker.conf> +<codecs/rt5640/MonoSpeaker.conf> +<codecs/rt5640/HeadPhones.conf> -<rt5640/DigitalMics.conf> -<rt5640/IN1-InternalMic.conf> -<rt5640/IN3-InternalMic.conf> -<rt5640/HeadsetMic.conf> +<codecs/rt5640/DigitalMics.conf> +<codecs/rt5640/IN1-InternalMic.conf> +<codecs/rt5640/IN3-InternalMic.conf> +<codecs/rt5640/HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic-hp-swapped/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones-swapped.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones-swapped.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf +7
-7@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,8 +20,8 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/bytcr-rt5651/HiFi.conf +10
-10@@ -5,13 +5,13 @@ SectionVerb { EnableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformEnableSeq.conf> - <rt5651/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/rt5651/EnableSeq.conf> ] DisableSequence [ cdev "hw:bytcrrt5651" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] Value {@@ -20,11 +20,11 @@ SectionVerb { } } -<rt5651/Speaker.conf> -<rt5651/MonoSpeaker.conf> -<rt5651/HeadPhones.conf> +<codecs/rt5651/Speaker.conf> +<codecs/rt5651/MonoSpeaker.conf> +<codecs/rt5651/HeadPhones.conf> -<rt5651/IN1-InternalMic.conf> -<rt5651/IN2-InternalMic.conf> -<rt5651/IN12-InternalMic.conf> -<rt5651/IN3-HeadsetMic.conf> +<codecs/rt5651/IN1-InternalMic.conf> +<codecs/rt5651/IN2-InternalMic.conf> +<codecs/rt5651/IN12-InternalMic.conf> +<codecs/rt5651/IN3-HeadsetMic.conf>src/conf/ucm/chtnau8824/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/Speaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/Speaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/chtrt5645/HiFi.conf +1
-1@@ -11,7 +11,7 @@ SectionVerb { EnableSequence [ cdev "hw:chtrt5645" - <bytcr/PlatformEnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> # Output Configuration cset "name='DAC1 L Mux' IF1 DAC"src/conf/ucm/codecs/Makefile.am new file +4
-0@@ -0,0 +1,4 @@ +SUBDIRS=\ +rt5640 \ +rt5651 \ +nau8824src/conf/ucm/codecs/nau8824/EnableSeq.conf renamed from src/conf/ucm/nau8824/EnableSeq.conf +0
-0src/conf/ucm/codecs/nau8824/HeadPhones.conf renamed from src/conf/ucm/nau8824/HeadPhones.conf +0
-0src/conf/ucm/codecs/nau8824/HeadsetMic.conf renamed from src/conf/ucm/nau8824/HeadsetMic.conf +0
-0src/conf/ucm/codecs/nau8824/InternalMic.conf renamed from src/conf/ucm/nau8824/InternalMic.conf +0
-0src/conf/ucm/codecs/nau8824/Makefile.am renamed from src/conf/ucm/nau8824/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/nau8824 +ucmdir = $(alsaconfigdir)/ucm/codecs/nau8824 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadsetMic.conf InternalMic.conf \ MonoSpeaker.conf Speaker.conf EXTRA_DIST = $(ucm_DATA)src/conf/ucm/codecs/nau8824/MonoSpeaker.conf renamed from src/conf/ucm/nau8824/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/nau8824/Speaker.conf renamed from src/conf/ucm/nau8824/Speaker.conf +0
-0src/conf/ucm/codecs/rt5640/DigitalMics.conf renamed from src/conf/ucm/rt5640/DigitalMics.conf +0
-0src/conf/ucm/codecs/rt5640/EnableSeq.conf renamed from src/conf/ucm/rt5640/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5640/HeadPhones.conf renamed from src/conf/ucm/rt5640/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5640/HeadsetMic.conf renamed from src/conf/ucm/rt5640/HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN1-InternalMic.conf renamed from src/conf/ucm/rt5640/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/IN3-InternalMic.conf renamed from src/conf/ucm/rt5640/IN3-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5640/Makefile.am renamed from src/conf/ucm/rt5640/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5640 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5640 ucm_DATA = DigitalMics.conf EnableSeq.conf HeadPhones.conf HeadsetMic.conf \ IN1-InternalMic.conf IN3-InternalMic.conf MonoSpeaker.conf Speaker.conf EXTRA_DIST = $(ucm_DATA)src/conf/ucm/codecs/rt5640/MonoSpeaker.conf renamed from src/conf/ucm/rt5640/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5640/Speaker.conf renamed from src/conf/ucm/rt5640/Speaker.conf +0
-0src/conf/ucm/codecs/rt5651/EnableSeq.conf renamed from src/conf/ucm/rt5651/EnableSeq.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones-swapped.conf renamed from src/conf/ucm/rt5651/HeadPhones-swapped.conf +0
-0src/conf/ucm/codecs/rt5651/HeadPhones.conf renamed from src/conf/ucm/rt5651/HeadPhones.conf +0
-0src/conf/ucm/codecs/rt5651/IN1-InternalMic.conf renamed from src/conf/ucm/rt5651/IN1-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN12-InternalMic.conf renamed from src/conf/ucm/rt5651/IN12-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN2-InternalMic.conf renamed from src/conf/ucm/rt5651/IN2-InternalMic.conf +0
-0src/conf/ucm/codecs/rt5651/IN3-HeadsetMic.conf renamed from src/conf/ucm/rt5651/IN3-HeadsetMic.conf +0
-0src/conf/ucm/codecs/rt5651/Makefile.am renamed from src/conf/ucm/rt5651/Makefile.am +1
-1@@ -1,5 +1,5 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/rt5651 +ucmdir = $(alsaconfigdir)/ucm/codecs/rt5651 ucm_DATA = EnableSeq.conf HeadPhones.conf HeadPhones-swapped.conf \ IN1-InternalMic.conf IN2-InternalMic.conf IN12-InternalMic.conf \ IN3-HeadsetMic.conf Speaker.conf MonoSpeaker.confsrc/conf/ucm/codecs/rt5651/MonoSpeaker.conf renamed from src/conf/ucm/rt5651/MonoSpeaker.conf +0
-0src/conf/ucm/codecs/rt5651/Speaker.conf renamed from src/conf/ucm/rt5651/Speaker.conf +0
-0src/conf/ucm/cube-i1_TF-Defaultstring-CherryTrailCR/HiFi.conf +7
-7@@ -11,18 +11,18 @@ SectionVerb { EnableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformEnableSeq.conf> - <nau8824/EnableSeq.conf> + <platforms/bytcr/PlatformEnableSeq.conf> + <codecs/nau8824/EnableSeq.conf> ] DisableSequence [ cdev "hw:chtnau8824" - <bytcr/PlatformDisableSeq.conf> + <platforms/bytcr/PlatformDisableSeq.conf> ] } -<nau8824/MonoSpeaker.conf> -<nau8824/HeadPhones.conf> +<codecs/nau8824/MonoSpeaker.conf> +<codecs/nau8824/HeadPhones.conf> -<nau8824/InternalMic.conf> -<nau8824/HeadsetMic.conf> +<codecs/nau8824/InternalMic.conf> +<codecs/nau8824/HeadsetMic.conf>src/conf/ucm/platforms/Makefile.am new file +2
-0@@ -0,0 +1,2 @@ +SUBDIRS=\ +bytcrsrc/conf/ucm/platforms/bytcr/Makefile.am renamed from src/conf/ucm/bytcr/Makefile.am +1
-1@@ -1,4 +1,4 @@ alsaconfigdir = @ALSA_CONFIG_DIR@ -ucmdir = $(alsaconfigdir)/ucm/bytcr +ucmdir = $(alsaconfigdir)/ucm/platforms/bytcr ucm_DATA = PlatformEnableSeq.conf PlatformDisableSeq.conf EXTRA_DIST = $(ucm_DATA)src/conf/ucm/platforms/bytcr/PlatformDisableSeq.conf renamed from src/conf/ucm/bytcr/PlatformDisableSeq.conf +0
-0src/conf/ucm/platforms/bytcr/PlatformEnableSeq.conf renamed from src/conf/ucm/bytcr/PlatformEnableSeq.conf +0
-0src/ucm/parser.c +1
-0@@ -53,6 +53,7 @@static const char *const component_dir[] = {"codecs" ,/* for off-soc codecs */ "dsps" ,/* for DSPs embedded in SoC */ +"platforms" ,/* for common platform implementations */ NULL ,/* terminator */ };
Quoted 25 lines · Hans de Goede
Hi,
Quoted 13 lines · Takashi Iwai
We have placed UCM profile snippets to be included by the main config
files also in the same directory, src/conf/ucm, it confuses alsaucm
program that scans over all subdirectories. It thinks such a file is
also the main config file, and spews errors like:
% alsaucm
ALSA lib utils.c:67:(uc_mgr_config_load) could not open configuration file/usr/share/alsa/ucm/bytcr/bytcr.confALSA lib parser.c:1427:(load_master_config) error: could not parse configuration for card bytcr
alsaucm: unable to obtain card list: No such file or directoryActually we already defined the subdirectory for such components, and they are skipped at parsing the main configs. So we just need to move the files there -- this is what's done here.
Quoted 7 lines
One more thing done here is to add a new component subdirectory, platforms, for definitions bytcr/* that don't match with neither the existing ones (codecs nor dsps).
Suggested-by Hans de Goede <[email protected]>Acked-by Jaroslav Kysela <[email protected]>Signed-off-by Takashi Iwai <[email protected]>
Quoted 5 lines
Thank you, looks good to me. I've also given this a test run on a bytcr device with a rt5640 codec and everything still works fine:
Reviewed-by Hans de Goede <[email protected]>Tested-by Hans de Goede <[email protected]>
OK, I pushed the fix now.
Also I have another patch to set the ucm subdirectory as the default search path, so that you don't have to set <searchdir:ucm> at each config. Will submit soon later.
thanks,
Takashi