Bug 80850 - Behringer FCA610 (USB) cannot be picked up and configured by PulseAudio (4.0)
Summary: Behringer FCA610 (USB) cannot be picked up and configured by PulseAudio (4.0)
Status: RESOLVED MOVED
Alias: None
Product: PulseAudio
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: pulseaudio-bugs
QA Contact: pulseaudio-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-03 12:58 UTC by Benjamin Tegge
Modified: 2018-07-30 09:42 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
complete output of pulseaudio -k; pulseaudio -vvvvv (370.75 KB, text/plain)
2014-07-03 12:58 UTC, Benjamin Tegge
Details
Pulseaudio 6.0 -vvvvv output on Ubuntu 15.04 (255.02 KB, text/plain)
2015-03-08 02:19 UTC, Benjamin Tegge
Details

Description Benjamin Tegge 2014-07-03 12:58:16 UTC
Created attachment 102196 [details]
complete output of pulseaudio -k; pulseaudio -vvvvv

I'm trying to get a Behringer FCA610 (connected via USB) to work with PulseAudio on Fedora 20 Heisenbug running with kernel 3.14 (and also Ubuntu 14.04 with Kernel 3.14). As far as I understand the device works fine with ALSA, but PulseAudio fails to configure the device properly.

The device itself seems to be detected fine according to dmesg:

[95060.032220] usb 1-1.2.1.4.3: SerialNumber: 000761DFC3E8
[95060.042366] input: Logitech Logitech BT Mini-Receiver as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.1/1-1.2.1.4/1-1.2.1.4.3/1-1.2.1.4.3:1.0/0003:046D:C714.0019/input/input29
[95060.043225] logitech 0003:046D:C714.0019: input,hiddev0,hidraw5: USB HID v1.11 Mouse [Logitech Logitech BT Mini-Receiver] on usb-0000:00:1a.0-1.2.1.4.3/input0
[95116.054502] usb 3-1: new high-speed USB device number 2 using xhci_hcd
[95116.222000] usb 3-1: New USB device found, idVendor=1397, idProduct=0003
[95116.222008] usb 3-1: New USB device strings: Mfr=28, Product=29, SerialNumber=30
[95116.222012] usb 3-1: Product: FCA610
[95116.222015] usb 3-1: Manufacturer: BEHRINGER
[95116.222017] usb 3-1: SerialNumber: 0x156400e2fa
[95117.243436] usbcore: registered new interface driver snd-usb-audio

Playback of multichannel WAV files with aplay also works:

$ aplay -D plughw:CARD=FCA610,DEV=0 -c 10 Musik/test-6ch.wav
Playing WAVE 'Musik/test-6ch.wav' : Signed 16 bit Little Endian, Rate
44100 Hz, Channels 6
^CAborted by signal Interrupt..

These are the last few lines of `pulseaudio -vvvvv`

E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="usb-BEHRINGER_FCA610_0x156400e2fa-00-FCA610" card_name="alsa_card.usb-BEHRINGER_FCA610_0x156400e2fa-00-FCA610" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes card_properties="module-udev-detect.discovered=1""): initialization failed.
I: [pulseaudio] module-udev-detect.c: Card /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/sound/card1 (alsa_card.usb-BEHRINGER_FCA610_0x156400e2fa-00-FCA610) failed to load module.
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC1 is accessible: yes
D: [pulseaudio] module-udev-detect.c: /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/sound/card1 is busy: no
W: [pulseaudio] module-udev-detect.c: Tried to configure /devices/pci0000:00/0000:00:14.0/usb3/3-1/3-1:1.0/sound/card1 (alsa_card.usb-BEHRINGER_FCA610_0x156400e2fa-00-FCA610) more often than 5 times in 10s
D: [alsa-sink-ALC269VC Analog] alsa-sink.c: Cutting sleep time for the initial iterations by half.
I: [pulseaudio] module-suspend-on-idle.c: Source alsa_input.pci-0000_00_1b.0.analog-stereo idle for too long, suspending ...
D: [pulseaudio] source.c: Suspend cause of source alsa_input.pci-0000_00_1b.0.analog-stereo is 0x0004, suspending
I: [alsa-source-ALC269VC Analog] alsa-source.c: Device suspended...
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
I: [pulseaudio] module-suspend-on-idle.c: Sink alsa_output.pci-0000_00_1b.0.analog-stereo idle for too long, suspending ...
D: [pulseaudio] sink.c: Suspend cause of sink alsa_output.pci-0000_00_1b.0.analog-stereo is 0x0004, suspending
I: [alsa-sink-ALC269VC Analog] alsa-sink.c: Device suspended...
D: [pulseaudio] core.c: Hmm, no streams around, trying to vacuum.
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
D: [pulseaudio] module-udev-detect.c: Resuming all sinks and sources of card alsa_card.pci-0000_00_1b.0.
I: [pulseaudio] client.c: Created 2 "Native client (UNIX socket client)"
D: [pulseaudio] protocol-native.c: Protocol version: remote 29, local 29
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
D: [pulseaudio] protocol-native.c: SHM possible: yes
D: [pulseaudio] protocol-native.c: Negotiated SHM: yes

There are also a lot of lines containing SND_PCM_NO_AUTO_FORMAT like:

D: [pulseaudio] alsa-util.c: Trying plug:surround71:1 with SND_PCM_NO_AUTO_FORMAT ...

I really like to get this device working pulseautio. Any assistance is very much appreciated.

Regards, Benjamin
Comment 1 Raymond 2014-07-03 13:49:39 UTC
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1198577

seem support 10 channels playback and 6 channels capture

post output of

speaker-test -c2 -d -t wav -Dplughw:1
Comment 3 Alexander E. Patrakov 2014-07-03 14:27:36 UTC
Thanks for the verbose log. Unfortunately, it still does not contain all the information that is needed to debug this. Your message indicates that aplay can produce sound. Could you please paste the output of the following command?

aplay -vv -D plughw:CARD=FCA610,DEV=0 Musik/test-6ch.wav

If that fails:

aplay -vv -D plughw:CARD=FCA610,DEV=0 -c 10 Musik/test-6ch.wav

Also, there was a very similar discussion in January this year. Please read it, maybe it contains some ideas applicable to your case:

http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-January/019685.html
Comment 4 Raymond 2014-07-03 16:00:09 UTC
http://www.behringer.com/EN/Products/FCA610.aspx

Streams 6 inputs / 10 outputs plus 1x MIDI I/O with ultra-low latency to your computer, supporting Mac* OS X* and Windows XP* or higher
Ultra-flexible connectivity via analog and S/PDIF I/O ports (coaxial and optical)
Comment 5 Benjamin Tegge 2014-07-04 01:13:43 UTC
Wow, thank you very much Alexander. I followed David's suggestion for a workaround (http://lists.freedesktop.org/archives/pulseaudio-discuss/2014-January/019748.html) to create the multichannel.conf profile and added the following to /lib/udev/rules.d/90-pulseaudio.rules:

# Behringer FCA610
ATTRS{idVendor}=="1397", ATTRS{idProduct}=="0003", ENV{PULSE_PROFILE_SET}="multichannel.conf"

I can use the device for the first time! :) I haven't read the entire thread yet, but it's very late and I need to get some sleep. Getting 6ch/5.1 playback functionality (and probably stereo input) is what I wanted from PulseAudio. (If really want to make use of all channels I'd look into JACK.) I will come back once I looked deeper into this.
Comment 6 Raymond 2014-07-05 08:20:53 UTC
you need jackd for stereo capture since pulseaudio downmix 6 channels capture to stereo
Comment 7 David Henningsson 2014-09-02 09:38:50 UTC
Hi, I recently committed a multichannel patch to Git head that I hope should fix this issue. Please test it, and if it does not work, feel free to reopen this bug. Thanks!

commit 48edd0a00f455df075efcf1986103e5f507c816f
Author: David Henningsson <david.henningsson@canonical.com>
Date:   Fri Jul 25 15:16:41 2014 +0200

    alsa: Add a multichannel fallback mapping
Comment 8 Benjamin Tegge 2014-09-04 08:11:46 UTC
Hello David, would it be possible to provide the patch in the PulseAudio testing PPA (https://launchpad.net/~ubuntu-audio-dev/+archive/ubuntu/pulse-testing)?
Comment 9 Benjamin Tegge 2015-03-08 02:19:26 UTC
Created attachment 114128 [details]
Pulseaudio 6.0 -vvvvv output on Ubuntu 15.04

Sorry for replying so late. I noticed that 6.0 was uploaded to Ubuntu 15.04 recently. On my clean testing system 6 inputs are now available in sound settings and pavucontrol, but outputs are still not discovered.
Comment 10 David Henningsson 2015-03-08 07:54:45 UTC
I think I see what the bug is in the latest log - the "multichannel" mapping seems to be shared between input and output mappings:

 1) Detect that output supports only 10 channels
 2) Change mapping "multichannel" to 10 channels
 3) Detect that input supports only 6 channels
 4) Change mapping "multichannel" to 6 channels
 5) Try to open output on mapping "multichannel" with 6 channels, and fail.
Comment 11 Raymond 2015-03-09 08:45:10 UTC
this mean you need two profiles, one for output and one for input in 

http://cgit.freedesktop.org/pulseaudio/pulseaudio/tree/src/modules/alsa/mixer/profile-sets/default.conf

+[Mapping multichannel-output]
+device-strings = hw:%f
+channel-map = left,right,rear-left,rear-right
+exact-channels = false
+fallback = yes
+priority = 1
+direction = output

+[Mapping multichannel-input]
+device-strings = hw:%f
+channel-map = left,right,rear-left,rear-right
+exact-channels = false
+fallback = yes
+priority = 1
+direction = input



http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/src/modules/alsa/alsa-mixer.c?id=48edd0a00f455df075efcf1986103e5f507c816f



static const struct description_map well_known_descriptions[] = {
         { "analog-mono",            N_("Analog Mono") },
         { "analog-stereo",          N_("Analog Stereo") },
-        { "multichannel",           N_("Multichannel") },
+        { "multichannel-output",           N_("Multichannel Output") },
+        { "multichannel-input",           N_("Multichannel Input") },
         { "analog-surround-21",     N_("Analog Surround 2.1") },
         { "analog-surround-30",     N_("Analog Surround 3.0") },
         { "analog-surround-31",     N_("Analog Surround 3.1") },
Comment 12 David Henningsson 2015-03-31 12:41:30 UTC
Hi,

I've posted a patch set here: http://lists.freedesktop.org/archives/pulseaudio-discuss/2015-March/023561.html

The second of the three is a patch as suggested by Raymond and should fix this issue, but the third makes sense to test in combination with the second.

If you have time, please test and let me know if it fixes the issue. Thanks!
Comment 13 GitLab Migration User 2018-07-30 09:42:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/issues/104.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.