conf/ucm: bytcr-rt5651: Add bytcr-rt5651-stereo-spk-dmic-mic config
authorHans de Goede <hdegoede@redhat.com>
Mon, 24 Dec 2018 15:05:04 +0000 (16:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 1 Jan 2019 19:37:16 +0000 (20:37 +0100)
Add a config for boards which use a digital mic as internal mic,
combined with having the headset mic on in2.

An example of such a board is the Point of View TAB-P1006W-232 (v1.0) tablet.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

configure.ac
src/conf/ucm/Makefile.am
src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/HiFi.conf [new file with mode: 0644]
src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/Makefile.am [new file with mode: 0644]
src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/bytcr-rt5651-stereo-spk-dmic-mic.conf [new file with mode: 0644]

index 6533e3f..a0392bf 100644 (file)
@@ -731,6 +731,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
          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-mono-spk-in2-mic-hp-swapped/Makefile \
+         src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-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 \
index 601f796..c82637f 100644 (file)
@@ -15,6 +15,7 @@ bytcr-rt5651 \
 bytcr-rt5651-mono-spk-in1-mic \
 bytcr-rt5651-mono-spk-in2-mic \
 bytcr-rt5651-mono-spk-in2-mic-hp-swapped \
+bytcr-rt5651-stereo-spk-dmic-mic \
 bytcr-rt5651-stereo-spk-in1-mic \
 bytcr-rt5651-stereo-spk-in2-mic \
 bytcr-rt5651-stereo-spk-in12-mic \
diff --git a/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/HiFi.conf b/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/HiFi.conf
new file mode 100644 (file)
index 0000000..abf5fc7
--- /dev/null
@@ -0,0 +1,26 @@
+# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
+
+
+SectionVerb {
+       EnableSequence [
+               cdev "hw:bytcrrt5651"
+               <platforms/bytcr/PlatformEnableSeq.conf>
+               <codecs/rt5651/EnableSeq.conf>
+       ]
+
+       DisableSequence [
+               cdev "hw:bytcrrt5651"
+               <platforms/bytcr/PlatformDisableSeq.conf>
+       ]
+
+       Value {
+               PlaybackPCM "hw:bytcrrt5651"
+               CapturePCM "hw:bytcrrt5651"
+       }
+}
+
+<codecs/rt5651/Speaker.conf>
+<codecs/rt5651/HeadPhones.conf>
+
+<codecs/rt5651/DigitalMic.conf>
+<codecs/rt5651/IN2-HeadsetMic.conf>
diff --git a/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/Makefile.am b/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/Makefile.am
new file mode 100644 (file)
index 0000000..0705450
--- /dev/null
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/bytcr-rt5651-stereo-spk-dmic-mic
+ucm_DATA = bytcr-rt5651-stereo-spk-dmic-mic.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
diff --git a/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/bytcr-rt5651-stereo-spk-dmic-mic.conf b/src/conf/ucm/bytcr-rt5651-stereo-spk-dmic-mic/bytcr-rt5651-stereo-spk-dmic-mic.conf
new file mode 100644 (file)
index 0000000..de8d954
--- /dev/null
@@ -0,0 +1,10 @@
+# Adapted from https://github.com/plbossart/UCM/tree/master/bytcr-rt5651
+
+SectionUseCase."HiFi" {
+       File "../bytcr-rt5651-stereo-spk-dmic-mic/HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+
+SectionDefaults [
+       cdev "hw:bytcrrt5651"
+]