Ticket #624: pulseaudio-add-profile-sets-for-Terratec-EWS88-MT.patch
| File pulseaudio-add-profile-sets-for-Terratec-EWS88-MT.patch, 12.5 KB (added by aelschuring, 3 years ago) |
|---|
-
src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules
From d6b2526254ea71302b4a243c2d74f89208a3a2fd Mon Sep 17 00:00:00 2001 From: Arno Schuring <aelschuring@hotmail.com> Date: Fri, 21 Aug 2009 03:15:48 +0200 Subject: [PATCH 1/2] Add a profile set for the Terratec EWS88 MT. The Terratec EWS88 is a professional audio card supporting full 24bit/96kHz sampling on 8 separate input/output channels (4 stereo pairs). It also has a digital SPDIF input/output channel and a simple "monitor" stereo output. This card identifies as PCI ID 1412:1712, which is the generic VIA ICE1712 chip, so udev rules must target the Terratec subsystem ID. There are two of them, :1115 for regular use and :1125 for the Master card when multiple cards are linked together. --- .../alsa/mixer/profile-sets/90-pulseaudio.rules | 4 + .../alsa/mixer/profile-sets/terratec-ews88-mt.conf | 167 +++++++++++++++++++ .../alsa/mixer/profile-sets/via-ice1712.conf | 128 ++++++++++++++ 3 files changed, 306 insertions(+), 0 deletions(-) create mode 100644 src/modules/alsa/mixer/profile-sets/terratec-ews88-mt.conf create mode 100644 src/modules/alsa/mixer/profile-sets/via-ice1712.conf diff --git a/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules b/src/modules/alsa/mixer/profile-sets/90-pulseaudio.rules index ea1a2fe..ced202e 100644
a b 23 23 SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf" 24 24 SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf" 25 25 26 SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x153b", ATTRS{subsystem_device}=="0x1115", ENV{PULSE_PROFILE_SET}="terratec-ews88-mt.conf" 27 SUBSYSTEMS=="pci", ATTRS{vendor}=="0x1412", ATTRS{device}=="0x1712", ATTRS{subsystem_vendor}=="0x153b", ATTRS{subsystem_device}=="0x1125", ENV{PULSE_PROFILE_SET}="terratec-ews88-mt.conf" 28 29 26 30 LABEL="pulseaudio_end" -
(a) /dev/null vs. (b) b/src/modules/alsa/mixer/profile-sets/terratec-ews88-mt.conf
diff --git a/src/modules/alsa/mixer/profile-sets/terratec-ews88-mt.conf b/src/modules/alsa/mixer/profile-sets/terratec-ews88-mt.conf new file mode 100644 index 0000000..05d1395
a b 1 # This file is part of PulseAudio. 2 # 3 # PulseAudio is free software; you can redistribute it and/or modify 4 # it under the terms of the GNU Lesser General Public License as 5 # published by the Free Software Foundation; either version 2.1 of the 6 # License, or (at your option) any later version. 7 # 8 # PulseAudio is distributed in the hope that it will be useful, but 9 # WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 # General Public License for more details. 12 # 13 # You should have received a copy of the GNU Lesser General Public License 14 # along with PulseAudio; if not, write to the Free Software Foundation, 15 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 16 17 ; Terratec EWS88 MT 18 ; 19 ; This card has four stereo pairs of input and four stereo pairs of 20 ; output, named channels 1 to 8. Also available are separate S/PDIF stereo 21 ; channels (input and output), and a separate "system-out" stereo jack that 22 ; supports 6-channel hardware mixing. 23 ; 24 ; We knowingly only define a subset of the theoretically possible 25 ; mapping combinations as profiles here. 26 ; 27 ; See default.conf for an explanation on the directives used here. 28 29 [General] 30 auto-profiles = no 31 32 [Mapping analog-stereo-in] 33 description = Analog Stereo Main Input 34 device-strings = hw:%f,0 35 channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9 36 direction = input 37 38 [Mapping analog-8ch-in] 39 description = Analog 8-Channel Main Input 40 device-strings = hw:%f,0 41 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1,aux2,aux3 42 direction = input 43 44 [Mapping analog-stereo-out] 45 description = Analog Stereo Main Output 46 device-strings = hw:%f,0 47 channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7 48 direction = output 49 50 [Mapping analog-40-out] 51 description = Analog 4.0 Main Output 52 device-strings = hw:%f,0 53 channel-map = front-left,front-right,rear-left,rear-right,aux0,aux1,aux2,aux3,aux4,aux5 54 direction = output 55 56 [Mapping analog-41-out] 57 description = Analog 4.1 Main Output 58 device-strings = hw:%f,0 59 channel-map = front-left,front-right,rear-left,rear-right,aux0,lfe,aux1,aux2,aux3,aux4 60 direction = output 61 62 [Mapping analog-51-out] 63 description = Analog 5.1 Main Output 64 device-strings = hw:%f,0 65 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,aux0,aux1,aux2,aux3 66 direction = output 67 68 [Mapping analog-71-out] 69 description = Analog 7.1 Main Output 70 device-strings = hw:%f,0 71 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1 72 direction = output 73 74 [Mapping analog-digital-stereo-out] 75 description = Analog+Digital 2-Channel Main Output 76 device-strings = hw:%f,0 77 channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,front-left,front-right 78 direction = output 79 80 [Mapping digital-stereo-in] 81 description = Digital Stereo Input 82 device-strings = hw:%f,0 83 channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right,aux8,aux9 84 direction = input 85 86 [Mapping digital-stereo-out] 87 description = Digital Stereo Output 88 device-strings = hw:%f,0 89 channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right 90 direction = output 91 92 [Mapping digital-mixer-in] 93 description = Virtual Mixer Input 94 device-strings = hw:%f,0 95 channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9,front-left,front-right 96 direction = input 97 98 # purpose of hw:,1 isn't clear 99 #[Mapping digital-mixer] 100 #description = Virtual Mixer Input 101 #device-strings = hw:%f,1 102 #channel-map = left,right 103 #direction = input 104 105 [Mapping analog-system-out] 106 description = Analog Stereo System-Out 107 device-strings = hw:%f,2 108 channel-map = front-left,front-right 109 direction = output 110 111 112 [Profile output:stereo] 113 description = Analog Stereo Output (Digital Output Disabled) 114 output-mappings = analog-stereo-out analog-system-out 115 input-mappings = 116 priority = 45 117 skip-probe = yes 118 119 [Profile output:stereo_all+input:stereo] 120 description = Analog/Digital Stereo Output, Analog Stereo Input 121 output-mappings = analog-digital-stereo-out analog-system-out 122 input-mappings = analog-stereo-in 123 priority = 95 124 skip-probe = yes 125 126 [Profile output:stereo_all+input:digital] 127 description = Analog/Digital Stereo Output, Digital Stereo Input 128 output-mappings = analog-digital-stereo-out analog-system-out 129 input-mappings = digital-stereo-in 130 priority = 75 131 skip-probe = yes 132 133 [Profile output:stereo_all+input:virtual] 134 description = Analog/Digital Stereo Output, Virtual Mixer Input 135 output-mappings = analog-digital-stereo-out analog-system-out 136 input-mappings = digital-mixer-in 137 priority = 90 138 skip-probe = yes 139 140 [Profile output:8ch+input:8ch] 141 description = Analog 7.1 Output, Analog 8-Channel Input 142 output-mappings = analog-71-out analog-system-out 143 input-mappings = analog-8ch-in 144 priority = 100 145 skip-probe = yes 146 147 [Profile output:spdif] 148 description = Digital Output (Analog Output Disabled) 149 output-mappings = digital-stereo-out analog-system-out 150 input-mappings = 151 priority = 40 152 skip-probe = yes 153 154 [Profile output:spdif+input:spdif] 155 description = Digital Input/Output (Analog Output Disabled) 156 output-mappings = digital-stereo-out analog-system-out 157 input-mappings = digital-stereo-in 158 priority = 50 159 skip-probe = yes 160 161 [Profile output:system] 162 description = System Output Only 163 output-mappings = analog-system-out 164 input-mappings = 165 priority = 10 166 skip-probe = yes 167 -
(a) /dev/null vs. (b) b/src/modules/alsa/mixer/profile-sets/via-ice1712.conf
diff --git a/src/modules/alsa/mixer/profile-sets/via-ice1712.conf b/src/modules/alsa/mixer/profile-sets/via-ice1712.conf new file mode 100644 index 0000000..e08747a
a b 1 # This file is part of PulseAudio. 2 # 3 # PulseAudio is free software; you can redistribute it and/or modify 4 # it under the terms of the GNU Lesser General Public License as 5 # published by the Free Software Foundation; either version 2.1 of the 6 # License, or (at your option) any later version. 7 # 8 # PulseAudio is distributed in the hope that it will be useful, but 9 # WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 # General Public License for more details. 12 # 13 # You should have received a copy of the GNU Lesser General Public License 14 # along with PulseAudio; if not, write to the Free Software Foundation, 15 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 16 17 ; Via ICE1712 multi-channel audio chipset 18 ; 19 ; This chipset has up to four stereo pairs of input and four stereo pairs of 20 ; output, named channels 1 to 8. Also available are separate S/PDIF stereo 21 ; channels (input and output), and a separate "system-out" stereo jack that 22 ; supports 6-channel hardware mixing. 23 ; 24 ; The S/PDIF stereo channels can be controlled via the mixer for hw:0, and 25 ; additionally, the 8 main outputs can be loop-routed to a separate stereo 26 ; input pair, available as channels 11 and 12. 27 ; 28 ; Many cards available from vendors do not expose all channels from this chip 29 ; to an external port, which effectively reduces the number of channels that 30 ; are useful to the user. However, the ALSA driver still exposes all channels 31 ; even if they are not connected. 32 ; 33 ; This file only serves as a reference file for those wanting to create and/or 34 ; test a profile for their card. Although this profile-set will work for 35 ; every ICE1712-based card, it will either expose features not available on 36 ; a particular card or expose less features than the card supports. 37 ; 38 ; 39 ; See default.conf for an explanation on the directives used here. 40 41 [General] 42 auto-profiles = no 43 44 [Mapping analog-mch-in] 45 description = Analog Multi-Channel Main Input 46 device-strings = hw:%f,0 47 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1,aux2,aux3 48 direction = input 49 50 [Mapping analog-stereo-in] 51 description = Analog Stereo Input 52 device-strings = hw:%f,0 53 channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,aux8,aux9 54 direction = input 55 56 [Mapping analog-mch-out] 57 description = Analog Multi-Channel Main Output 58 device-strings = hw:%f,0 59 channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right,aux0,aux1 60 direction = output 61 62 [Mapping analog-digital-stereo-out] 63 description = Analog/Digital Stereo Output 64 device-strings = hw:%f,0 65 channel-map = front-left,front-right,aux0,aux1,aux2,aux3,aux4,aux5,front-left,front-right 66 direction = output 67 68 [Mapping digital-stereo-out] 69 description = Digital Stereo Output 70 device-strings = hw:%f,0 71 channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right 72 direction = output 73 74 [Mapping digital-stereo-in] 75 description = Digital Stereo Input 76 device-strings = hw:%f,0 77 channel-map = aux0,aux1,aux2,aux3,aux4,aux5,aux6,aux7,front-left,front-right,aux8,aux9 78 direction = input 79 80 [Mapping analog-system-out] 81 description = Analog Stereo System-Out 82 device-strings = hw:%f,2 83 channel-map = left,right 84 direction = output 85 86 87 [Profile output:mch] 88 description = Analog Multi-Channel Output (Digital Disabled) 89 output-mappings = analog-mch-out analog-system-out 90 input-mappings = 91 priority = 60 92 skip-probe = yes 93 94 [Profile output:mch+input:mch] 95 description = Analog Multi-Channel Input/Output (Digital Disabled) 96 output-mappings = analog-mch-out analog-system-out 97 input-mappings = analog-mch-in 98 priority = 100 99 skip-probe = yes 100 101 [Profile output:stereo-da+input:stereo-analog] 102 description = Analog Stereo Input/Output, Digital Stereo Output 103 output-mappings = analog-digital-stereo-out analog-system-out 104 input-mappings = analog-stereo-in 105 priority = 90 106 skip-probe = yes 107 108 [Profile output:spdif] 109 description = Digital Stereo Output (Multi-Channel Disabled) 110 output-mappings = digital-stereo-out analog-system-out 111 input-mappings = 112 priority = 70 113 skip-probe = yes 114 115 [Profile output:spdif+input:spdif] 116 description = Digital Stereo Input/Output (Multi-Channel Disabled) 117 output-mappings = digital-stereo-out analog-system-out 118 input-mappings = digital-stereo-in 119 priority = 80 120 skip-probe = yes 121 122 [Profile output:system] 123 description = System Output Only 124 output-mappings = analog-system-out 125 input-mappings = 126 priority = 50 127 skip-probe = yes 128
