aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2016-04-22 18:37:30 +0100
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2016-04-22 19:06:19 +0100
commit75944a26ac86d2a11ecd7af38126dbb55414898f (patch)
tree559bbd1f7b6092570de9c5451e3adb9634c89f30
parentdf8f0c4263a8161323eee99113813f22b7c60ecf (diff)
downloadmeta-qcom-75944a26ac86d2a11ecd7af38126dbb55414898f.tar.gz
meta-qcom-75944a26ac86d2a11ecd7af38126dbb55414898f.tar.bz2
meta-qcom-75944a26ac86d2a11ecd7af38126dbb55414898f.zip
alsa-lib: add UCM config file for Dragonboard 410c
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--recipes-multimedia/alsa/alsa-lib_%.bbappend3
-rw-r--r--recipes-multimedia/alsa/files/0001-ucm-Add-ucm-files-for-DB410c-board.patch271
2 files changed, 274 insertions, 0 deletions
diff --git a/recipes-multimedia/alsa/alsa-lib_%.bbappend b/recipes-multimedia/alsa/alsa-lib_%.bbappend
new file mode 100644
index 0000000..e2398d3
--- /dev/null
+++ b/recipes-multimedia/alsa/alsa-lib_%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append_dragonboard-410c = "file://0001-ucm-Add-ucm-files-for-DB410c-board.patch"
diff --git a/recipes-multimedia/alsa/files/0001-ucm-Add-ucm-files-for-DB410c-board.patch b/recipes-multimedia/alsa/files/0001-ucm-Add-ucm-files-for-DB410c-board.patch
new file mode 100644
index 0000000..2a61a95
--- /dev/null
+++ b/recipes-multimedia/alsa/files/0001-ucm-Add-ucm-files-for-DB410c-board.patch
@@ -0,0 +1,271 @@
+From c0d12c7434d11f786fee25ddba268d369326ef3c Mon Sep 17 00:00:00 2001
+From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+Date: Fri, 22 Apr 2016 19:11:20 +0200
+Subject: [PATCH] ucm: Add ucm files for DB410c board.
+
+DB410c board has support for both Digital and Analog audio. Digital
+audio is over HDMI and analog is over codec chip integrated inside the
+APQ8016 SOC.
+
+It can support:
+ - 3 Microphones: Primary Mic(Handset mic), Headset Mic and Secondary
+ - 2 Digital Microphones.
+ - Earpiece.
+ - Headset.
+ - Loud Speaker.
+ - HDMI.
+
+Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
+---
+ configure.ac | 1 +
+ src/conf/ucm/DB410c/DB410c.conf | 8 +++
+ src/conf/ucm/DB410c/HDMI | 31 +++++++++
+ src/conf/ucm/DB410c/HiFi | 150 ++++++++++++++++++++++++++++++++++++++++
+ src/conf/ucm/DB410c/Makefile.am | 4 ++
+ src/conf/ucm/Makefile.am | 2 +-
+ 6 files changed, 195 insertions(+), 1 deletion(-)
+ create mode 100644 src/conf/ucm/DB410c/DB410c.conf
+ create mode 100644 src/conf/ucm/DB410c/HDMI
+ create mode 100644 src/conf/ucm/DB410c/HiFi
+ create mode 100644 src/conf/ucm/DB410c/Makefile.am
+
+diff --git a/configure.ac b/configure.ac
+index f0995e3..3b78e4f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -655,6 +655,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
+ src/conf/ucm/tegraalc5632/Makefile \
+ src/conf/ucm/PAZ00/Makefile \
+ src/conf/ucm/GoogleNyan/Makefile \
++ src/conf/ucm/DB410c/Makefile \
+ modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
+ alsalisp/Makefile aserver/Makefile \
+ test/Makefile test/lsb/Makefile \
+diff --git a/src/conf/ucm/DB410c/DB410c.conf b/src/conf/ucm/DB410c/DB410c.conf
+new file mode 100644
+index 0000000..590278f
+--- /dev/null
++++ b/src/conf/ucm/DB410c/DB410c.conf
+@@ -0,0 +1,8 @@
++SectionUseCase."HiFi" {
++ File "HiFi"
++ Comment "Play HiFi quality Music."
++}
++SectionUseCase."HDMI" {
++ File "HDMI"
++ Comment "HDMI output."
++}
+diff --git a/src/conf/ucm/DB410c/HDMI b/src/conf/ucm/DB410c/HDMI
+new file mode 100644
+index 0000000..7927f49
+--- /dev/null
++++ b/src/conf/ucm/DB410c/HDMI
+@@ -0,0 +1,31 @@
++# Use case configuration for DB410c board.
++# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
++
++SectionVerb {
++ EnableSequence [
++ ]
++
++ DisableSequence [
++ ]
++ Value {
++ TQ "HiFi"
++ PlaybackPCM "plughw:0,0"
++ }
++}
++
++SectionDevice."HDMI-stereo" {
++ #Name "HDMI-stereo"
++ Comment "HDMI Digital Stereo Output"
++
++ EnableSequence [
++ cdev "hw:0"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ ]
++
++ Value {
++ PlaybackChannels "2"
++ }
++}
+diff --git a/src/conf/ucm/DB410c/HiFi b/src/conf/ucm/DB410c/HiFi
+new file mode 100644
+index 0000000..9292c7b
+--- /dev/null
++++ b/src/conf/ucm/DB410c/HiFi
+@@ -0,0 +1,150 @@
++# Use case configuration for DB410c board.
++# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
++
++SectionVerb {
++
++ EnableSequence [
++ ]
++
++ DisableSequence [
++ ]
++
++ # ALSA PCM
++ Value {
++ # ALSA PCM device for HiFi
++ PlaybackPCM "plughw:0,1"
++ CapturePCM "plughw:0,2"
++ }
++}
++
++
++SectionDevice."Speaker" {
++ Comment "Speaker playback"
++
++ ConflictingDevice [
++ "Headphones"
++ "Earpiece"
++ ]
++
++ EnableSequence [
++ cdev "hw:0"
++ cset "name='SPK DAC Switch' 1"
++ cset "name='RX3 MIX1 INP1' RX1"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ cset "name='SPK DAC Switch' 0"
++ ##HACK for now
++ cset "name='RX3 MIX1 INP1' 5"
++ ]
++
++ Value {
++ PlaybackChannels "2"
++ }
++}
++
++
++SectionDevice."Headphones" {
++ Comment "Headphones playback"
++
++ ConflictingDevice [
++ "Speaker"
++ "Earpiece"
++ ]
++ EnableSequence [
++ cdev "hw:0"
++ cset "name='RX1 MIX1 INP1' RX1"
++ cset "name='RX2 MIX1 INP1' RX2"
++ cset "name='RX1 Digital Volume' 60"
++ cset "name='RX2 Digital Volume' 60"
++ cset "name='RDAC2 MUX' RX2"
++ cset "name='SPK DAC Switch' 1"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ cset "name='RX1 Digital Volume' 0"
++ cset "name='RX2 Digital Volume' 0"
++ ]
++
++ Value {
++ PlaybackChannels "2"
++ }
++}
++
++SectionDevice."Earpiece" {
++ Comment "Earpiece playback"
++
++ ConflictingDevice [
++ "Speaker"
++ "Headphones"
++ ]
++ EnableSequence [
++ cdev "hw:0"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ ]
++
++ Value {
++ PlaybackChannels "2"
++ }
++}
++
++SectionDevice."Handset" {
++ Comment "Headset Microphone"
++
++ EnableSequence [
++ cdev "hw:0"
++ cset "name='DEC1 MUX' ADC2"
++ cset "name='ADC2 Volume' 70"
++ cset "name='ADC2 MUX' INP2"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ ]
++
++ Value {
++ CaptureChannels "2"
++ }
++}
++
++SectionDevice."Secondarymic" {
++ Comment "Secondary Microphone"
++
++ EnableSequence [
++ cdev "hw:0"
++ cset "name='DEC1 MUX' ADC2"
++ cset "name='ADC2 Volume' 80"
++ cset "name='ADC2 MUX' INP3"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ ]
++
++ Value {
++ CaptureChannels "2"
++ }
++}
++SectionDevice."DMIC" {
++ Comment "Digital Microphone"
++
++ EnableSequence [
++ cdev "hw:0"
++ cset "name='DEC1 MUX' DMIC1"
++ ]
++
++ DisableSequence [
++ cdev "hw:0"
++ ]
++
++ Value {
++ CaptureChannels "2"
++ }
++}
++
++
+diff --git a/src/conf/ucm/DB410c/Makefile.am b/src/conf/ucm/DB410c/Makefile.am
+new file mode 100644
+index 0000000..e10a136
+--- /dev/null
++++ b/src/conf/ucm/DB410c/Makefile.am
+@@ -0,0 +1,4 @@
++alsaconfigdir = @ALSA_CONFIG_DIR@
++ucmdir = $(alsaconfigdir)/ucm/DB410c
++ucm_DATA = DB410c.conf HDMI HiFi
++EXTRA_DIST = $(ucm_DATA)
+diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am
+index 14fc7ae..acf09d5 100644
+--- a/src/conf/ucm/Makefile.am
++++ b/src/conf/ucm/Makefile.am
+@@ -1 +1 @@
+-SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00 GoogleNyan
++SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00 GoogleNyan DB410c
+--
+2.8.1
+