]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf/ucm: Add a UCM profile for Dell WD15 Dock USB-audio
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 14:23:21 +0000 (16:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 2 May 2018 14:23:21 +0000 (16:23 +0200)
USB-audio device on Dell WD15 docking station provides two individual
PCM streams, one for headphone and another for line out.  A UCM
profile gives the proper roles for these.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf [new file with mode: 0644]
src/conf/ucm/Dell-WD15-Dock/HiFi.conf [new file with mode: 0644]
src/conf/ucm/Dell-WD15-Dock/Makefile.am [new file with mode: 0644]
src/conf/ucm/Makefile.am

diff --git a/src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf b/src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf
new file mode 100644 (file)
index 0000000..f4f0a8d
--- /dev/null
@@ -0,0 +1,5 @@
+Comment "USB-audio on Dell WD15 docking station"
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Default"
+}
diff --git a/src/conf/ucm/Dell-WD15-Dock/HiFi.conf b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf
new file mode 100644 (file)
index 0000000..b07f344
--- /dev/null
@@ -0,0 +1,26 @@
+SectionDevice."Headphone" {
+       Comment "Headphone"
+
+       Value {
+               PlaybackChannels "2"
+               PlaybackPCM "hw:WD15Dock,0"
+       }
+}
+
+SectionDevice."LineOut" {
+       Comment "Line Out"
+
+       Value {
+               PlaybackChannels "2"
+               PlaybackPCM "hw:WD15Dock,1"
+       }
+}
+
+SectionDevice."Mic" {
+       Comment "Microphone"
+
+       Value {
+               CaptureChannels "2"
+               CapturePCM "hw:WD15Dock,0"
+       }
+}
diff --git a/src/conf/ucm/Dell-WD15-Dock/Makefile.am b/src/conf/ucm/Dell-WD15-Dock/Makefile.am
new file mode 100644 (file)
index 0000000..7ab5873
--- /dev/null
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/Dell-WD15-Dock
+ucm_DATA = Dell-WD15-Dock.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
index 02df25f01b25bca3bd3774fbef11213b5bcb7cae..38fc6b252bcb0e90e948cd9658417f1770dca4b8 100644 (file)
@@ -7,6 +7,7 @@ chtrt5645 \
 chtrt5645-mono-speaker-analog-mic \
 DAISY-I2S \
 DB410c \
+Dell-WD15-Dock \
 GoogleNyan \
 gpd-win-pocket-rt5645 \
 HDAudio-Gigabyte-ALC1220DualCodecs \