conf/ucm: bytcr-rt5651: Add long-name UCM profiles

After recent kernel work, the kernel now sets a long-name for bytcr-rt5651
boards which indicates if a single (mono) speaker or stereo speakers are
used and if in1, in2, or in1 and 2 are used for the internal mic(s) (the
headset mic sofar is always on in3).

This commit adds UCM profiles for bytcr-rt5651 boards using these new
long-names, based on the generic bytcr-rt5651 profile.

Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Hans de Goede 2018-08-08 11:05:41 +02:00 committed by Jaroslav Kysela
parent 5b39b6b16e
commit bd770a44b2
17 changed files with 215 additions and 0 deletions

View file

@ -729,6 +729,11 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
src/conf/ucm/bytcr-rt5640-stereo-spk-in1-mic/Makefile \
src/conf/ucm/bytcr-rt5640-stereo-spk-in3-mic/Makefile \
src/conf/ucm/bytcr-rt5651/Makefile \
src/conf/ucm/bytcr-rt5651-mono-spk-in1-mic/Makefile \
src/conf/ucm/bytcr-rt5651-mono-spk-in2-mic/Makefile \
src/conf/ucm/bytcr-rt5651-stereo-spk-in1-mic/Makefile \
src/conf/ucm/bytcr-rt5651-stereo-spk-in2-mic/Makefile \
src/conf/ucm/bytcr-rt5651-stereo-spk-in12-mic/Makefile \
src/conf/ucm/chtnau8824/Makefile \
src/conf/ucm/chtrt5645/Makefile \
src/conf/ucm/chtrt5645-mono-speaker-analog-mic/Makefile \

View file

@ -11,6 +11,11 @@ bytcr-rt5640-stereo-spk-dmic1-mic \
bytcr-rt5640-stereo-spk-in1-mic \
bytcr-rt5640-stereo-spk-in3-mic \
bytcr-rt5651 \
bytcr-rt5651-mono-spk-in1-mic \
bytcr-rt5651-mono-spk-in2-mic \
bytcr-rt5651-stereo-spk-in1-mic \
bytcr-rt5651-stereo-spk-in2-mic \
bytcr-rt5651-stereo-spk-in12-mic \
chtnau8824 \
chtrt5645 \
chtrt5645-mono-speaker-analog-mic \

View file

@ -0,0 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
<searchdir:ucm>
SectionVerb {
EnableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformEnableSeq.conf>
<rt5651/EnableSeq.conf>
]
DisableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformDisableSeq.conf>
]
Value {
PlaybackPCM "hw:bytcrrt5651"
CapturePCM "hw:bytcrrt5651"
}
}
<rt5651/MonoSpeaker.conf>
<rt5651/HeadPhones.conf>
<rt5651/IN1-InternalMic.conf>
<rt5651/IN3-HeadsetMic.conf>

View file

@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-mono-spk-in1-mic
ucm_DATA = bytcr-rt5651-mono-spk-in1-mic.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)

View file

@ -0,0 +1,10 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
SectionUseCase."HiFi" {
File "../bytcr-rt5651-mono-spk-in1-mic/HiFi.conf"
Comment "Play HiFi quality Music"
}
SectionDefaults [
cdev "hw:bytcrrt5651"
]

View file

@ -0,0 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
<searchdir:ucm>
SectionVerb {
EnableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformEnableSeq.conf>
<rt5651/EnableSeq.conf>
]
DisableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformDisableSeq.conf>
]
Value {
PlaybackPCM "hw:bytcrrt5651"
CapturePCM "hw:bytcrrt5651"
}
}
<rt5651/MonoSpeaker.conf>
<rt5651/HeadPhones.conf>
<rt5651/IN2-InternalMic.conf>
<rt5651/IN3-HeadsetMic.conf>

View file

@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-mono-spk-in2-mic
ucm_DATA = bytcr-rt5651-mono-spk-in2-mic.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)

View file

@ -0,0 +1,10 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
SectionUseCase."HiFi" {
File "../bytcr-rt5651-mono-spk-in2-mic/HiFi.conf"
Comment "Play HiFi quality Music"
}
SectionDefaults [
cdev "hw:bytcrrt5651"
]

View file

@ -0,0 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
<searchdir:ucm>
SectionVerb {
EnableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformEnableSeq.conf>
<rt5651/EnableSeq.conf>
]
DisableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformDisableSeq.conf>
]
Value {
PlaybackPCM "hw:bytcrrt5651"
CapturePCM "hw:bytcrrt5651"
}
}
<rt5651/Speaker.conf>
<rt5651/HeadPhones.conf>
<rt5651/IN1-InternalMic.conf>
<rt5651/IN3-HeadsetMic.conf>

View file

@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-stereo-spk-in1-mic
ucm_DATA = bytcr-rt5651-stereo-spk-in1-mic.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)

View file

@ -0,0 +1,10 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
SectionUseCase."HiFi" {
File "../bytcr-rt5651-stereo-spk-in1-mic/HiFi.conf"
Comment "Play HiFi quality Music"
}
SectionDefaults [
cdev "hw:bytcrrt5651"
]

View file

@ -0,0 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
<searchdir:ucm>
SectionVerb {
EnableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformEnableSeq.conf>
<rt5651/EnableSeq.conf>
]
DisableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformDisableSeq.conf>
]
Value {
PlaybackPCM "hw:bytcrrt5651"
CapturePCM "hw:bytcrrt5651"
}
}
<rt5651/Speaker.conf>
<rt5651/HeadPhones.conf>
<rt5651/IN12-InternalMic.conf>
<rt5651/IN3-HeadsetMic.conf>

View file

@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-stereo-spk-in12-mic
ucm_DATA = bytcr-rt5651-stereo-spk-in12-mic.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)

View file

@ -0,0 +1,10 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
SectionUseCase."HiFi" {
File "../bytcr-rt5651-stereo-spk-in12-mic/HiFi.conf"
Comment "Play HiFi quality Music"
}
SectionDefaults [
cdev "hw:bytcrrt5651"
]

View file

@ -0,0 +1,27 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
<searchdir:ucm>
SectionVerb {
EnableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformEnableSeq.conf>
<rt5651/EnableSeq.conf>
]
DisableSequence [
cdev "hw:bytcrrt5651"
<bytcr/PlatformDisableSeq.conf>
]
Value {
PlaybackPCM "hw:bytcrrt5651"
CapturePCM "hw:bytcrrt5651"
}
}
<rt5651/Speaker.conf>
<rt5651/HeadPhones.conf>
<rt5651/IN2-InternalMic.conf>
<rt5651/IN3-HeadsetMic.conf>

View file

@ -0,0 +1,4 @@
alsaconfigdir = @ALSA_CONFIG_DIR@
ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-stereo-spk-in2-mic
ucm_DATA = bytcr-rt5651-stereo-spk-in2-mic.conf HiFi.conf
EXTRA_DIST = $(ucm_DATA)

View file

@ -0,0 +1,10 @@
# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
SectionUseCase."HiFi" {
File "../bytcr-rt5651-stereo-spk-in2-mic/HiFi.conf"
Comment "Play HiFi quality Music"
}
SectionDefaults [
cdev "hw:bytcrrt5651"
]