[pulseaudio-tickets] [Bug 92973] New: Pulseaudio not recognizing device 1 of multi-device USB soundcard

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 16 14:49:53 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=92973

            Bug ID: 92973
           Summary: Pulseaudio not recognizing device 1 of multi-device
                    USB soundcard
           Product: PulseAudio
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: alsa
          Assignee: pulseaudio-bugs at lists.freedesktop.org
          Reporter: christian.leibig at gmail.com
        QA Contact: pulseaudio-bugs at lists.freedesktop.org
                CC: lennart at poettering.net

Created attachment 119719
  --> https://bugs.freedesktop.org/attachment.cgi?id=119719&action=edit
Pulseaudio verbose log

Hi,

I'm using a gaming USB DAC/Soundcard in Linux, the device is called "Astro
Mixamp Pro TR". It has a PC mode where it works as a soundcard, providing
multiple audio devices under a single system device. In my system it's assigned
the card id 2 and the name "Pro". Device 0 supports 2.0 Stereo, device 1
supports 5.1 surround.

There is no official Linux support for this card, however it works fine in
Alsa, so it should be able to work with PulseAudio.

Both devices work fine in Alsa:
$ aplay -l
[...]
card 2: Pro [Astro MixAmp Pro], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Pro [Astro MixAmp Pro], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

$ pasuspender -- speaker-test -D plughw:Pro,0 -c2
$ speaker-test -D plughw:Pro,1 -c6

You can already see that for device 0 I need to use pasuspender because it is
claimed by pulseaudio. Device 1 however is not in use and can be accessed
directly by alsa.

My problem now is that all functionality of device 1 is not recognized in
pulseaudio, I can only choose stereo profiles in pavucontrol. From the
pulseaudio log it seems that device 1 is never really configured, although I'm
not sure what that would even look like. I have attached the very verbose
pulseaudio log when connecting the device.


>From the pulseaudio -vvvvv logfile, though this all seems to be trying to
configure only card 2 device 0:
[...]
D: [pulseaudio] alsa-mixer.c: Looking at profile output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Checking for playback on Analog Surround 5.1
(analog-surround-51)
D: [pulseaudio] alsa-util.c: Trying surround51:2 with SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open surround51:2
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying surround51:2 without SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open surround51:2
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:surround51:2 with
SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open plug:surround51:2
I: [pulseaudio] pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:surround51:2 without
SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open plug:surround51:2
I: [pulseaudio] pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
I: [pulseaudio] alsa-util.c: Failed to set hardware parameters on
plug:surround51:2: Invalid argument
D: [pulseaudio] alsa-mixer.c: Caching failure to open output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:analog-mono - will not be able to open
output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:analog-stereo - will not be able to open
output:analog-surround-51
D: [pulseaudio] alsa-mixer.c: Skipping profile
output:analog-surround-51+input:iec958-stereo - will not be able to open
output:analog-surround-51


One thing I found is that aplay -L lists the following:
sysdefault:CARD=Pro
    Astro MixAmp Pro, USB Audio
    Default Audio Device
front:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    Front speakers
surround21:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Pro,DEV=0
    Astro MixAmp Pro, USB Audio
    IEC958 (S/PDIF) Digital Audio Output

Notice that all entries are for CARD=Pro and DEV=0, even the surround modes
which should belong to DEV=1. But trying to debug this further has not lead
anywhere, Alsa just doesn't give me enough information. If you have any tips on
that I'd be happy, too.

If you need more information just ask, and I'm happy for any help with this.
Been spending a couple of hours on this problem already and I'm not getting
further without some experts.

System is Gentoo Linux 64-bit, Pulseaudio version is 7.1.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20151116/a647f462/attachment.html>


More information about the pulseaudio-bugs mailing list