Skip to contentSkip to conversation

conf/ucm: Add a UCM profile for Dell WD19 Dock USB-audio

PATCH New Hui Wang 1 participant 2 messages Nov 27, 2018

lore
Share & tools
lore

Hui Wang

author
#0 lore raw

PATCH 1/2 conf/ucm: Add a UCM profile for Dell WD19 Dock USB-audio

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.

---
 .../ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf    |  5 ++++
 src/conf/ucm/Dell-WD19-Dock/HiFi.conf         | 26 +++++++++++++++++++
 src/conf/ucm/Dell-WD19-Dock/Makefile.am       |  4 +++
 3 files changed, 35 insertions(+)
 create mode 100644 src/conf/ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf
 create mode 100644 src/conf/ucm/Dell-WD19-Dock/HiFi.conf
 create mode 100644 src/conf/ucm/Dell-WD19-Dock/Makefile.am
src/conf/ucm/Dell-WD19-Dock/Dell-WD19-Dock.conf new file +5 -0
new file mode 100644
index 00000000..465ff550
@@ -0,0 +1,5 @@
+Comment "USB-audio on Dell WD19 docking station"
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}
src/conf/ucm/Dell-WD19-Dock/HiFi.conf new file +26 -0
new file mode 100644
index 00000000..e1427a79
@@ -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"
+	}
+}
src/conf/ucm/Dell-WD19-Dock/Makefile.am new file +4 -0
new file mode 100644
index 00000000..6549ae1b
@@ -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)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 conf: USB-Audio: Add Dell WD19 Dock in the IEC958 blacklist

This Dock doesn't have IEC958 physical output, so add it to the blacklist to prevent it being opened.

---
 src/conf/cards/USB-Audio.conf | 1 +
 1 file changed, 1 insertion(+)
src/conf/cards/USB-Audio.conf +1 -0
index 05779c47..3a12a729 100644
@@ -60,6 +60,7 @@ USB-Audio.pcm.iec958_device {
 	"SWTOR Gaming Headset by Razer" 999
 	"USB Device 0x46d_0x821" 999
 	"USB Device 0x46d_0x992" 999
+	"WD19 Dock" 999
 }
 
 # Second iec958 device number, if any.
Signature · 1 line
2.17.1