From: Takashi Iwai Subject: [PATCH alsa-lib] conf/ucm: Add a UCM profile for Dell WD15 Dock USB-audio Date: Wed, 2 May 2018 16:54:31 +0200 Message-ID: <20180502145431.4192-1-tiwai@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id BFD07266F46 for ; Wed, 2 May 2018 16:54:35 +0200 (CEST) Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E80C5AC4E for ; Wed, 2 May 2018 14:54:31 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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 --- This is the alsa-lib part to correspond to the recent Dell WD15 dock patchset. src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf | 5 +++++ src/conf/ucm/Dell-WD15-Dock/HiFi.conf | 26 +++++++++++++++++++++++++ src/conf/ucm/Dell-WD15-Dock/Makefile.am | 4 ++++ src/conf/ucm/Makefile.am | 1 + 4 files changed, 36 insertions(+) create mode 100644 src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf create mode 100644 src/conf/ucm/Dell-WD15-Dock/HiFi.conf create mode 100644 src/conf/ucm/Dell-WD15-Dock/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 index 000000000000..f4f0a8d97e73 --- /dev/null +++ b/src/conf/ucm/Dell-WD15-Dock/Dell-WD15-Dock.conf @@ -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 index 000000000000..b07f34400086 --- /dev/null +++ b/src/conf/ucm/Dell-WD15-Dock/HiFi.conf @@ -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 index 000000000000..7ab58730dc26 --- /dev/null +++ b/src/conf/ucm/Dell-WD15-Dock/Makefile.am @@ -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) diff --git a/src/conf/ucm/Makefile.am b/src/conf/ucm/Makefile.am index 02df25f01b25..38fc6b252bcb 100644 --- a/src/conf/ucm/Makefile.am +++ b/src/conf/ucm/Makefile.am @@ -7,6 +7,7 @@ chtrt5645 \ chtrt5645-mono-speaker-analog-mic \ DAISY-I2S \ DB410c \ +Dell-WD15-Dock \ GoogleNyan \ gpd-win-pocket-rt5645 \ HDAudio-Gigabyte-ALC1220DualCodecs \ -- 2.16.3