You are not logged in.

#1 2013-11-03 14:08:50

sackm
Member
Registered: 2013-10-21
Posts: 4

Getting Traktor Audio 10 to work with ALSA or Pulseaudio

Hi folks!

I try to run my Native Instruments Traktor Audio 10 (a USB sound card) under pulseaudio but obtain the following behaviour:

Pulseaudio recognises the card via its module-udev-detect. pacmd list correctly identifies it. However, it is not available as output device in pavucontrol.

I can access the card as ALSA device plughw:1,0,0. However, this sends output to every channel at once. All higher channels (plughw:1,0,1-3) cannot be accessed. speaker-test -D plughw:1,0,1 results in Playback open error: -16,Device or resource busy. I could, for a while, live with all channels being accessed but at least I would prefer to access them through pulse.

There is a profile set in /usr/share/pulseaudio/alsa-mixer/profile-sets/native-instruments-traktor-audio10.conf that describes the card for pulseaudio. However, I am not sure whether I need to have additional kernel modules for my sound card.

Does anybody with a similar card (such as Audio 2/4/6/8) know how to get these to work properly under pulse or alsa?

Regards

Offline

#2 2013-11-03 17:21:58

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Getting Traktor Audio 10 to work with ALSA or Pulseaudio

I have traktor audio 6, and you need custom .asoundrc to make it work, check out this tread: http://www.native-instruments.com/forum … ux-support

audio 10 has more outputs so it wont probably work correctly/at all with the same asoundrc, but you could use it as reference.

Last edited by ooo (2013-11-03 18:34:03)

Offline

#3 2013-11-03 19:54:20

sackm
Member
Registered: 2013-10-21
Posts: 4

Re: Getting Traktor Audio 10 to work with ALSA or Pulseaudio

Thank you!

I could use the last asoundrc in the post you linked to. The additional channels are easy to access. My asoundrc now looks like

pcm.T10_capture {
        type dsnoop
        ipc_key 1646
        slave {
                pcm "hw:T10"
                period_time 3
                period_size 512
                buffer_size 32768
                rate 48000
                channels 10
        }
}

pcm.T10_playback {
        type dmix
        ipc_key 1646
        slave {
                pcm "hw:T10"
                period_time 3
                period_size 512
                buffer_size 32768
                rate 48000
                channels 10
        }
}

pcm.T10_duplex {
        type asym
        playback.pcm T10_playback
        capture.pcm T10_capture
}

pcm.T10_pair1 {
        type plug
        ttable.0.0 1.0
        ttable.1.1 1.0
        slave.pcm T10_duplex
}

pcm.T10_pair2 {
        type plug
        ttable.0.2 1.0
        ttable.1.3 1.0
        slave.pcm T10_duplex
}

pcm.T10_pair3 {
        type plug
        ttable.0.4 1.0
        ttable.1.5 1.0
        slave.pcm T10_duplex
}

pcm.T10_pair4 {
        type plug
        ttable.0.6 1.0
        ttable.1.7 1.0
        slave.pcm T10_duplex
}

pcm.T10_pair5 {
        type plug
        ttable.0.8 1.0
        ttable.1.9 1.0
        slave.pcm T10_duplex
}

pair1 corresponds to the master output whereas pair2-5 are A-D.

What is your configuration for pulse? My Audio 10 is not attached all the time so I would like pulse to automatically use the devices I defined in my asoundrc whenever I plug in my sound card.

Regards

Offline

#4 2013-11-03 22:09:33

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Getting Traktor Audio 10 to work with ALSA or Pulseaudio

I'm only using traktor with xwax, so I haven't done any configurations with pulseaudio.

Setting the default sink to T10 in pa could probably be enough, I think there are some examples on how to do that in arch wiki.

Last edited by ooo (2013-11-04 06:29:29)

Offline

#5 2013-11-05 09:34:00

sackm
Member
Registered: 2013-10-21
Posts: 4

Re: Getting Traktor Audio 10 to work with ALSA or Pulseaudio

Thank you again. The issue seems to be more complicated as I need to define appropriate paths etc. I will post updates as soon as I succeed.

Offline

#6 2017-10-13 22:41:26

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Getting Traktor Audio 10 to work with ALSA or Pulseaudio

I've been trying to get Traktor 6 Audio to work with pulseaudio for some time, and this thread was one of the top search results. Therefore I hope it's ok to necrobump, since everything on this thread is still relevant.

At this time, pulseaudio includes profile-sets for a lot of NI devices, including Audio 6 and 10. However, the profile-sets for at least those two cards are broken.

There's a bug report (that has been dead for quite a while unfortunately), with an attachment for a profile-set that should work with A10, although it's only possible to input/output from all ports simultaneusly, and not from each stereo-pair separately.

Based on that profile-set, I hacked one that works with Traktor A6:

# 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, see <http://www.gnu.org/licenses/>.

; 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-all]
description = Analog 6 Channel
device-strings = hw:%f
channel-map = front-left,front-right,side-left,side-right,rear-left,rear-right

[Mapping analog-out-all]
description = Analog 6 Channel
device-strings = hw:%f
channel-map = front-left,front-right,side-left,side-right,rear-left,rear-right
direction = output

[Mapping analog-in-all]
description = Analog 6 Channel
device-strings = hw:%f
channel-map = front-left,front-right,side-left,side-right,rear-left,rear-right
direction = input


[Profile output:analog-all+input:analog-all]
description = Analog 6 Channel Duplex
output-mappings = analog-all
input-mappings = analog-all
priority = 50
skip-probe = yes

[Profile output:analog-out-all]
description = Analog 6 Channel Out
output-mappings = analog-out-all
priority = 50
skip-probe = yes

I hope this helps someone out there.

Offline

Board footer

Powered by FluxBB