Blame SOURCES/0001-alsa-mixer-Add-support-for-usb-audio-in-the-Dell-doc.patch

43a070
From 1e057be093d948faa26b94b6efcae79bee7e6aee Mon Sep 17 00:00:00 2001
43a070
From: Hui Wang <hui.wang@canonical.com>
43a070
Date: Fri, 26 May 2017 15:42:40 +0800
43a070
Subject: [PATCH 1/4] alsa-mixer: Add support for usb audio in the Dell dock
43a070
 TB16
43a070
43a070
There are one headset jack on the front panel of TB16, through this
43a070
jack, we have one stereo headphone output (hw:%f,0,0) and one mono
43a070
headset-mic input (hw:%f,0,0); and there is one speaker output jack
43a070
(hw:%f,1,0) on the rear panel of TB16.
43a070
43a070
The detail information of the Dell dock TB16:
43a070
http://www.dell.com/support/article/sg/en/sgbsdt1/SLN301105
43a070
43a070
Signed-off-by: Hui Wang <hui.wang@canonical.com>
43a070
---
43a070
 .../alsa/mixer/profile-sets/90-pulseaudio.rules    |  1 +
43a070
 .../profile-sets/dell-dock-tb16-usb-audio.conf     | 55 ++++++++++++++++++++++
43a070
 3 files changed, 57 insertions(+)
43a070
 create mode 100644 src/modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf
43a070
43a070
diff --git a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
43a070
index 70e34e6fa..805a05b2a 100644
43a070
--- a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
43a070
+++ b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
43a070
@@ -98,5 +98,6 @@ ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="nativ
43a070
 ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
43a070
 ATTRS{idVendor}=="045e", ATTRS{idProduct}=="02bb", ENV{PULSE_PROFILE_SET}="kinect-audio.conf"
43a070
 ATTRS{idVendor}=="041e", ATTRS{idProduct}=="322c", ENV{PULSE_PROFILE_SET}="sb-omni-surround-5.1.conf"
43a070
+ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="4014", ENV{PULSE_PROFILE_SET}="dell-dock-tb16-usb-audio.conf"
43a070
 
43a070
 LABEL="pulseaudio_end"
43a070
diff --git a/src/modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf b/src/modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf
43a070
new file mode 100644
43a070
index 000000000..118655246
43a070
--- /dev/null
43a070
+++ b/src/modules/alsa/mixer/profile-sets/dell-dock-tb16-usb-audio.conf
43a070
@@ -0,0 +1,55 @@
43a070
+# This file is part of PulseAudio.
43a070
+#
43a070
+# PulseAudio is free software; you can redistribute it and/or modify
43a070
+# it under the terms of the GNU Lesser General Public License as
43a070
+# published by the Free Software Foundation; either version 2.1 of the
43a070
+# License, or (at your option) any later version.
43a070
+#
43a070
+# PulseAudio is distributed in the hope that it will be useful, but
43a070
+# WITHOUT ANY WARRANTY; without even the implied warranty of
43a070
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
43a070
+# General Public License for more details.
43a070
+#
43a070
+# You should have received a copy of the GNU Lesser General Public License
43a070
+# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
43a070
+
43a070
+; Dell Dock TB16 USB audio
43a070
+;
43a070
+; This card has two stereo pairs of output, One Mono input.
43a070
+;
43a070
+; See default.conf for an explanation on the directives used here.
43a070
+
43a070
+[General]
43a070
+auto-profiles = no
43a070
+
43a070
+[Mapping analog-stereo-headphone]
43a070
+description = Headphone
43a070
+device-strings = hw:%f,0,0
43a070
+channel-map = left,right
43a070
+direction = output
43a070
+
43a070
+[Mapping analog-stereo-speaker]
43a070
+description = Speaker
43a070
+device-strings = hw:%f,1,0
43a070
+channel-map = left,right
43a070
+direction = output
43a070
+
43a070
+[Mapping analog-stereo-mic]
43a070
+description = Headset-Mic
43a070
+device-strings = hw:%f,0,0
43a070
+channel-map = left,right
43a070
+direction = input
43a070
+
43a070
+
43a070
+[Profile output:analog-stereo-speaker]
43a070
+description = Speaker
43a070
+output-mappings = analog-stereo-speaker
43a070
+priority = 60
43a070
+skip-probe = yes
43a070
+
43a070
+[Profile output:analog-stereo-headphone+input:analog-stereo-mic]
43a070
+description = Headset
43a070
+output-mappings = analog-stereo-headphone
43a070
+input-mappings = analog-stereo-mic
43a070
+priority = 80
43a070
+skip-probe = yes
43a070
-- 
43a070
2.14.3
43a070