Thanks, this helped me making my TRAKTOR 2 working with Mixxx, which uses ALSA.
For other apps, which mainly use pulseaudio on top of ALSA, it used to work out of the box. But suddenly, after some ubuntu update it stopped working.
I could fix this problem by adding a configuration file to pulseaudio.
As root, go to /usr/share/pulseaudio/alsa-mixer/profile-sets.
You will see there are conf files for the audio6, audio8, etc, but nothing for the audio 2. THOUGH, surprisingly, a file named native-instruments-traktor-audio2.conf IS referenced in /lib/udev/rules.d/90-pulseaudio.rules . That's the source of the problem, maybe the file was omitted by the developpers, and pulseaudio complains about not finding it.
It's easy to create this file, i copied the audio6 file and stripped everything about inputs - as the audio2 has outputs only.
Then it has to be named exactly : native-instruments-traktor-audio2.conf
Now it works again, and as a bonus I can choose between channels A and B. Formerly i was restricted to channel A in pulseaudio.
Here is my file, hope it can help someone. I guess this omission will be fixed in a pulseaudio update to come.
[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-output]
description = Analog Stereo Channel B (Headphones)
device-strings = hw:%f,0,1
channel-map = left,right
direction = output
[Profile output:analog-stereo-all]
description = Analog Stereo Duplex Channels A, B (Headphones)
output-mappings = analog-stereo-a analog-stereo-b-output
priority = 3
skip-probe = yes
[Profile output:analog-stereo-a]
description = Analog Stereo Output Channel A
output-mappings = analog-stereo-a
priority = 1
skip-probe = yes
[Profile output:analog-stereo-b]
description = Analog Stereo Output Channel B (Headphones)
output-mappings = analog-stereo-b-output
priority = 2
skip-probe = yes
Best Answer
Development on ALSA's ctxfi driver generally is very plodding due to lack of open data sheets (so putting pressure on Creative to provide them without the mandatory NDA may help here). You may have better luck with a very recent ALSA snapshot at https://wiki.ubuntu.com/Audio/InstallingLinuxAlsaDriverModules or OSSv4.2 at http://www.4front-tech.com/developer/sources/testing/gpl/oss-v4.2-buildrc3-src-gpl.txt. Be aware that choosing the latter route requires significant time investment (but is possible).