mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa: add profile set for Native Instruments Audio 8 DJ sound card
This commit is contained in:
parent
60df970bd9
commit
ca560ccc4a
3 changed files with 177 additions and 1 deletions
|
|
@ -31,6 +31,7 @@ pulselibexecdir=$(libexecdir)/pulse
|
||||||
xdgautostartdir=$(sysconfdir)/xdg/autostart
|
xdgautostartdir=$(sysconfdir)/xdg/autostart
|
||||||
alsaprofilesetsdir=$(datadir)/alsa-mixer/profile-sets
|
alsaprofilesetsdir=$(datadir)/alsa-mixer/profile-sets
|
||||||
alsapathsdir=$(datadir)/alsa-mixer/paths
|
alsapathsdir=$(datadir)/alsa-mixer/paths
|
||||||
|
udevrulesdir=/lib/udev/rules.d
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
# Defines #
|
# Defines #
|
||||||
|
|
@ -115,6 +116,8 @@ EXTRA_DIST = \
|
||||||
map-file \
|
map-file \
|
||||||
daemon/org.pulseaudio.policy.in \
|
daemon/org.pulseaudio.policy.in \
|
||||||
modules/alsa/mixer/profile-sets/default.conf \
|
modules/alsa/mixer/profile-sets/default.conf \
|
||||||
|
modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf \
|
||||||
|
modules/alsa/mixer/profile-sets/78-pulseaudio.rules \
|
||||||
modules/alsa/mixer/paths/analog-input-aux.conf \
|
modules/alsa/mixer/paths/analog-input-aux.conf \
|
||||||
modules/alsa/mixer/paths/analog-input.conf \
|
modules/alsa/mixer/paths/analog-input.conf \
|
||||||
modules/alsa/mixer/paths/analog-input.conf.common \
|
modules/alsa/mixer/paths/analog-input.conf.common \
|
||||||
|
|
@ -1045,7 +1048,11 @@ modlibexec_LTLIBRARIES += \
|
||||||
module-alsa-card.la
|
module-alsa-card.la
|
||||||
|
|
||||||
alsaprofilesets_DATA = \
|
alsaprofilesets_DATA = \
|
||||||
modules/alsa/mixer/profile-sets/default.conf
|
modules/alsa/mixer/profile-sets/default.conf \
|
||||||
|
modules/alsa/mixer/profile-sets/native-instruments-audio8dj.conf
|
||||||
|
|
||||||
|
udevrules_DATA = \
|
||||||
|
modules/alsa/mixer/profile-sets/78-pulseaudio.rules
|
||||||
|
|
||||||
alsapaths_DATA = \
|
alsapaths_DATA = \
|
||||||
modules/alsa/mixer/paths/analog-input-aux.conf \
|
modules/alsa/mixer/paths/analog-input-aux.conf \
|
||||||
|
|
|
||||||
9
src/modules/alsa/mixer/profile-sets/78-pulseaudio.rules
Normal file
9
src/modules/alsa/mixer/profile-sets/78-pulseaudio.rules
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
# do not edit this file, it will be overwritten on update
|
||||||
|
|
||||||
|
SUBSYSTEM!="sound", GOTO="pulseaudio_end"
|
||||||
|
ACTION!="change", GOTO="pulseaudio_end"
|
||||||
|
KERNEL!="card*", GOTO="pulseaudio_end"
|
||||||
|
|
||||||
|
SUBSYSTEMS=="usb", ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf"
|
||||||
|
|
||||||
|
LABEL="pulseaudio_end"
|
||||||
|
|
@ -0,0 +1,160 @@
|
||||||
|
# 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 8 DJ
|
||||||
|
;
|
||||||
|
; This card has four stereo pairs of input and four stereo pairs of
|
||||||
|
; output, named channels A to D. Channel C has an additional Mic/Line
|
||||||
|
; connector, channel D an additional Headphone connector.
|
||||||
|
;
|
||||||
|
; We knowingly only define a subset of the theoretically possible
|
||||||
|
; mapping combinations as profiles here.
|
||||||
|
|
||||||
|
[General]
|
||||||
|
auto-profiles = no
|
||||||
|
|
||||||
|
[Mapping analog-stereo-a]
|
||||||
|
description = Analog Stereo Channel A
|
||||||
|
device-strings = hw:%f,0,0
|
||||||
|
channel-map = left,right
|
||||||
|
|
||||||
|
[Mapping analog-stereo-b]
|
||||||
|
description = Analog Stereo Channel B
|
||||||
|
device-strings = hw:%f,0,1
|
||||||
|
channel-map = left,right
|
||||||
|
|
||||||
|
# Since we want to set a different description for channel C's/D's input
|
||||||
|
# and output we define two seperate mappings for them
|
||||||
|
[Mapping analog-stereo-c-output]
|
||||||
|
description = Analog Stereo Channel C
|
||||||
|
device-strings = hw:%f,0,2
|
||||||
|
channel-map = left,right
|
||||||
|
direction = output
|
||||||
|
|
||||||
|
[Mapping analog-stereo-c-input]
|
||||||
|
description = Analog Stereo Channel C (Line/Mic)
|
||||||
|
device-strings = hw:%f,0,2
|
||||||
|
channel-map = left,right
|
||||||
|
direction = input
|
||||||
|
|
||||||
|
[Mapping analog-stereo-d-output]
|
||||||
|
description = Analog Stereo Channel D (Headphones)
|
||||||
|
device-strings = hw:%f,0,3
|
||||||
|
channel-map = left,right
|
||||||
|
direction = output
|
||||||
|
|
||||||
|
[Mapping analog-stereo-d-input]
|
||||||
|
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 A, B, C (Line/Mic), D (Headphones)
|
||||||
|
output-mappings = analog-stereo-a analog-stereo-b analog-stereo-c-output analog-stereo-d-output
|
||||||
|
input-mappings = analog-stereo-a analog-stereo-b analog-stereo-c-input analog-stereo-d-input
|
||||||
|
priority = 100
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-d+input:analog-stereo-c]
|
||||||
|
description = Analog Stereo Channel D (Headphones) Output, Channel C (Line/Mic) Input
|
||||||
|
output-mappings = analog-stereo-d-output
|
||||||
|
input-mappings = analog-stereo-c-input
|
||||||
|
priority = 90
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-c-d+input:analog-stereo-c-d]
|
||||||
|
description = Analog Stereo Duplex Channels C (Line/Mic), D (Line/Mic)
|
||||||
|
output-mappings = analog-stereo-c-output analog-stereo-d-output
|
||||||
|
input-mappings = analog-stereo-c-input analog-stereo-d-input
|
||||||
|
priority = 80
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-a+input:analog-stereo-a]
|
||||||
|
description = Analog Stereo Duplex Channel A
|
||||||
|
output-mappings = analog-stereo-a
|
||||||
|
input-mappings = analog-stereo-a
|
||||||
|
priority = 50
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-b+input:analog-stereo-b]
|
||||||
|
description = Analog Stereo Duplex Channel B
|
||||||
|
output-mappings = analog-stereo-b
|
||||||
|
input-mappings = analog-stereo-b
|
||||||
|
priority = 40
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-c+input:analog-stereo-c]
|
||||||
|
description = Analog Stereo Duplex Channel C (Line/Mic)
|
||||||
|
output-mappings = analog-stereo-c-output
|
||||||
|
input-mappings = analog-stereo-c-input
|
||||||
|
priority = 60
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-d+input:analog-stereo-d]
|
||||||
|
description = Analog Stereo Duplex Channel D (Headphones)
|
||||||
|
output-mappings = analog-stereo-d-output
|
||||||
|
input-mappings = analog-stereo-d-input
|
||||||
|
priority = 70
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-a]
|
||||||
|
description = Analog Stereo Output Channel A
|
||||||
|
output-mappings = analog-stereo-a
|
||||||
|
priority = 6
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-b]
|
||||||
|
description = Analog Stereo Output Channel B
|
||||||
|
output-mappings = analog-stereo-b
|
||||||
|
priority = 5
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-c]
|
||||||
|
description = Analog Stereo Output Channel C
|
||||||
|
output-mappings = analog-stereo-c-output
|
||||||
|
priority = 7
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile output:analog-stereo-d]
|
||||||
|
description = Analog Stereo Output Channel D (Headphones)
|
||||||
|
output-mappings = analog-stereo-d-output
|
||||||
|
priority = 8
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile input:analog-stereo-a]
|
||||||
|
description = Analog Stereo Input Channel A
|
||||||
|
input-mappings = analog-stereo-a
|
||||||
|
priority = 2
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile input:analog-stereo-b]
|
||||||
|
description = Analog Stereo Input Channel B
|
||||||
|
input-mappings = analog-stereo-b
|
||||||
|
priority = 1
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile input:analog-stereo-c]
|
||||||
|
description = Analog Stereo Input Channel C (Line/Mic)
|
||||||
|
input-mappings = analog-stereo-c-input
|
||||||
|
priority = 4
|
||||||
|
skip-probe = yes
|
||||||
|
|
||||||
|
[Profile input:analog-stereo-d]
|
||||||
|
description = Analog Stereo Input Channel D
|
||||||
|
input-mappings = analog-stereo-d-input
|
||||||
|
priority = 3
|
||||||
|
skip-probe = yes
|
||||||
Loading…
Add table
Add a link
Reference in a new issue