conf/ucm: Add a UCM profile for Dell WD19 Dock USB-audio
authorHui Wang <hui.wang@canonical.com>
Tue, 27 Nov 2018 01:36:28 +0000 (09:36 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 25 Jan 2019 08:06:11 +0000 (09:06 +0100)
USB-audio device on Dell WD19 docking station provides two individual
output PCM streams, one for headphone Jack and another for speaker out
Jack. A UCM profile gives the proper roles for these.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

src/conf/ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf [new file with mode: 0644]
src/conf/ucm/Dell-WD19-Dock/HiFi.conf [new file with mode: 0644]
src/conf/ucm/Dell-WD19-Dock/Makefile.am [new file with mode: 0644]

diff --git a/src/conf/ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf b/src/conf/ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf
new file mode 100644 (file)
index 0000000..465ff55
--- /dev/null
@@ -0,0 +1,5 @@
+Comment "USB-audio on Dell WD19 docking station"
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Default"
+}
diff --git a/src/conf/ucm/Dell-WD19-Dock/HiFi.conf b/src/conf/ucm/Dell-WD19-Dock/HiFi.conf
new file mode 100644 (file)
index 0000000..e1427a7
--- /dev/null
@@ -0,0 +1,26 @@
+SectionDevice."Headphone" {
+       Comment "Headphone"
+
+       Value {
+               PlaybackChannels "2"
+               PlaybackPCM "hw:Dock,0"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       Value {
+               PlaybackChannels "2"
+               PlaybackPCM "hw:Dock,1"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Microphone"
+
+       Value {
+               CaptureChannels "2"
+               CapturePCM "hw:Dock,0"
+       }
+}
diff --git a/src/conf/ucm/Dell-WD19-Dock/Makefile.am b/src/conf/ucm/Dell-WD19-Dock/Makefile.am
new file mode 100644 (file)
index 0000000..6549ae1
--- /dev/null
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/Dell-WD19-Dock
+ucm_DATA = Dell-WD19-Dock.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)