All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/2] conf/ucm: bytcht-es8316 support
@ 2019-01-03 13:50 Hans de Goede
  2019-01-03 13:50 ` [RFC 1/2] conf/ucm: Add UCM profile for bytcht-es8316 boards Hans de Goede
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hans de Goede @ 2019-01-03 13:50 UTC (permalink / raw)
  To: alsa-devel
  Cc: Takashi Iwai, Hans de Goede, linux, Pierre-Louis Bossart, Daniel Drake

Hi All,

Here is the UCM profile to match the kernel patches which I just submitted
upstream. Note this series is RFC for now, since it depends on the name
of a few controls added by the kernel series, as well as on the long_name
set by the kernel series.

Once the kernel series has been merged into -next, this UCM profile series
can be merged as well. I will send another mail when the kernel series has
been accepted.

Regards,

Hans

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [RFC 1/2] conf/ucm: Add UCM profile for bytcht-es8316 boards
  2019-01-03 13:50 [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
@ 2019-01-03 13:50 ` Hans de Goede
  2019-01-03 13:50 ` [RFC 2/2] conf/ucm: bytcht-es8316: Add long-name UCM profiles Hans de Goede
  2019-01-07 11:08 ` [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
  2 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2019-01-03 13:50 UTC (permalink / raw)
  To: alsa-devel
  Cc: Takashi Iwai, Hans de Goede, linux, Pierre-Louis Bossart, Daniel Drake

Add an UCM profile for Bay Trail and Cherry Trail boards with an
ES8316 codec.

Re-use the existing platform enable and disable sequences for BYT/CHT SST
support and add a codecs/es8316 dir with codec specific enable / disable
sequences for the various inputs and outputs.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 configure.ac                                  |  2 +
 src/conf/ucm/Makefile.am                      |  1 +
 src/conf/ucm/bytcht-es8316/HiFi.conf          | 26 ++++++++++++
 src/conf/ucm/bytcht-es8316/Makefile.am        |  4 ++
 src/conf/ucm/bytcht-es8316/bytcht-es8316.conf |  8 ++++
 src/conf/ucm/codecs/Makefile.am               |  1 +
 src/conf/ucm/codecs/es8316/EnableSeq.conf     | 19 +++++++++
 src/conf/ucm/codecs/es8316/HeadPhones.conf    | 24 +++++++++++
 .../ucm/codecs/es8316/IN1-HeadsetMic.conf     | 25 ++++++++++++
 .../ucm/codecs/es8316/IN1-InternalMic.conf    | 24 +++++++++++
 .../ucm/codecs/es8316/IN2-HeadsetMic.conf     | 25 ++++++++++++
 .../ucm/codecs/es8316/IN2-InternalMic.conf    | 24 +++++++++++
 src/conf/ucm/codecs/es8316/Makefile.am        |  7 ++++
 src/conf/ucm/codecs/es8316/MonoSpeaker.conf   | 40 +++++++++++++++++++
 src/conf/ucm/codecs/es8316/Speaker.conf       | 22 ++++++++++
 15 files changed, 252 insertions(+)
 create mode 100644 src/conf/ucm/bytcht-es8316/HiFi.conf
 create mode 100644 src/conf/ucm/bytcht-es8316/Makefile.am
 create mode 100644 src/conf/ucm/bytcht-es8316/bytcht-es8316.conf
 create mode 100644 src/conf/ucm/codecs/es8316/EnableSeq.conf
 create mode 100644 src/conf/ucm/codecs/es8316/HeadPhones.conf
 create mode 100644 src/conf/ucm/codecs/es8316/IN1-HeadsetMic.conf
 create mode 100644 src/conf/ucm/codecs/es8316/IN1-InternalMic.conf
 create mode 100644 src/conf/ucm/codecs/es8316/IN2-HeadsetMic.conf
 create mode 100644 src/conf/ucm/codecs/es8316/IN2-InternalMic.conf
 create mode 100644 src/conf/ucm/codecs/es8316/Makefile.am
 create mode 100644 src/conf/ucm/codecs/es8316/MonoSpeaker.conf
 create mode 100644 src/conf/ucm/codecs/es8316/Speaker.conf

diff --git a/configure.ac b/configure.ac
index a0392bfe..ff2e2799 100644
--- a/configure.ac
+++ b/configure.ac
@@ -720,6 +720,7 @@ 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/bytcht-es8316/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 \
@@ -759,6 +760,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
 	  src/conf/ucm/tegraalc5632/Makefile \
 	  src/conf/ucm/VEYRON-I2S/Makefile \
 	  src/conf/ucm/codecs/Makefile \
+	  src/conf/ucm/codecs/es8316/Makefile \
 	  src/conf/ucm/codecs/nau8824/Makefile \
 	  src/conf/ucm/codecs/rt5640/Makefile \
 	  src/conf/ucm/codecs/rt5651/Makefile \
diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am
index c82637fa..b252f258 100644
--- a/src/conf/ucm/Makefile.am
+++ b/src/conf/ucm/Makefile.am
@@ -4,6 +4,7 @@ platforms \
 ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \
 broadwell-rt286 \
 broxton-rt298 \
+bytcht-es8316 \
 bytcr-rt5640 \
 bytcr-rt5640-mono-spk-dmic1-mic \
 bytcr-rt5640-mono-spk-in1-mic \
diff --git a/src/conf/ucm/bytcht-es8316/HiFi.conf b/src/conf/ucm/bytcht-es8316/HiFi.conf
new file mode 100644
index 00000000..7af3daaf
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316/HiFi.conf
@@ -0,0 +1,26 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformEnableSeq.conf>
+		<codecs/es8316/EnableSeq.conf>
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformDisableSeq.conf>
+	]
+
+	Value {
+		PlaybackPCM "hw:bytchtes8316"
+		CapturePCM "hw:bytchtes8316"
+	}
+}
+
+<codecs/es8316/Speaker.conf>
+<codecs/es8316/MonoSpeaker.conf>
+<codecs/es8316/HeadPhones.conf>
+
+<codecs/es8316/IN1-InternalMic.conf>
+<codecs/es8316/IN2-InternalMic.conf>
+<codecs/es8316/IN1-HeadsetMic.conf>
+<codecs/es8316/IN2-HeadsetMic.conf>
diff --git a/src/conf/ucm/bytcht-es8316/Makefile.am b/src/conf/ucm/bytcht-es8316/Makefile.am
new file mode 100644
index 00000000..bc8fa669
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316/Makefile.am
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcht-es8316
+ucm_DATA = bytcht-es8316.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcht-es8316/bytcht-es8316.conf b/src/conf/ucm/bytcht-es8316/bytcht-es8316.conf
new file mode 100644
index 00000000..e77e2977
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316/bytcht-es8316.conf
@@ -0,0 +1,8 @@
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+	cdev "hw:bytchtes8316"
+]
diff --git a/src/conf/ucm/codecs/Makefile.am b/src/conf/ucm/codecs/Makefile.am
index 2b374acb..0ea5399d 100644
--- a/src/conf/ucm/codecs/Makefile.am
+++ b/src/conf/ucm/codecs/Makefile.am
@@ -1,4 +1,5 @@
 SUBDIRS=\
+es8316 \
 rt5640 \
 rt5651 \
 nau8824
diff --git a/src/conf/ucm/codecs/es8316/EnableSeq.conf b/src/conf/ucm/codecs/es8316/EnableSeq.conf
new file mode 100644
index 00000000..551b79b7
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/EnableSeq.conf
@@ -0,0 +1,19 @@
+# Disable all inputs / outputs
+cset "name='Speaker Switch' off"
+cset "name='Headphone Switch' off"
+cset "name='Headset Mic Switch' off"
+cset "name='Internal Mic Switch' off"
+
+# Set HP vol to 0 dB (3/3)
+cset "name='Headphone Playback Volume' 3"
+# Set HP mixer vol to -6 dB (4/7) louder does not work
+cset "name='Headphone Mixer Volume' 4"
+# Set DAC vol to 0 dB (192/192)
+cset "name='DAC Playback Volume' 192"
+# Set ADC vold to 0 dB (10/10)
+cset "name='ADC PGA Gain Volume' 10"
+
+# Setup muxes / switches
+cset "name='Left Headphone Mixer Left DAC Switch' on"
+cset "name='Right Headphone Mixer Right DAC Switch' on"	
+cset "name='ALC Capture Switch' on"
diff --git a/src/conf/ucm/codecs/es8316/HeadPhones.conf b/src/conf/ucm/codecs/es8316/HeadPhones.conf
new file mode 100644
index 00000000..ff13ef1b
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/HeadPhones.conf
@@ -0,0 +1,24 @@
+SectionDevice."Headphones" {
+	Comment "Headphones"
+
+	ConflictingDevice [
+		"Speaker"
+		"MonoSpeaker"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Headphone Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Headphone Switch' off"
+	]
+
+	Value {
+		PlaybackChannels "2"
+		JackControl "Headphone Jack"
+		JackHWMute "Speaker MonoSpeaker"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/IN1-HeadsetMic.conf b/src/conf/ucm/codecs/es8316/IN1-HeadsetMic.conf
new file mode 100644
index 00000000..05016468
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/IN1-HeadsetMic.conf
@@ -0,0 +1,25 @@
+SectionDevice."HeadsetMic-IN1" {
+	Comment "Headset Microphone on IN1"
+
+	ConflictingDevice [
+		"InternalMic-IN1"
+		"InternalMic-IN2"
+		"HeadsetMic-IN2"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Differential Mux' lin1-rin1"
+		cset "name='Headset Mic Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Headset Mic Switch' off"
+	]
+
+	Value {
+		CaptureChannels "2"
+		JackControl "Headset Mic Jack"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/IN1-InternalMic.conf b/src/conf/ucm/codecs/es8316/IN1-InternalMic.conf
new file mode 100644
index 00000000..5386fda7
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/IN1-InternalMic.conf
@@ -0,0 +1,24 @@
+SectionDevice."InternalMic-IN1" {
+	Comment "Internal Microphone on IN1"
+
+	ConflictingDevice [
+		"InternalMic-IN2"
+		"HeadsetMic-IN1"
+		"HeadsetMic-IN2"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Differential Mux' lin1-rin1"
+		cset "name='Internal Mic Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Internal Mic Switch' off"
+	]
+
+	Value {
+		CaptureChannels "2"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/IN2-HeadsetMic.conf b/src/conf/ucm/codecs/es8316/IN2-HeadsetMic.conf
new file mode 100644
index 00000000..229e7e7b
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/IN2-HeadsetMic.conf
@@ -0,0 +1,25 @@
+SectionDevice."HeadsetMic-IN2" {
+	Comment "Headset Microphone on IN2"
+
+	ConflictingDevice [
+		"InternalMic-IN1"
+		"InternalMic-IN2"
+		"HeadsetMic-IN1"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Differential Mux' lin2-rin2"
+		cset "name='Headset Mic Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Headset Mic Switch' off"
+	]
+
+	Value {
+		CaptureChannels "2"
+		JackControl "Headset Mic Jack"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/IN2-InternalMic.conf b/src/conf/ucm/codecs/es8316/IN2-InternalMic.conf
new file mode 100644
index 00000000..59892fdc
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/IN2-InternalMic.conf
@@ -0,0 +1,24 @@
+SectionDevice."InternalMic-IN2" {
+	Comment "Internal Microphone on IN2"
+
+	ConflictingDevice [
+		"InternalMic-IN1"
+		"HeadsetMic-IN1"
+		"HeadsetMic-IN2"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Differential Mux' lin2-rin2"
+		cset "name='Internal Mic Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Internal Mic Switch' off"
+	]
+
+	Value {
+		CaptureChannels "2"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/Makefile.am b/src/conf/ucm/codecs/es8316/Makefile.am
new file mode 100644
index 00000000..36eeebce
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/Makefile.am
@@ -0,0 +1,7 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/codecs/es8316
+ucm_DATA = EnableSeq.conf HeadPhones.conf \
+	   IN1-InternalMic.conf IN2-InternalMic.conf \
+	   IN1-HeadsetMic.conf IN2-HeadsetMic.conf \
+	   Speaker.conf MonoSpeaker.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/codecs/es8316/MonoSpeaker.conf b/src/conf/ucm/codecs/es8316/MonoSpeaker.conf
new file mode 100644
index 00000000..b1a95a5b
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/MonoSpeaker.conf
@@ -0,0 +1,40 @@
+SectionDevice."MonoSpeaker" {
+	Comment "Mono Speaker"
+
+	ConflictingDevice [
+		"Speaker"
+		"Headphones"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+
+		# BYT/CHT devices with an ES8316 codec use a single speaker
+		# connected between the headhpone LOUT and ROUT pins, expecting
+		# the output to be in a mono differential mode. Presumably this
+		# is done to use the power of both the left and right headphone
+		# amplifier channels to allow the speaker to be louder.
+		#
+		# The ES8316 codec does not have a differential output mode, but
+		# we can emulate one by making both channels output the exact
+		# same signal by setting the "DAC Mono Mix Switch", combined
+		# with setting the "Playback Polarity" control to "R Invert",
+		# which applies a 180 degrees phase inversion to the right chan.
+		cset "name='DAC Mono Mix Switch' on"
+		cset "name='Playback Polarity' 1"
+
+		cset "name='Speaker Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Speaker Switch' off"
+		# DAC settings back to normal for stereo headphones output
+		cset "name='Playback Polarity' 0"
+		cset "name='DAC Mono Mix Switch' off"
+	]
+
+	Value {
+		PlaybackChannels "2"
+	}
+}
diff --git a/src/conf/ucm/codecs/es8316/Speaker.conf b/src/conf/ucm/codecs/es8316/Speaker.conf
new file mode 100644
index 00000000..f0894c74
--- /dev/null
+++ b/src/conf/ucm/codecs/es8316/Speaker.conf
@@ -0,0 +1,22 @@
+SectionDevice."Speaker" {
+	Comment "Speakers"
+
+	ConflictingDevice [
+		"MonoSpeaker"
+		"Headphones"
+	]
+
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Speaker Switch' on"
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		cset "name='Speaker Switch' off"
+	]
+
+	Value {
+		PlaybackChannels "2"
+	}
+}
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [RFC 2/2] conf/ucm: bytcht-es8316: Add long-name UCM profiles
  2019-01-03 13:50 [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
  2019-01-03 13:50 ` [RFC 1/2] conf/ucm: Add UCM profile for bytcht-es8316 boards Hans de Goede
@ 2019-01-03 13:50 ` Hans de Goede
  2019-01-07 11:08 ` [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
  2 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2019-01-03 13:50 UTC (permalink / raw)
  To: alsa-devel
  Cc: Takashi Iwai, Hans de Goede, linux, Pierre-Louis Bossart, Daniel Drake

After recent kernel work, the kernel now sets a long-name for bytcht-es8316
boards which indicates if a single (mono) speaker or stereo speakers are
used and if in1 or in2 is used for the internal mic (the headset mic will
be on the other input).

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

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 configure.ac                                  |  4 ++++
 src/conf/ucm/Makefile.am                      |  4 ++++
 .../bytcht-es8316-mono-spk-in1-mic/HiFi.conf  | 23 +++++++++++++++++++
 .../Makefile.am                               |  4 ++++
 .../bytcht-es8316-mono-spk-in1-mic.conf       |  8 +++++++
 .../bytcht-es8316-mono-spk-in2-mic/HiFi.conf  | 23 +++++++++++++++++++
 .../Makefile.am                               |  4 ++++
 .../bytcht-es8316-mono-spk-in2-mic.conf       |  8 +++++++
 .../HiFi.conf                                 | 23 +++++++++++++++++++
 .../Makefile.am                               |  4 ++++
 .../bytcht-es8316-stereo-spk-in1-mic.conf     |  8 +++++++
 .../HiFi.conf                                 | 23 +++++++++++++++++++
 .../Makefile.am                               |  4 ++++
 .../bytcht-es8316-stereo-spk-in2-mic.conf     |  8 +++++++
 14 files changed, 148 insertions(+)
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile.am
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile.am
 create mode 100644 src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/Makefile.am
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/Makefile.am
 create mode 100644 src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf

diff --git a/configure.ac b/configure.ac
index ff2e2799..9b099b7f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -721,6 +721,10 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
 	  src/conf/ucm/broadwell-rt286/Makefile \
 	  src/conf/ucm/broxton-rt298/Makefile \
 	  src/conf/ucm/bytcht-es8316/Makefile \
+	  src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile \
+	  src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile \
+	  src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/Makefile \
+	  src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/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 \
diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am
index b252f258..ee850ee6 100644
--- a/src/conf/ucm/Makefile.am
+++ b/src/conf/ucm/Makefile.am
@@ -5,6 +5,10 @@ ASUSTeKCOMPUTERINC.-T100HAN-1.0-T100HAN \
 broadwell-rt286 \
 broxton-rt298 \
 bytcht-es8316 \
+bytcht-es8316-mono-spk-in1-mic \
+bytcht-es8316-mono-spk-in2-mic \
+bytcht-es8316-stereo-spk-in1-mic \
+bytcht-es8316-stereo-spk-in2-mic \
 bytcr-rt5640 \
 bytcr-rt5640-mono-spk-dmic1-mic \
 bytcr-rt5640-mono-spk-in1-mic \
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf
new file mode 100644
index 00000000..97899495
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf
@@ -0,0 +1,23 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformEnableSeq.conf>
+		<codecs/es8316/EnableSeq.conf>
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformDisableSeq.conf>
+	]
+
+	Value {
+		PlaybackPCM "hw:bytchtes8316"
+		CapturePCM "hw:bytchtes8316"
+	}
+}
+
+<codecs/es8316/MonoSpeaker.conf>
+<codecs/es8316/HeadPhones.conf>
+
+<codecs/es8316/IN1-InternalMic.conf>
+<codecs/es8316/IN2-HeadsetMic.conf>
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile.am b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile.am
new file mode 100644
index 00000000..420592fc
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/Makefile.am
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcht-es8316-mono-spk-in1-mic
+ucm_DATA = bytcht-es8316-mono-spk-in1-mic.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf
new file mode 100644
index 00000000..26d82ead
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf
@@ -0,0 +1,8 @@
+SectionUseCase."HiFi" {
+	File "../bytcht-es8316-mono-spk-in1-mic/HiFi.conf"
+	Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+	cdev "hw:bytchtes8316"
+]
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf
new file mode 100644
index 00000000..2821eb51
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf
@@ -0,0 +1,23 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformEnableSeq.conf>
+		<codecs/es8316/EnableSeq.conf>
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformDisableSeq.conf>
+	]
+
+	Value {
+		PlaybackPCM "hw:bytchtes8316"
+		CapturePCM "hw:bytchtes8316"
+	}
+}
+
+<codecs/es8316/MonoSpeaker.conf>
+<codecs/es8316/HeadPhones.conf>
+
+<codecs/es8316/IN1-HeadsetMic.conf>
+<codecs/es8316/IN2-InternalMic.conf>
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile.am b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile.am
new file mode 100644
index 00000000..939c8b7d
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/Makefile.am
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcht-es8316-mono-spk-in2-mic
+ucm_DATA = bytcht-es8316-mono-spk-in2-mic.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf
new file mode 100644
index 00000000..b9885c2d
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf
@@ -0,0 +1,8 @@
+SectionUseCase."HiFi" {
+	File "../bytcht-es8316-mono-spk-in2-mic/HiFi.conf"
+	Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+	cdev "hw:bytchtes8316"
+]
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf
new file mode 100644
index 00000000..9f1801c9
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf
@@ -0,0 +1,23 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformEnableSeq.conf>
+		<codecs/es8316/EnableSeq.conf>
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformDisableSeq.conf>
+	]
+
+	Value {
+		PlaybackPCM "hw:bytchtes8316"
+		CapturePCM "hw:bytchtes8316"
+	}
+}
+
+<codecs/es8316/Speaker.conf>
+<codecs/es8316/HeadPhones.conf>
+
+<codecs/es8316/IN1-InternalMic.conf>
+<codecs/es8316/IN2-HeadsetMic.conf>
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/Makefile.am b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/Makefile.am
new file mode 100644
index 00000000..d3fbb9e9
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/Makefile.am
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcht-es8316-stereo-spk-in1-mic
+ucm_DATA = bytcht-es8316-stereo-spk-in1-mic.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf
new file mode 100644
index 00000000..9bd32664
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf
@@ -0,0 +1,8 @@
+SectionUseCase."HiFi" {
+	File "../bytcht-es8316-stereo-spk-in1-mic/HiFi.conf"
+	Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+	cdev "hw:bytchtes8316"
+]
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf
new file mode 100644
index 00000000..00d4b7fe
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf
@@ -0,0 +1,23 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformEnableSeq.conf>
+		<codecs/es8316/EnableSeq.conf>
+	]
+
+	DisableSequence [
+		cdev "hw:bytchtes8316"
+		<platforms/bytcr/PlatformDisableSeq.conf>
+	]
+
+	Value {
+		PlaybackPCM "hw:bytchtes8316"
+		CapturePCM "hw:bytchtes8316"
+	}
+}
+
+<codecs/es8316/Speaker.conf>
+<codecs/es8316/HeadPhones.conf>
+
+<codecs/es8316/IN1-HeadsetMic.conf>
+<codecs/es8316/IN2-InternalMic.conf>
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/Makefile.am b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/Makefile.am
new file mode 100644
index 00000000..f92fab48
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/Makefile.am
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcht-es8316-stereo-spk-in2-mic
+ucm_DATA = bytcht-es8316-stereo-spk-in2-mic.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf
new file mode 100644
index 00000000..a94f0f70
--- /dev/null
+++ b/src/conf/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf
@@ -0,0 +1,8 @@
+SectionUseCase."HiFi" {
+	File "../bytcht-es8316-stereo-spk-in2-mic/HiFi.conf"
+	Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+	cdev "hw:bytchtes8316"
+]
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [RFC 0/2] conf/ucm: bytcht-es8316 support
  2019-01-03 13:50 [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
  2019-01-03 13:50 ` [RFC 1/2] conf/ucm: Add UCM profile for bytcht-es8316 boards Hans de Goede
  2019-01-03 13:50 ` [RFC 2/2] conf/ucm: bytcht-es8316: Add long-name UCM profiles Hans de Goede
@ 2019-01-07 11:08 ` Hans de Goede
  2019-01-07 11:44   ` Jaroslav Kysela
  2 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2019-01-07 11:08 UTC (permalink / raw)
  To: alsa-devel; +Cc: Takashi Iwai, linux, Pierre-Louis Bossart, Daniel Drake

Hi,

On 03-01-19 14:50, Hans de Goede wrote:
> Hi All,
> 
> Here is the UCM profile to match the kernel patches which I just submitted
> upstream. Note this series is RFC for now, since it depends on the name
> of a few controls added by the kernel series, as well as on the long_name
> set by the kernel series.
> 
> Once the kernel series has been merged into -next, this UCM profile series
> can be merged as well. I will send another mail when the kernel series has
> been accepted.

The kernel patches for this are in -next now, so the alsa-lib patches from
this series are now no longer RFC and can be merged now.

Regards,

Hans

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [RFC 0/2] conf/ucm: bytcht-es8316 support
  2019-01-07 11:08 ` [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
@ 2019-01-07 11:44   ` Jaroslav Kysela
  0 siblings, 0 replies; 5+ messages in thread
From: Jaroslav Kysela @ 2019-01-07 11:44 UTC (permalink / raw)
  To: Hans de Goede, alsa-devel
  Cc: Takashi Iwai, linux, Pierre-Louis Bossart, Daniel Drake

Dne 7.1.2019 v 12:08 Hans de Goede napsal(a):
> Hi,
> 
> On 03-01-19 14:50, Hans de Goede wrote:
>> Hi All,
>>
>> Here is the UCM profile to match the kernel patches which I just submitted
>> upstream. Note this series is RFC for now, since it depends on the name
>> of a few controls added by the kernel series, as well as on the long_name
>> set by the kernel series.
>>
>> Once the kernel series has been merged into -next, this UCM profile series
>> can be merged as well. I will send another mail when the kernel series has
>> been accepted.
> 
> The kernel patches for this are in -next now, so the alsa-lib patches from
> this series are now no longer RFC and can be merged now.

I applied both patches. Thanks.

					Jaroslav

-- 
Jaroslav Kysela <perex@perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-07 11:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-03 13:50 [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
2019-01-03 13:50 ` [RFC 1/2] conf/ucm: Add UCM profile for bytcht-es8316 boards Hans de Goede
2019-01-03 13:50 ` [RFC 2/2] conf/ucm: bytcht-es8316: Add long-name UCM profiles Hans de Goede
2019-01-07 11:08 ` [RFC 0/2] conf/ucm: bytcht-es8316 support Hans de Goede
2019-01-07 11:44   ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.