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

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