From 220efcf59c12bb3b6022bdbc3fc54e689451b6ba Mon Sep 17 00:00:00 2001 From: Srinivas Kandagatla Date: Wed, 17 Apr 2019 15:20:27 +0100 Subject: [PATCH 02/10] ucm: Add: ucm files for DB845c HDMI audio Signed-off-by: Srinivas Kandagatla --- configure.ac | 1 + src/conf/ucm/DB845c/DB845c.conf | 4 ++++ src/conf/ucm/DB845c/HDMI | 37 +++++++++++++++++++++++++++++++++ src/conf/ucm/DB845c/Makefile.am | 4 ++++ src/conf/ucm/Makefile.am | 1 + 5 files changed, 47 insertions(+) create mode 100644 src/conf/ucm/DB845c/DB845c.conf create mode 100644 src/conf/ucm/DB845c/HDMI create mode 100644 src/conf/ucm/DB845c/Makefile.am diff --git a/configure.ac b/configure.ac index 0fb34de4..ebea5949 100644 --- a/configure.ac +++ b/configure.ac @@ -748,6 +748,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \ src/conf/ucm/DAISY-I2S/Makefile \ src/conf/ucm/DB410c/Makefile \ src/conf/ucm/DB820c/Makefile \ + src/conf/ucm/DB845c/Makefile \ src/conf/ucm/Dell-WD15-Dock/Makefile \ src/conf/ucm/GoogleNyan/Makefile \ src/conf/ucm/gpd-win-pocket-rt5645/Makefile \ diff --git a/src/conf/ucm/DB845c/DB845c.conf b/src/conf/ucm/DB845c/DB845c.conf new file mode 100644 index 00000000..49c688e5 --- /dev/null +++ b/src/conf/ucm/DB845c/DB845c.conf @@ -0,0 +1,4 @@ +SectionUseCase."HDMI" { + File "HDMI" + Comment "HDMI output." +} diff --git a/src/conf/ucm/DB845c/HDMI b/src/conf/ucm/DB845c/HDMI new file mode 100644 index 00000000..fdac94e5 --- /dev/null +++ b/src/conf/ucm/DB845c/HDMI @@ -0,0 +1,37 @@ +# Use case configuration for DB845c board. +# Author: Srinivas Kandagatla + +SectionVerb { + EnableSequence [ + cdev "hw:0" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 1" + ] + + DisableSequence [ + cdev "hw:0" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 0" + ] + Value { + TQ "HiFi" + PlaybackPCM "plughw:0,0" + } +} + +SectionDevice."HDMI-stereo" { + #Name "HDMI-stereo" + Comment "HDMI Digital Stereo Output" + + EnableSequence [ + cdev "hw:0" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 1" + ] + + DisableSequence [ + cdev "hw:0" + cset "name='QUAT_MI2S_RX Audio Mixer MultiMedia1' 0" + ] + + Value { + PlaybackChannels "2" + } +} diff --git a/src/conf/ucm/DB845c/Makefile.am b/src/conf/ucm/DB845c/Makefile.am new file mode 100644 index 00000000..34b28d86 --- /dev/null +++ b/src/conf/ucm/DB845c/Makefile.am @@ -0,0 +1,4 @@ +alsaconfigdir = @ALSA_CONFIG_DIR@ +ucmdir = $(alsaconfigdir)/ucm/DB845c +ucm_DATA = DB845c.conf HDMI +EXTRA_DIST = $(ucm_DATA) diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am index e9f88ed6..46d246ea 100644 --- a/src/conf/ucm/Makefile.am +++ b/src/conf/ucm/Makefile.am @@ -32,6 +32,7 @@ cube-i1_TF-Defaultstring-CherryTrailCR \ DAISY-I2S \ DB410c \ DB820c \ +DB845c \ Dell-WD15-Dock \ GoogleNyan \ gpd-win-pocket-rt5645 \ -- 2.24.0