alsa: Add two more ALSA audio card profiles

This adds profiles for Native Instruments recently announced
"Trator Audio 6" and "Traktor Audio 10".
This commit is contained in:
Daniel Mack 2011-03-14 15:59:25 +01:00 committed by Colin Guthrie
parent 1afd233630
commit 5a4176409c
4 changed files with 227 additions and 0 deletions

View file

@ -1108,6 +1108,8 @@ dist_alsaprofilesets_DATA = \
modules/alsa/mixer/profile-sets/maudio-fasttrack-pro.conf \
modules/alsa/mixer/profile-sets/native-instruments-audio4dj.conf \
modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
modules/alsa/mixer/profile-sets/native-instruments-traktor-audio6.conf \
modules/alsa/mixer/profile-sets/native-instruments-traktor-audio10.conf \
modules/alsa/mixer/profile-sets/native-instruments-traktorkontrol-s4.conf \
modules/alsa/mixer/profile-sets/native-instruments-korecontroller.conf

View file

@ -24,6 +24,8 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="baff", ENV{PULSE_PROFILE_SET}="native-instruments-traktorkontrol-s4.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="4711", ENV{PULSE_PROFILE_SET}="native-instruments-korecontroller.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1011", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio6.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1021", ENV{PULSE_PROFILE_SET}="native-instruments-traktor-audio10.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"
LABEL="pulseaudio_end"

View file

@ -0,0 +1,131 @@
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
; Native Instruments Audio 10 DJ
;
; This card has five stereo pairs of input and five stereo pairs of
; output
;
; We knowingly only define a subset of the theoretically possible
; mapping combinations as profiles here.
;
; See default.conf for an explanation on the directives used here.
[General]
auto-profiles = no
[Mapping analog-stereo-out-main]
description = Analog Stereo Main
device-strings = hw:%f,0,0
channel-map = left,right
[Mapping analog-stereo-out-a]
description = Analog Stereo Channel A
device-strings = hw:%f,0,1
channel-map = left,right
direction = output
[Mapping analog-stereo-out-b]
description = Analog Stereo Channel B
device-strings = hw:%f,0,1
channel-map = left,right
direction = output
[Mapping analog-stereo-out-c]
description = Analog Stereo Channel C
device-strings = hw:%f,0,2
channel-map = left,right
direction = output
[Mapping analog-stereo-out-d]
description = Analog Stereo Channel D
device-strings = hw:%f,0,3
channel-map = left,right
direction = output
[Mapping analog-stereo-in-main]
description = Analog Stereo Main
device-strings = hw:%f,0,0
channel-map = left,right
[Mapping analog-stereo-in-a]
description = Analog Stereo Channel A
device-strings = hw:%f,0,1
channel-map = left,right
direction = input
[Mapping analog-stereo-in-b]
description = Analog Stereo Channel B
device-strings = hw:%f,0,1
channel-map = left,right
direction = input
[Mapping analog-stereo-in-c]
description = Analog Stereo Channel C
device-strings = hw:%f,0,2
channel-map = left,right
direction = input
[Mapping analog-stereo-in-d]
description = Analog Stereo Channel D
device-strings = hw:%f,0,3
channel-map = left,right
direction = input
[Profile output:analog-stereo-all+input:analog-stereo-all]
description = Analog Stereo Duplex Channels Main, A, B, C, D
output-mappings = analog-stereo-out-main analog-stereo-out-a analog-stereo-out-b analog-stereo-out-c analog-stereo-out-d
input-mappings = analog-stereo-in-main analog-stereo-in-a analog-stereo-in-b analog-stereo-in-c analog-stereo-in-d
priority = 100
skip-probe = yes
[Profile output:analog-stereo-main+input:analog-stereo-main]
description = Analog Stereo Duplex Main
output-mappings = analog-stereo-out-main
input-mappings = analog-stereo-in-main
priority = 50
skip-probe = yes
[Profile output:analog-stereo-a+input:analog-stereo-a]
description = Analog Stereo Duplex Channel A
output-mappings = analog-stereo-out-a
input-mappings = analog-stereo-in-a
priority = 40
skip-probe = yes
[Profile output:analog-stereo-b+input:analog-stereo-b]
description = Analog Stereo Duplex Channel B
output-mappings = analog-stereo-out-b
input-mappings = analog-stereo-in-b
priority = 30
skip-probe = yes
[Profile output:analog-stereo-a+input:analog-stereo-c]
description = Analog Stereo Duplex Channel C
output-mappings = analog-stereo-out-c
input-mappings = analog-stereo-in-c
priority = 20
skip-probe = yes
[Profile output:analog-stereo-a+input:analog-stereo-d]
description = Analog Stereo Duplex Channel D
output-mappings = analog-stereo-out-d
input-mappings = analog-stereo-in-d
priority = 10
skip-probe = yes

View file

@ -0,0 +1,92 @@
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
; Native Instruments Audio 6 DJ
;
; This card has three stereo pairs of input and three stereo pairs of
; output
;
; We knowingly only define a subset of the theoretically possible
; mapping combinations as profiles here.
;
; See default.conf for an explanation on the directives used here.
[General]
auto-profiles = no
[Mapping analog-stereo-out-main]
description = Analog Stereo Main
device-strings = hw:%f,0,0
channel-map = left,right
[Mapping analog-stereo-out-a]
description = Analog Stereo Channel A
device-strings = hw:%f,0,1
channel-map = left,right
direction = output
[Mapping analog-stereo-out-b]
description = Analog Stereo Channel B
device-strings = hw:%f,0,1
channel-map = left,right
direction = output
[Mapping analog-stereo-in-main]
description = Analog Stereo Main
device-strings = hw:%f,0,0
channel-map = left,right
[Mapping analog-stereo-in-a]
description = Analog Stereo Channel A
device-strings = hw:%f,0,1
channel-map = left,right
direction = input
[Mapping analog-stereo-in-b]
description = Analog Stereo Channel B
device-strings = hw:%f,0,1
channel-map = left,right
direction = input
[Profile output:analog-stereo-all+input:analog-stereo-all]
description = Analog Stereo Duplex Channels A, B (Headphones)
output-mappings = analog-stereo-out-main analog-stereo-out-a analog-stereo-out-b
input-mappings = analog-stereo-in-main analog-stereo-in-a analog-stereo-in-b
priority = 100
skip-probe = yes
[Profile output:analog-stereo-main+input:analog-stereo-main]
description = Analog Stereo Duplex Channel Main
output-mappings = analog-stereo-out-main
input-mappings = analog-stereo-in-main
priority = 50
skip-probe = yes
[Profile output:analog-stereo-a+input:analog-stereo-a]
description = Analog Stereo Duplex Channel A
output-mappings = analog-stereo-out-a
input-mappings = analog-stereo-in-a
priority = 40
skip-probe = yes
[Profile output:analog-stereo-b+input:analog-stereo-b]
description = Analog Stereo Duplex Channel B
output-mappings = analog-stereo-out-b
input-mappings = analog-stereo-in-b
priority = 30
skip-probe = yes